ACtually, I am logged-in in my own machine, but I have forgot the password and the team cannot log in. I have set my emaiI in my account and it says - FAILED TO SEND EMAIL when I press forgot password.
I have read the FAQ about resetting the password. How do I know that what database(sqlite,postgres) it is using ?
OR Is there any good way to reset the password via grafana-cli ?
monitoring-server@monitoring-server:~$ sudo grafana-cli admin reset-admin-password newpass
Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath
Hello there
I have the same problem.
I try to reset my admin password and end up with the error Error: Could not read user from database. Error: User not found
Unfortunately I did not configure my email address, so I can not use the email reset.
How can I reset the admin password?
If possible I could also restart from scratch, but I do not know how to do this either.
I already purged grafana and installed it again, bat it seems that every configuration survived that somehow.
How did you manage to delete your admin user? That should be very hard to do by accident.
The users are saved in the sqlite database so if you know any sql you could check the user table. (I use the DB Browser for sqlite but you can also use the sqlite command line tool).
Yes, I tried to reset with the command line in that link. I need to add the homepath and config parameter: sudo grafana-cli admin reset-admin-password --homepath /usr/share/grafana --config "/etc/grafana/grafana.ini" admin
I did nothing else then this command. I have no clue how the admin user can be deleted.
It looks like it is the same problem like @luvpreet had.
I just checked the grafana.db using the DB browser!