I am running grafana 12.4.0 on debian 13.3 for some home autmation dashboards. This has been working nicely for a long time, but for more the last day, I have not been able to access grafana. When I go to the grafana url, I just get firefox’ “Unable to connect” screen.
When looking into the logs, there are a lot of “Migration progress” messages, but at the end I get
logger=storage.unified.migrator t=2026-02-26T20:59:07.892371096+01:00 level=info msg=“start rebuilding index for resources” namespace=org-2 orgId=2 resources=“[folders.folder.grafana.app dashboards.dashboard.grafana.app]”
logger=storage.unified.migrator t=2026-02-26T20:59:12.89812991+01:00 level=info msg=“finished rebuilding index for resources” namespace=org-2 orgId=2 resources=“[folders.folder.grafana.app dashboards.dashboard.grafana.app]”
logger=storage.unified.migration_runner.folders-dashboards t=2026-02-26T20:59:12.898610174+01:00 level=info msg=“Count validation” resource=folders.folder.grafana.app namespace=org-2 legacy_count=1 unified_count=0 migration_summary_co
unt=0 rejected=0 history=0
logger=storage.unified.migration_runner.folders-dashboards t=2026-02-26T20:59:12.898673244+01:00 level=error msg=“Migration validation failed” org_id=2 error=“validator CountValidator failed: count mismatch for folders.folder.grafana.
app in namespace org-2: legacy has 1, unified has 0, rejected 0” duration=15.030621084s
logger=storage.unified.migration_runner.folders-dashboards t=2026-02-26T20:59:12.898687179+01:00 level=warn msg=“[WARN] Resource migration failed and is currently skipped.\nThis migration will be enforced in the next major Grafana rel
ease, where failures will block startup or resource loading.\n\nThis warning is intended to help you detect and report issues early.\nPlease investigate the failure and report it to the Grafana team so it can be addressed before the n
ext major release.” error=“migration validation failed for org 2 (org-2): validator CountValidator failed: count mismatch for folders.folder.grafana.app in namespace org-2: legacy has 1, unified has 0, rejected 0”
logger=unifiedstorage-migrator t=2026-02-26T20:59:12.898716512+01:00 level=error msg=“Executing migration failed” id=“folders and dashboards migration” error=“migration validation failed for org 2 (org-2): validator CountValidator fai
led: count mismatch for folders.folder.grafana.app in namespace org-2: legacy has 1, unified has 0, rejected 0” duration=2m40.544491524s
logger=unifiedstorage-migrator t=2026-02-26T20:59:12.898726965+01:00 level=error msg=“Exec failed” error=“migration validation failed for org 2 (org-2): validator CountValidator failed: count mismatch for folders.folder.grafana.app in
namespace org-2: legacy has 1, unified has 0, rejected 0” sql=“unified storage data migration: folders-dashboards”
logger=unifiedstorage-migrator t=2026-02-26T20:59:13.158520895+01:00 level=info msg=“Unlocking database”
logger=settings t=2026-02-26T20:59:13.594053243+01:00 level=info msg=“Starting Grafana” version=12.4.0 commit=d1729c53a7f44e2e58947eb44eb896c2fb1c30b3 branch=release-12.4.0 compiled=2026-02-26T20:59:13+01:00
logger=settings t=2026-02-26T20:59:13.594441789+01:00 level=info msg=“Unified migration configs enforced”
It seems to me as if grafana tries to migrate my setup,then the validation falls for some reason and it just retries the same migration that at the end fails again.
I have not touched any config files, I am using postgres as the main database, but grafana seems to be using sqlite for its own storage, everything is stored locally and there is free space on the partitions grafana is using. I did recently upgrade the server from debian 12, but I am fairly sure grafana has been working after the upgrade.
Any ways to get out of this loop and be able to use grafana again?