-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating to v6, after every container version update, unable to log in using existing cookies/password #1769
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@evulhotdog - will try to look at this later - though I am unable to reproduce your issue, I have seen someone else on our forums mention something similar |
Does the issue happen if you try to set the password directly on the compose file, like this? env:
TZ: "America/New_York"
FTLCONF_webserver_api_password: "my_secret_password" |
Maybe it is good to specify: I am using Brave and it tends to block scripts and some security concerns. I have a similar issue. When trying to log in, if I input the wrong password, it tells me that I have to change it with the command. If I input the right password it goes back to the login page. If I clear all website data in the Developer Console (F12) > Application. It then logs in properly. |
All - I don't suppose you happen to be using nebula-sync? |
I ran into the same issue. It turned out another service on another port at the same host issues an "SID" cookie. While pi-hole uses "sid" (lowercase) for its session ID, and cookies should be case sensitive, it still seems to cause confusion during authentication. This issue can be resolved easily if there's a way to configure/prefix the session id cookie so that is less generic. @PREngineer @evulhotdog can you confirm that you have a similar cookie set, and that removing only that one cookie fixes the issue for you? If so, we can file an issue at pi-hole/web for a more unique name for the session cookie. Edit: or rather, it should be filed in the pi-hole/FTL repo. I.e. here and here. |
Cookies are also per-domain. If you use the built-in hostname to access the web interface (http://pi.hole/admin) you should not get this clash. Similar situation here: https://old.reddit.com/r/pihole/comments/1j3gtz3/pihole_ftl_v604_web_v602_and_core_v605_released/mg0npq5/ |
Yes indeed. They're not isolated per port, only per host. I didn't know the pi.hole trick. Good one! Nevertheless, with the "bridge" network mode (as per default configuration), the IP it returns is one internal to Docker (172.27.0.2) which I cannot access on the network. But that falls outside of the scope of this issue. The quick work around then is to a create custom hostname (Settings -> Local DNS Records) and use that to access the web admin. |
I will update everyone after the next update if it continues to occur. I will test it both with my current DNS, and pi.hole.
Same for pi.hole fqdn. |
I can't see another cookie. The sid is a random set of characters. |
This is a: Bug
Details
Every time that the container is updated, after trying to reauthenticate with pihole or using existing cookies it fails to log me in. I am required to clear cookies for some reason. This did not occur in v5.
If I manually remove the cookies from my browser for the ip:port of pihole, it works fine.
Related Issues
How to reproduce the issue
These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
The text was updated successfully, but these errors were encountered: