You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
[stable/grafana] Crash-looping with volume permission denied on fresh install #5635
The chart installs without problems, but the grafana pod crash-loops, here are the logs from the container:
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later
mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied
What you expected to happen:
I expected the grafana pod to not crash-loop, and launch correctly.
How to reproduce it (as minimally and precisely as possible):
Run the command mentioned in the "What happened?" section. Fetch the logs from the container.
Reacted by Andrew Fields, cmorent, Ángel Alonso Fonseca, Fabio Todaro, Hendrik Ferber, Valentin Tjoncke, Nick Phillips, Jorge Madrid, Mika Aguilar, Lukas Bernat and 7 more
Activity
FrederikNJS commentedon May 18, 2018
It seems like #5386 upgraded Grafana to 5.1.2, which uses a different uid for running Grafana, which is also mentioned here: #5576
Actually it seems that they are aware of the problem.
xmartinez commentedon Jun 8, 2018
Workaround to fix ownership of the persistent volume contents:
(This will be unnecessary once #5576 is merged and released).