How to edit the config with Docker Volume (LDAP.toml/grafana.ini) How to activate LDAP(Debug)

Hello everyone,

I am trying to make LDAP work for Grafana.

I am running on a Docker Swarm.
For /var/lib/grafana I have a volume on a NFS.

When launching Grafana everything works fine but I only see in my nfs folder:

  • grafana.db
  • plugins/
  • png/
  • sessions/

As far as I was able to find out, there should be more here (_data for example). I am logged in as root.

As I wasn’t able to acces any config files in this volume I added another Volume for /etc/grafana

Here I had acces to grafana.ini and ldap.toml. But changes made here did not affect anything (even when restarting Grafana).

I now have activated LDAP via environment variables (GF_AUTH_LDAP_ENABLED=true). When going in “Server Admin” on Settings, I can see that LDAP is now activated. But the LDAP Debug-Menu point is not showing.

Thanks in advance for your help.

Here the logs if this helps:

t=2020-07-03T08:30:48+0000 lvl=info msg=“Starting Grafana” logger=server version=5.3.4 commit=69630b9 compiled=2018-11-13T12:19:12+0000

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config loaded from” logger=settings file=/usr/share/grafana/conf/defaults.ini

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config loaded from” logger=settings file=/etc/grafana/grafana.ini

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.data=/var/lib/grafana”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.logs=/var/log/grafana”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.plugins=/var/lib/grafana/plugins”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.provisioning=/etc/grafana/provisioning/”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.log.mode=console”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_DATA=/var/lib/grafana”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_LOGS=/var/log/grafana”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PLUGINS=/var/lib/grafana/plugins”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PROVISIONING=/etc/grafana/provisioning/”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_SECURITY_ADMIN_USER=admin”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_SECURITY_ADMIN_PASSWORD=*********”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_USERS_ALLOW_SIGN_UP=false”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_AUTH_LDAP_ENABLED=true”

t=2020-07-03T08:30:48+0000 lvl=info msg=“Path Home” logger=settings path=/usr/share/grafana

t=2020-07-03T08:30:48+0000 lvl=info msg=“Path Data” logger=settings path=/var/lib/grafana

t=2020-07-03T08:30:48+0000 lvl=info msg=“Path Logs” logger=settings path=/var/log/grafana

t=2020-07-03T08:30:48+0000 lvl=info msg=“Path Plugins” logger=settings path=/var/lib/grafana/plugins

t=2020-07-03T08:30:48+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning/

t=2020-07-03T08:30:48+0000 lvl=info msg=“App mode production” logger=settings

t=2020-07-03T08:30:48+0000 lvl=info msg=“Ldap enabled, reading config file” logger=ldap file=/etc/grafana/ldap.toml

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing SqlStore” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3

t=2020-07-03T08:30:48+0000 lvl=info msg=“Starting DB migration” logger=migrator

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing HTTPServer” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing SearchService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing PluginManager” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Starting plugin search” logger=plugins

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing InternalMetricsService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing AlertingService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing CleanUpService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing NotificationService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing ProvisioningService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“deleted datasource based on configuration” logger=provisioning.datasources name=Prometheus

t=2020-07-03T08:30:48+0000 lvl=info msg="inserting datasource from configuration " logger=provisioning.datasources name=Prometheus

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing RenderingService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing TracingService” logger=server

t=2020-07-03T08:30:48+0000 lvl=info msg=“Initializing Stream Manager”

t=2020-07-03T08:30:48+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=

t=2020-07-03T10:10:48+0000 lvl=info msg=“Database table locked, sleeping then retrying” logger=sqlstore retry=0