# Admin password problems

**URL:** <https://community.grafana.com/t/admin-password-problems/148665>\
**Category:** Configuration\
**Created:** [April 21, 2025, 5:21pm UTC](https://community.grafana.com/t/admin-password-problems/148665 "2025-04-21T17:21:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omk298](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@omk298](https://community.grafana.com/u/omk298)\
**Post date:** [April 21, 2025, 5:21pm UTC](https://community.grafana.com/t/admin-password-problems/148665/1 "2025-04-21T17:21:58Z")

</div>

Apologies for being new/inept! I am struggling to log in to grafana. I have it installed with Teslamate on my Synology NAS using Docker. I have previously been able to log in, and changed the default password, but at some point I got logged out and am then unable to log in again. I thought it was because I’d forgotten my password, so have tried using the command grafana cli admin reset-admin-password as advised in the documentation.

If I use a new password that doesn’t fit the security requirements then I get an error saying that, if I use a proper password it says password changed, but I still can’t log in with that reset password.

I have spent the afternoon deleting containers and reinstalling, trying grafan cli multiple times. I once managed to get it so I could log in using admin/admin, but then when I changed the password I couldn’t log back in again. I haven’t even been able to get that far subsequently! Even if I delete everything in Docker and reinstall I can’t log in with admin/admin or with the password I’ve set.

I’m now using Grafana 11.6 (I was using a slightly earlier version when I started this process today.

When I try to log in I get this  
grafana-1 | logger=authn.service t=2025-04-21T16:01:26.024104325Z level=info msg=“Failed to authenticate request” client=auth.client.form error=“[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password”  
grafana-1 | logger=context userId=0 orgId=0 uname= t=2025-04-21T16:01:26.024262284Z level=info msg=“Request Completed” method=POST path=/login status=401 remote\_addr=172.19.0.1 time\_ms=1930 duration=1.930006274s size=94 referer=[http://nas:3000/login](http://nas:3000/login) handler=/login status\_source=server errorReason=Unauthorized errorMessageID=password-auth.failed error=“failed to authenticate identity: [password-auth.invalid] invalid password”

Thanks for any advice

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [June 26, 2025, 9:41am UTC](https://community.grafana.com/t/admin-password-problems/148665/2 "2025-06-26T09:41:58Z")

</div>

Just like you, we used a custom.ini file for configuration and changed the values like so:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/f/e/fee408a6eafa7483f10f97669d55d6463026a2c5.png)  
To get Grafana to recognize that we are using a custom.ini file, we set the following environment variable:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/2/a/2adc88b421f42f039d7c063d46877de47e736758.png)  
Hope it helps!
