Hi All,
Have anyone tried using Azure File share as grafana storage? When I configure grafana to use Azure File share as the sqlite3 database storage which is mounted on a linux host where grafana is installed, I get following error while accessing grafana home page.
“chtimes /mnt/grafstorage/data/sessions/e/d/edc304c295505d2e: operation not permitted”"
A log snippet is pasted below. (Azure support didn’t notice any issues on their side for this)
t=2018-09-17T08:06:32+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3010 protocol=http subUrl= socket=
t=2018-09-17T08:06:54+0000 lvl=eror msg=“Failed to start session” logger=context error=“chtimes /mnt/grafstorage/data/sessions/e/d/edc304c295505d2e: operation not permitted”
t=2018-09-17T08:06:54+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=198.134.56.85 time_ms=244 size=29 referer=
t=2018-09-17T08:06:55+0000 lvl=eror msg=“Failed to start session” logger=context error=“chtimes /mnt/grafstorage/data/sessions/e/7/e7839f8ae4c54a9b: operation not permitted”
t=2018-09-17T08:06:55+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/login status=302 remote_addr=198.134.56.85 time_ms=382 size=24 referer=
t=2018-09-17T08:06:55+0000 lvl=eror msg=“Failed to start session” logger=context error=“chtimes /mnt/grafstorage/data/sessions/2/8/2839edbc0309da1c: operation not permitted”
Looking on the file share, I see some files have been created. (a plugins folder and grafana.db) So it seems grafana can create the database, but not update it for some reason ?
Using Azure container instances, loading grafana/grafana
Hi, did anyone find an answer to this? I am having the same issues using grafana in an Azure Container Group…
Using version 5.0.4 (ie pre-user ID change etc documented at http://docs.grafana.org/installation/docker/ ) I am able to change to the Azure Files mount point in the grafana container without issue. Container is running using user ID 0.
Using version 5.2.3 (ie post-user ID changes) I can see that the Grafana container is using user ID 472 and as that user I am unable to change to the Azure Files mount point - I get a permission denied…
Unfortunately it seems that none of the suggested ways of overcoming the user ID change (either running as a different user or changing permissions) are feasible within Azure - I can’t specify the user that the container should run as, nor does the Azure equivalent of the “docker run -ti” command (ie “az container exec”) support the ability to specify a user to update the permissions. I also note that from https://hub.docker.com/r/grafana/grafana/, with 5.1.0 the “chown” utility has been moved from the container, so even if I was able to update the permissions, I would not be able to change the owner.
I stopped looking into it and also moved to mysql, however i think it has something to do with Go chtime function doesn’t work with symlink. Not sure as don’t have much exposure with Go.
(I am using Azure Mysql Service as mysql database)
Following parameters need to be changed.
type = mysql
host = .mysql.database.azure.com:3306
name = grafana (or the database name u are using)
user =
password =
Not sure if anyone is still experiencing this problem but by using the bitnami MySQL container, and incorporating that in to the same container group as the Grafana container, I have got Grafana 6.0.0-beta2 running as a container in Azure with persisted data volumes.