# While try to login to the PMM interface we facing invalid user and password issue

**URL:** <https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [July 26, 2024, 6:27am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824 "2024-07-26T06:27:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [July 26, 2024, 6:27am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/1 "2024-07-26T06:27:25Z")

</div>

![Screenshot from 2024-07-26 11-26-26](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/1/8/18907a0b0a44859c886a2fb1dd8a2cf8d6a03e30.jpeg)

Could somebody help us with this issue? According to the PMM documentation we have configured this pmm. This PMM **Version: 2.42.0** we are using for **MySQL server 8.0.34** version

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [July 26, 2024, 7:15am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/2 "2024-07-26T07:15:36Z")

</div>

Hi @Raja_Chandra_Sekaran

Please take a look at this [blog post](https://www.percona.com/blog/2020/01/15/changing-the-default-admin-password-in-docker-based-deployment-of-pmm2/)

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [July 26, 2024, 8:41am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/3 "2024-07-26T08:41:20Z")

</div>

Hello @Vadim_Yalovets  
Also, we tried to change the password for the admin user successfully. During the PMM configuration, we didn’t get any errors. But still, we were facing the same issue as we mentioned in the screenshot above.

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [July 26, 2024, 3:52pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/4 "2024-07-26T15:52:01Z")

</div>

Was is indicated that password was successfully changed?

e.g.

 ![Screenshot 2024-07-26 at 18.49.51](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/1/5/157124b2644e3fccfc6809970763aab02531ba1e.png)

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [July 28, 2024, 4:29am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/5 "2024-07-28T04:29:33Z")

</div>

@Vadim_Yalovets  
yes, the password has been successfully changed. each and every step has been executed without error while we try to open the PMM login page its show like invalid user and password.

---

<div class="post-metadata">

**Author:** ![VASANTHAKUMAR\_M](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vasanthakumar_m/32/17534_2.png) [@VASANTHAKUMAR\_M](https://forums.percona.com/u/VASANTHAKUMAR_M)\
**Post date:** [August 5, 2024, 6:03am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/6 "2024-08-05T06:03:34Z")

</div>

Hi Mr. @Vadim_Yalovets

Good Morning!!!

Any good update on this?

we are tried all the possiblities from our end but finally we are getting same issue like invalid username and password

Please give a proper solution we already took more days regarding this issue.

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [August 5, 2024, 10:39am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/7 "2024-08-05T10:39:01Z")

</div>

Hi @VASANTHAKUMAR_M,  
Could you check grafana logs?  
e.g.

```auto
docker exec -it pmm-server bash -c "less /srv/logs/grafana.log | grep error"

```

 ![Screenshot 2024-08-05 at 13.38.19](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/e/6/e640c1fe26c260e6b88af02518feb5a7f391070d.png)

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [August 5, 2024, 1:22pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/8 "2024-08-05T13:22:59Z")

</div>

Hi @Vadim_Yalovets  
Sure we will check this, Thanks for the update.

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [August 6, 2024, 5:39am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/9 "2024-08-06T05:39:29Z")

</div>

Hi @Vadim_Yalovets

Good Morning

While we checked the error log we faced this error as we mentioned below  
kindly give some solutions regarding this error which we have shared here

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/a/d/ad3be4de6790525796226c6caafda74d4e945575.jpeg)

---

<div class="post-metadata">

**Author:** ![ademidoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ademidoff/32/14234_2.png) [@ademidoff](https://forums.percona.com/u/ademidoff)\
**Post date:** [August 6, 2024, 5:55am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/10 "2024-08-06T05:55:04Z")

</div>

Hi,

from what I see in the logs - in particular, `3306: connect: connection refused` error - it seems like PMM Server is trying to connect to a MySQL database, which we don’t support for PMM Server persistence.

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [August 6, 2024, 6:25am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/11 "2024-08-06T06:25:49Z")

</div>

Hi @ademidoff

Thanks for the reply the version that you are pointing to here is MySQL or PMM?

Currently, we are using:

**MySQL version - 8.0.34**  
**PMM server version - 2.42.0**  
**OS VERSION -“24.04 LTS (Noble Numbat)”**

Do we need to configure any other specific version of PMM kindly let us know.

**Note:** We also tried to install the older version of **PMM 2.38.0** still facing the same issues.

For every time we tried to resolve this issue at last we came up with the error invalid user and password.

---

<div class="post-metadata">

**Author:** ![VASANTHAKUMAR\_M](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vasanthakumar_m/32/17534_2.png) [@VASANTHAKUMAR\_M](https://forums.percona.com/u/VASANTHAKUMAR_M)\
**Post date:** [August 8, 2024, 6:14am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/12 "2024-08-08T06:14:20Z")

</div>

Hi Team,

Good morining !!!

If there are any findings from your end. Please share here.

---

<div class="post-metadata">

**Author:** ![Sarath\_VS](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sarath_vs/32/17594_2.png) [@Sarath\_VS](https://forums.percona.com/u/Sarath_VS)\
**Post date:** [August 21, 2024, 10:59am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/13 "2024-08-21T10:59:53Z")

</div>

Hi team  
I am also trying to successfully change password for admin user using these commands  
**docker exec -it pmm-server bash**  
\*\* grafana-cli --homepath /usr/share/grafana admin reset-admin-password admin123\*\*  
\*\* supervisorctl restart grafana\*\*

But when trying to login PMM console it shows as invalid username or password.  
Can you give me a solution.

---

<div class="post-metadata">

**Author:** ![VASANTHAKUMAR\_M](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vasanthakumar_m/32/17534_2.png) [@VASANTHAKUMAR\_M](https://forums.percona.com/u/VASANTHAKUMAR_M)\
**Post date:** [August 23, 2024, 4:39pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/14 "2024-08-23T16:39:51Z")

</div>

Someone explain here. when I try to login to pmm I get an error like Invalid username and password.

we checked all the points which we got from your end

Note : pmm installation - no errors are encountered

---

<div class="post-metadata">

**Author:** ![pravata\_dash](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pravata_dash/32/12098_2.png) [@pravata\_dash](https://forums.percona.com/u/pravata_dash)\
**Post date:** [January 8, 2025, 7:49am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/15 "2025-01-08T07:49:49Z")

</div>

@ademidoff  
I am also facing the same invalid password issue while resetting PWD for admin user, tried all above mentioned options, still same issue.

The login is working fine for other non-admin users, how to reset the admin PWD OR create a new admin user!!  
Do we have any solution here?

Tried ones:

````auto
docker exec pmm-server change-admin-password admin@123
docker restart xxxxx```

docker exec -it pmm-server bash
grafana-cli --homepath /usr/share/grafana admin reset-admin-password admin@123
supervisorctl restart grafana```
````

---

<div class="post-metadata">

**Author:** ![ademidoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ademidoff/32/14234_2.png) [@ademidoff](https://forums.percona.com/u/ademidoff)\
**Post date:** [January 8, 2025, 2:37pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/16 "2025-01-08T14:37:38Z")

</div>

Hey!

I’ve just tested it one more time on `percona/pmm-server:2.44.0` and it worked fine. I used the same password “admin@123”. However, if your password contains special characters, like “!/$&%#?\*”, you should wrap it in double quotes.

So the syntax is as follows: `docker exec -it pmm-server change-admin-password "admin@123"`. Upon completion you should see the message “Admin password changed successfully ✔” in the console. There is actually no need to restart grafana, it works without restarting.

Depending on PMM version, the command syntax may vary. You can refer to [FAQ - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/2/faq.html#how-to-change-the-pmm-password-for-a-default-admin-user).

Please let us know if it helped.

Alex

---

<div class="post-metadata">

**Author:** ![pravata\_dash](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pravata_dash/32/12098_2.png) [@pravata\_dash](https://forums.percona.com/u/pravata_dash)\
**Post date:** [January 9, 2025, 11:56am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/17 "2025-01-09T11:56:23Z")

</div>

@ademidoff  
Our PMM version is 2.39.0.  
As mentioned in the doc, I had tried and also got success response, but still its showing invalid username OR pwd!!  
`“Admin password changed successfully :heavy_check_mark:” `  
Also, our PWD is not having any special character, it’s a plain text.

As admin user was being used for pushing metrics, its failing for all clusters now.  
Any alternative here to login using admin user and also to push metrics???  
PFA

 ![Screenshot 2025-01-09 at 5.24.17 PM](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/f/a/fa3c8f9fd9ded3fc04c2185cb99353f3c4c3ce77.jpeg)

---

<div class="post-metadata">

**Author:** ![ademidoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ademidoff/32/14234_2.png) [@ademidoff](https://forums.percona.com/u/ademidoff)\
**Post date:** [January 9, 2025, 3:37pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/18 "2025-01-09T15:37:54Z")

</div>

Hi!

Sorry to hear it didn’t work for you ☹ We tested 2.39.0 as well and didn’t see what could be wrong with the password reset.

Well, one option to reset the admin user’s password is if you have at least one more admin user. If that’s the case, you can log in to PMM, go to [https://pmm-server/graph/admin/users](https://pmm-server/graph/admin/users), select the admin user whose password you need to change, and change it via the user interface.

Otherwise, what is the output of `docker exec -it pmm-server change-admin-password ...`?

Alex

---

<div class="post-metadata">

**Author:** ![Raja\_Chandra\_Sekaran](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raja_chandra_sekaran/32/17438_2.png) [@Raja\_Chandra\_Sekaran](https://forums.percona.com/u/Raja_Chandra_Sekaran)\
**Post date:** [January 11, 2025, 5:20pm UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/19 "2025-01-11T17:20:52Z")

</div>

Hi @ademidoff,  
Thanks for your valuable reply we tried that method too.

---

<div class="post-metadata">

**Author:** ![Marvin\_Stelter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marvin_stelter/32/11330_2.png) [@Marvin\_Stelter](https://forums.percona.com/u/Marvin_Stelter)\
**Post date:** [February 17, 2025, 8:07am UTC](https://forums.percona.com/t/while-try-to-login-to-the-pmm-interface-we-facing-invalid-user-and-password-issue/31824/20 "2025-02-17T08:07:07Z")

</div>

had this problem too. I solved it by stopping every PMM client, then resetting the password and waiting a few hours.

I’m not sure, but I guess that the client tried to log in with an incorrect password, and Grafana/PMM blocked every login attempt even when the password was correct.

After a few minutes / hours it worked again, then I updated the pmm-client config with the new password and restarted the clients.
