Hello,
When I try to enable a Persistent Storage for Grafana, I see this error message: msg=“Server shutdown” logger=server reason=“Service init failed: Migration failed err: database is locked”
Version of the Rancher-Monitoring Chart: 9.4.202
Version of Grafana installed by Rancher-Monitoring: 5.6.4
Target Kubernetes type: AKS (Azure)
Target Kubernetes version: 1.19.3
Persistent Storage Classe Name is Azurefile
I tried both options:
- Enable with PVC Template
- Enable with StatefulSet Template
I tried both Access Mode type:
- ReadWriteOnce
- ReadWriteMany
But I have all the time this issue but Grafana work only if I Disabled Persistent Storage.
Has anyone ever had this issue and know how to fix it?
Thanks by advance
Logs of the container grafana for the pod rancher-monitoring-grafana-78c65d55cd-zjhzb:
# kubectl -n cattle-monitoring-system logs rancher-monitoring-grafana-78c65d55cd-zjhzb -c grafana
t=2021-01-13T07:40:56+0000 lvl=info msg="Starting Grafana" logger=server version=7.1.5 commit=9893b8c53d branch=HEAD compiled=2020-08-25T08:27:17+0000
t=2021-01-13T07:40:56+0000 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2021-01-13T07:40:56+0000 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/var/lib/grafana"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/var/log/grafana"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.log.mode=console"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_DATA=/var/lib/grafana"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_LOGS=/var/log/grafana"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_USER=admin"
t=2021-01-13T07:40:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_PASSWORD=*********"
t=2021-01-13T07:40:56+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
t=2021-01-13T07:40:56+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana
t=2021-01-13T07:40:56+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana
t=2021-01-13T07:40:56+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
t=2021-01-13T07:40:56+0000 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning
t=2021-01-13T07:40:56+0000 lvl=info msg="App mode production" logger=settings
t=2021-01-13T07:40:56+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-01-13T07:40:56+0000 lvl=info msg="Starting DB migration" logger=migrator
t=2021-01-13T07:40:57+0000 lvl=info msg="Executing migration" logger=migrator id="create migration_log table"
t=2021-01-13T07:41:02+0000 lvl=eror msg="Server shutdown" logger=server reason="Service init failed: Migration failed err: database is locked"
Regards
Ugo BRUNEL