Volume permissions issue

I am using the grafana template in my project and adding a volume to it caused permissions issue with my grafana deployment
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/#migrate-to-v51-or-later

mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
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/#migrate-to-v51-or-later

mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
Solution:
try adding a RAILWAY_RUN_UID=0 variable
Jump to solution
3 Replies
Percy
Percy4d ago
Project ID: 560b7a6c-de0e-4e7e-9735-0ae63ba4118a
croissant
croissant4d ago
560b7a6c-de0e-4e7e-9735-0ae63ba4118a
Solution
Brody
Brody4d ago
try adding a RAILWAY_RUN_UID=0 variable