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
random password is rejected #428
Comments
What do your docker logs say about the web password being set? The only behavior that changed with 4.2.2 is now if you use a volume for /etc/pihole/ it should just say |
yes - ::: Pre existing WEBPASSWORD found If I like to generate a new random password - could I remove the password line (WEBPASSWORD=xxxxxxxxx) from setupVars.conf ? |
Yes that is the current procedure to regenerate a new random password. |
The log says this:
But the docker_run.sh says
Updated to show same log as docker_run output. The docker_run output does report the same password as the log; it's just wrong. It's not really assigning that password, it's using the first run random password. Also the script isn't reporting the correct admin page URL, I just noticed that, the old docker_run.sh script showed that correctly. |
I just experienced this same issue - I was re-creating the Docker container a bunch of times while ironing out my config, and when it finally came time to login, the most recent "Assigning random password:" log entry did not work. Luckily I had logged the random password each time I created a new container, and was able to use trial-and-error to figure out which one was correct. It was definitely confusing that a new password was being reported each time but not used, and doubly so because the |
I think "Assigning random password" prints even when a pre existing password is there. That message should probably actually say 'Generating random password for later assignment'. Could you review your full log and see if it also says the message "::: Pre existing WEBPASSWORD found" - which should mean it prevented the actual usage of the randomly generated password. I'll add in logic to stop printing the 'Assigning random pass' when it isn't assigned to prevent confusion. |
I'm having similar issue. Each time restarts, assigns a new random password. Getting error in settings that might be related:
Tried setting password in environment variable and it would not be set. Figured it out - could not read /etc/pihole/setupVars.conf all the time. Could create it, but not change it. My complicated configuration wanting to save that data on a CIFS share. Found out that need 777 access to everything on the share for it to work. |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
This is a...
Description
Since docker image e0869bf1a536 (4.2.2), more often than not the listed password is rejected by the web interface. I am using the latest docker_run.sh script, only adding
:z
for selinux and changing timezone.Expected Behavior
I should be able to login to the web interface.
Actual Behavior
Wrong password!
Possible Fix
Steps to Reproduce and debugging done
e.g. your docker run command, pages to visit, CLI commands you ran
sudo docker logs pihole
Debug steps I have tried
docker run
example in the readme (removing any customizations I added)If I
rm -rf etc-*
the problem doesn't happen. So something is being saved in there that's contributing to this problem. And another regression test is if I use the old password, it still works. The newly generated random password reported by the script doesn't work. So yeah, password is being saved in the volumes.Context and extra information
The bug is that the script says the password is Y but it's really X, and it's not really random. It's one time random and then it's assigned, and ends up disagreeing with the startup script's output.
Your Environment
docker-1.13.1-65.git1185cfd.fc29.x86_64
4.20.12-200.fc29.x86_64
The text was updated successfully, but these errors were encountered: