Skip to main content
NetApp Knowledge Base

Permission denied error when starting Grafana docker container

Views:
9
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • NFS
  • Docker Containers

Issue

  • After attempting to mount a unix volume  on a Linux client and starting  the container, it reports permission denied
root@host1:/home/rdapiqw/shared_source/apisix_sr_20250722# docker logs -f apisix_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/#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.

 
  • Docker Compose Configuration

grafana:

  image: grafana/grafana:${GRAFANA_VERSION}
  container_name: apisix_grafana
  ports:
    - "3000:3000"
  environment:
    - GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
    - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
  volumes:
    - /home/rdapiqw/shared source/grafana-storage:/var/lib/grafana:rw
    - ./grafana/provisioning:/etc/grafana/provisioning
  depends_on:
    - prometheus
    - loki
  restart: unless-stopped

  • There are no issues with the volume's export policy rule settings. 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.