Failed to build query 'A': database is locked

I’m getting DatasourceError notifications several times per hour. It always automatically resolves itselves in ~5 minutes, but the constant notification spam is annoying. What could be the issue here? Is it something in Grafana, or is it something with Prometheus? I’ve tried to delete the alert and re-creating it, but the new one has the same problem.
Skärmavbild 2023-02-13 kl. 08.51.10

Me too. I tried put sqlite in wal mode, but the problem persist.

Hi,

Did you see that post? Grafana Database locked alerting meaning

I had the same error, upgrading to v9.4.7 has helped solved the problem

I too am having the same error on grafana v10.2.2. I don’t see anything that specifically indicates a build fixed issues with this. and the information here seems to specifically be pointing to issues with alert_configuration table which I don’t seem to have those same issues.