Greetings! Hope you all are fine in these corona times
This is regarding an issue we are stuck at since 2 weeks now. There are two things we require:
We are facing login issue on Grafana UI.
Whenever we try to login from Microsoft Edge browser, we are redirected to the login page again even if the admin creds are success.
When we use IE, we are successfully able to login to Grafana but the alignment in settings is distorted.
This appears to be s strange behavior to me. We are using Grafana 7.0.X. We are using Prometheus-operator helm chart to deploy Grafana.
Find in attached the ingress resource manifest which is configured and also the grafana.ini.
Could you please suggest a way to resolve the login issue?
Issue 2)
We also want to download plugins on the fly but due to proxy issue we are not able to do the same. Could let us know where, what and how can we inject the proxy details in the container so that the plugins are downloaded properly.
i’m having the same issue since a few hours.
After successful signup i get redirected to the login-page again.
This problem occurs if i try to login in from a different PC through the network.
If i try to sign in on the local machine every thing works just fine.
Any ideas how to fix the problem with signing in remotely?
Nothing changed in the setup.
i was able to fix my problem by reseting my config.ini file and reconfiguring it.
I have exactly the same configs than before, but maybe there was an issue with loading it correctly.
The second point I think you should check is the Proxy settings of your webserver (I work with Apache) and check the proxy settings and subur address in grafana.ini
But I can’t help you much more because I installed Grafana in a Linux machine and yours is Windows
I tried to setup again but facing the same problem wherein I am redirected back to the login page even after successful login.
Could you please help me with this situation?
Having the same problem. Login iframe displays logged in and immediately returns to login screen.
Grafana v7.1.3 on Ubuntu 20.04.1 LTS
cookie_samesite = disabled (None wont work on chrome)
allow_embedding = true
Not sure if HTTPS required? Only able to run as http
I’m not sure if it’s related, but we noticed similar behavior recently on an instance that we set up. The problem was with a mismatch between HTTP and HTTPS. I’m not quite sure whether it was a reverse proxy issue or a Grafana issue (or both); if I recall correctly Grafana was expecting connections over HTTPS, but was also accessible over HTTP - and whenever a user tried to log in over HTTP, they were always just redirected back to the login page.
I just noticed that your config has
root_url = http://%(domain)s/grafana/
i.e. you’re running under a sub path. I’m not really sure if your nginx config is right. For troubleshooting I would recommend taking out the /grafana/ sub path and trying to run on the top level of the domain if possible. Either way, I have a strong suspicion that something in the reverse proxy configuration isn’t quite right.
Finally, @yashbrahmani in one of your previous messages you said “We are currently getting the following error in the grafana logs”, but I don’t see any errors in what you posted - it looks quite normal. I imagine the “status 302” messages are redirects from / to /login (or similar).
Iframe embedding works in Edge using:
cookie_samesite = disabled
allow_embedding = true
Redirects to login when accessed from Chrome:
Request url: http://x.x.x.x:3000/login
Request method: post
Status code: 200
Response Header
Set-Cookie: The set cookie didn’t specify a same site attribute and was defaulted to same site = lax and was blocked because it came from a cross-site response which was not the response to a top level navigation. The set cookie had to have been set to same-site=none to enable cross-site usage
We tried to run at the on the top level of the domain and following is my observation:
Redirected to login page in Edge and IE. It works in chrome.
There is a limitation with browsers IE and Edge browsers. Following is the description somewhere in GitHub issues about this problem:
I discussed IE 11 support with the team on whether we do/should/will support it. We really do not want to tons of work to keep Grafana working in IE11 but can fix some of the critical issues so that it mostly works . Getting the UI to be polished for IE11 is not a priority considering its market share and its poor support for modern CSS
Even the distorted problem does not appear in chrome.
We would like to know the grafana.ini configuration which works fine in IE as well as in Edge and in chrome.
Thanks for the feedback Yash, looks like I was barking up the wrong tree here. It does indeed sound like a browser-related issue. I’m afraid we’ve not done any testing with IE, so probably can’t help much beyond this.