Skip to content

Grafana 11.6.1+: configuring database by GF_DATABASE_URL is broken. #104844

@clambin

Description

@clambin

What happened?

I'm running Grafana in a k3s cluster, using Postgres as a backend db. I was running v11.6.0+security-01 and upgraded to v11.6.1. Grafana now fails to start:

logger=sqlstore t=2025-05-01T22:27:23.102193922Z level=info msg="Connecting to DB" dbtype=postgres
logger=migrator t=2025-05-01T22:27:23.141625546Z level=info msg="Locking database"
logger=migrator t=2025-05-01T22:27:23.142958459Z level=info msg="Starting DB migrations"
logger=migrator t=2025-05-01T22:27:23.206664111Z level=info msg="migrations completed" performed=0 skipped=644 duration=3.916907ms
logger=migrator t=2025-05-01T22:27:23.210847497Z level=info msg="Unlocking database"
logger=secrets t=2025-05-01T22:27:23.222340758Z level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
logger=plugin.angulardetectorsprovider.dynamic t=2025-05-01T22:27:23.617780101Z level=info msg="Restored cache from database" duration=3.394671ms
logger=resource-server t=2025-05-01T22:27:23.628094539Z level=error msg="error running resource server init" error="initialize Resource Server: initialize resource DB: run migrations: unable to open database file: no such file or directory"
logger=resource-server t=2025-05-01T22:27:23.628272538Z level=error msg="resource server init failed" error="initialize Resource Server: initialize resource DB: run migrations: unable to open database file: no such file or directory"
Error: ✗ initialize Resource Server: initialize resource DB: run migrations: unable to open database file: no such file or directory

What did you expect to happen?

Nothing was mentioned in release notes for 11.6.1, so expected a smooth upgrade.

Did this work before?

Was working fine on v11.6.0+security-01 . No indication on what causes the problem on v11.6.1.

How do we reproduce it?

Not sure

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Grafana: v11.6.1
OS: k3s v1.32.3+k3s1 running on ubuntu 24.04
Browser: N/A

Grafana platform?

Kubernetes

Datasource(s)?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions