Migrating Grafana (sqlite3) to LDAP backend

We are implementing a new authentication system and a new Grafana server. We would like to migrate the existing database from local login to LDAP. However in doing this, I am getting the following error in my Apache logs:

t=2018-02-08T17:26:53+0000 lvl=eror msg="Error while trying to authenticate user" logger=context userId=0 orgId=0 uname= error="attempt to write a readonly database"
t=2018-02-08T17:26:53+0000 lvl=eror msg="Request Completed" logger=context userId=0 orgId=0 uname= method=POST path=/login status=500 remote_addr=1.2.3.4 time_ms=6 size=53 referer=http://1.2.3.4:3000/login

Is there something else that needs to be done to resolve this?

Hi,

Please change the log level to debug, see documentation.

Marcus

The logs I sent are from debug output. I can see where it is able to query the LDAP server, but it won’t let me login.

Never mind. Permissions issue that I didn’t see. Fixed.