# Login page redirection

**URL:** <https://forums.percona.com/t/login-page-redirection/36811>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [February 20, 2025, 9:47am UTC](https://forums.percona.com/t/login-page-redirection/36811 "2025-02-20T09:47:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zineb\_Naji](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zineb_naji/32/20211_2.png) [@Zineb\_Naji](https://forums.percona.com/u/Zineb_Naji)\
**Post date:** [February 20, 2025, 9:47am UTC](https://forums.percona.com/t/login-page-redirection/36811/1 "2025-02-20T09:47:57Z")

</div>

Hello,

When I connect to the PMM login page, I enter “admin” as both username and password, and then it redirects me to set a new password. Once that is done, it redirects me back to the login page, and I cannot log in. When I set `[auth.anonymous] enabled = true`, it redirects me to the dashboard, but unauthorized messages appear.

The domain is hosted by a client, and I want to know if we need to inform them to allow some specific paths.

Thanks for help

---

<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:** [February 20, 2025, 11:12am UTC](https://forums.percona.com/t/login-page-redirection/36811/2 "2025-02-20T11:12:07Z")

</div>

Hi @Zineb_Naji

What version of PMM is it?

Could you also check the contents of the `[database]` section of Grafana config, which is located in `/etc/grafana/grafana.ini`? Do you see something similar to the following?

```auto
[database]
# You can configure the database connection by specifying type, host, name, user and password
# as separate properties or as on string using the url properties.

# Either "mysql", "postgres" or "sqlite3", it's your choice
type = postgres
host = localhost
user = grafana

```

I’m trying to figure out which database - sqlite3 or PostgreSQL - is PMM connecting to in your case?

---

<div class="post-metadata">

**Author:** ![Zineb\_Naji](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zineb_naji/32/20211_2.png) [@Zineb\_Naji](https://forums.percona.com/u/Zineb_Naji)\
**Post date:** [February 20, 2025, 11:42am UTC](https://forums.percona.com/t/login-page-redirection/36811/3 "2025-02-20T11:42:08Z")

</div>

Hey, thanks for your response

yes , the section is present in my conf file

```auto
##################### Grafana Configuration #####################
[database]
type = postgres
host = localhost
user = grafana

```

The version of PMM : I use this image percona/pmm-server:2

---

<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:** [February 20, 2025, 3:32pm UTC](https://forums.percona.com/t/login-page-redirection/36811/4 "2025-02-20T15:32:16Z")

</div>

You can try the following:

1. restart Grafana: `supervisorctl restart grafana`
2. start tailing the logs: `tail -f /srv/logs/grafana.log`
3. from another terminal, run `change-admin-password <new-password>`

Then check for error messages in the logtail. If the above does not help, you will most probably be able to see an error in the logs.

---

<div class="post-metadata">

**Author:** ![Zineb\_Naji](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zineb_naji/32/20211_2.png) [@Zineb\_Naji](https://forums.percona.com/u/Zineb_Naji)\
**Post date:** [February 21, 2025, 9:05am UTC](https://forums.percona.com/t/login-page-redirection/36811/5 "2025-02-21T09:05:01Z")

</div>

Password change: Works when using the following command, but it does not affect browser login:

docker exec -t container\_name change-admin-password admin12345

Observed issue: Although the curl command returns an HTTP 200 response, accessing the site via a browser always redirects to /graph/login.

curl -I [https://admin:admin12345@example.com/graph/dashboards](https://admin:admin12345@example.com/graph/dashboards)  
Result: HTTP/1.1 200 OK

---

<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:** [February 21, 2025, 2:55pm UTC](https://forums.percona.com/t/login-page-redirection/36811/6 "2025-02-21T14:55:20Z")

</div>

I don’t really know what could trigger such a behavior. Maybe try logging in from a different host, or even a different browser, or both.

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 24, 2025, 2:53pm UTC](https://forums.percona.com/t/login-page-redirection/36811/7 "2025-02-24T14:53:24Z")

</div>

Have you tried to clean browser cache?
