Could not find datasource: database is locked

What happened:
Some Alerts , Contact points and notification policies are desappeard and error message on some Alertes said that “could not find datasource: database is locked”
What you expected to happen:
get all alerts , contact points and notification policies that i have created before working without any error
How to reproduce it (as minimally and precisely as possible):
there is no scenario to reproduce the error , the error was appeared suddenly
Anything else we need to know?:
the grafana VM is on Azure , the Prometheus servers are on local datacenter
All graph are working fine but the problem is on the alerts , the contact points and the notification policies .

  • Grafana version: Grafana v8.2.4 ([d409b0c)
  • Data source type & version: Prometheus
  • OS Grafana is installed on: Debian 11
  • User OS & Browser: Windows 10 - chrome
  • Grafana plugins:
  • Others: Grafana database is Sqlite

sounds like an error migrating the legacy alerts into new alerting platform. Were these old alerts? If so, might be best to rewrite them using the new platform

The alerts are created with new platform, they worked fine for a couple of monthes but suddenly they gives this error . i recreated some of them but i still have the same error .
it can’t be a problem of sqlite database ?? may be somthing wrong on the grafana.db sqlite database ??