Unable to migrate to 5.3.1 version of grafana

Current Version: * Grafana v5.1.0-pre1 (commit: 880293eea)
Target Version: * Grafana v5.3.1 (commit: 08c7908

I used Docker + Kubernetes .

Error during migration

2018-10-17T03:09:11.729735929Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning
2018-10-17T03:09:11.729739979Z t=2018-10-17T03:09:11+0000 lvl=info msg=“App mode production” logger=settings
2018-10-17T03:09:11.730215982Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Initializing SqlStore” logger=server
2018-10-17T03:09:11.730231215Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
2018-10-17T03:09:11.730564077Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Starting DB migration” logger=migrator
2018-10-17T03:09:11.782055619Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Executing migration” logger=migrator id=“Add missing user data”
2018-10-17T03:09:11.799953779Z t=2018-10-17T03:09:11+0000 lvl=info msg=“Executing migration” logger=migrator id=“Add check_sum column”
2018-10-17T03:09:11.799969578Z t=2018-10-17T03:09:11+0000 lvl=eror msg=“Executing migration failed” logger=migrator id=“Add check_sum column” error=“attempt to write a readonly database”
2018-10-17T03:09:11.799973762Z t=2018-10-17T03:09:11+0000 lvl=eror msg=“Exec failed” logger=migrator error=“attempt to write a readonly database” sql="alter table dashboard_provisioning ADD COLUMN check_sum TEXT NULL "
2018-10-17T03:09:11.800063689Z t=2018-10-17T03:09:11+0000 lvl=eror msg=“Server shutdown” logger=server reason=“Service init failed: Migration failed err: attempt to write a readonly database”

The container never starts up . I am stuck with v5.1.0-pre1, Seeing similar error during every release after 5.1

Any suggestions are welcome.

Grafana runs database migrations and provisioning on startup which adds new tables or updates to tables. I presume you are using Sqlite so the grafana.db file needs to be readable. How are you handling persistent storage for the data for your Grafana docker image?

This might be relevant for you:

http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later