mkdir cannot create directory var lib grafana plugins Permission denied

0 votes

Hi Guys,

I am trying to launch a docker container for Grafana. But I am getting the below error.

$ docker run -d -p 3000:3000 --user grafana --name grafana -e "GF_SECURITY_ADMIN_PASSWORD=changeme" -v /grafana_db:/var/lib/grafana grafana/grafana
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
Sep 7, 2020 in Docker by akhtar
• 38,260 points
17,714 views

1 answer to this question.

0 votes

Hi@akhtar,

You are getting this error because Grafana needs a user that has 472 user ID. But you have not set the permissions for user/group 472. You have set the permission for Grafana user. So make changes and rerun your command. You can use the below command to set the permissions.

$ sudo chown -R 472:472 /mnt/data/grafana/
answered Sep 7, 2020 by MD
• 95,460 points

Related Questions In Docker

+2 votes
2 answers
0 votes
1 answer

docker missing var/lib/docker folder

Try restarting docker systemctl restart docker or sudo service docker ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
7,202 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
0 votes
1 answer

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

Hi@akhtar, To install any software using non root ...READ MORE

answered Jun 6, 2020 in Docker by MD
• 95,460 points
13,506 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP