The Grafana home icon redirects to the login form despite enabling anonymous access

  • What Grafana version and what operating system are you using?
    Grafana 9.2.5
    Redhat 8.4

  • What are you trying to achieve?
    Redirect to the home dashboard when pushing the Home button

  • How are you trying to achieve it?

  1. Enable anonymous access (grafana.ini)
  2. Select Home Dashboard for the Organization (UI β†’ preferences)
  • What happened?
    Every time a user push home button get redirected to login form (https://grafana.xxxxx/login)

  • What did you expect to happen?
    A redirection to home dashboard

  • Can you copy/paste the configuration(s) that you are having problems with?

[auth.anonymous]
enabled = true
org_name = "myOrg"
org_role = Viewer
[auth]
disblable_login_form=true
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?
    No

We have recently updated from 8.4.4 to 9.2.5 and noticed that pushing the Grafana home icon redirects to /login instead of the Home dashboard.
Every time a user wants to return to the home dashboard they only have to push de Grafana home icon, but with the new version, this is not working.

What configuration are we missing?

Any help would be appreciated!

The same thing happens in the Grafana Playground https://play.grafana.org/d/000000012/grafana-play-home?orgId=1.
After clicking the Home button, redirect to the login form.
And it’s the same version we are using (9.2.5).

It was not the behavior in Grafana 8.4.x. Is there any configuration we could apply to avoid this redirection?

Thanks.

Summary

This text will be hidden

Hi @gallipi,

Welcome to the :grafana: community support forums !!

Is your Grafana server running behind a proxy server?

Hello,

The same problem here:

[auth.anonymous]
enabled = true

No proxy
home button get redirected to login.

http://127.0.0.1:8080/login

The problem exists since version 9.2.0

With version 9.1.8 is redirected to http://127.0.0.1:8080
(Configuration β†’ Preferences β†’ Home Dashboard)

Hi @usman.ahmad,

Yes, my Grafana is running behind a proxy server.
I’ve got this configuration in the grafana.ini file.

http_proxy = http://my_proxy:80
https_proxy = http://my_proxy:80
no_proxy = 127.0.0.1

Also happens for me since 9.2.0, just hovering over the Home button (icon) shows …/login in the url instead of …/

The page indeed means that destination.


@usman.ahmad the issue seems to be caused by this change in this line of code:

Looking at tags I see that it is included since v9.2.0-beta1, so that is indeed the culprit.

It seems that this issue is already known but not too easy to fix right now:

Hi all,

sorry for the inactivity as got some other pending tasks after the new year vacation.

@skydev Thanks for identifying this now will have to wait until this gets fixed.

I recommend to all affected users to subscribe to the GitHub issue so that you can get updates once it gets fixed.

1 Like

Same problem with Grafana v9.4.1.

Same problem with Grafana v9.4.3