Just tried installing a new v6 install on a Pi I had lying around, as I’m bored on a Sat afternoon. When the install finished, when it would normally show the web interface password, it simply said ‘NOT SET’. Have tried accessing http://192.168.1.199:8080/admin , but I just get a Connection Refused error.
Any ideas folks?
https://tricorder.pi-hole.net/lIz7Ytoh/
You can set that password with below:
sudo pihole setpassword
What do below two four output?
pihole-FTL --config webserver.port
sudo ss -nltup | grep pihole
nc -zvw 5 192.168.1.199 8080
sudo nft list ruleset
DL6ER
December 14, 2024, 5:43pm
3
Your Tricorder log shows Pi-hole runs on ports 80 (HTTP) and 443 (HTTPS), so either
http://192.168.1.199/admin
or
https://192.168.1.199/admin
without any ports.
1 Like
80,[::]:80,443s,[::]:443s
[quote="deHakkelaar, post:2, topic:74519”]
sudo ss -nltup | grep pihole
[/quote]
udp UNCONN 0 0 0.0.0.0:53 0.0.0.0:* users:(("pihol-FTL",pid=652,fd=20))
udp UNCONN 0 0 0.0.0.0:123 0.0.0.0:* users:(("pihol-FTL",pid=652,fd=42))
udp UNCONN 0 0 *:53 *:* users:(("pihol-FTL",pid=652,fd=22))
udp UNCONN 0 0 *:123 *:* users:(("pihol-FTL",pid=652,fd=44))
tcp LISTEN 0 200 0.0.0.0:443 0.0.0.0:* users:(("pihol-FTL",pid=652,fd=36))
tcp LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("pihol-FTL",pid=652,fd=21))
tcp LISTEN 0 200 0.0.0.0:80 0.0.0.0:* users:(("pihol-FTL",pid=652,fd=34))
tcp LISTEN 0 200 [::]:443 [::]:* users:(("pihol-FTL",pid=652,fd=37))
tcp LISTEN 0 32 [::]:53 [::]:* users:(("pihol-FTL",pid=652,fd=23))
tcp LISTEN 0 200 [::]:80 [::]:* users:(("pihol-FTL",pid=652,fd=35))
[quote="deHakkelaar, post:2, topic:74519”]
nc -zvw 5 192.168.1.199 8080
[/quote]
nc: connect to 192.168.1.199 port 8080 (tcp) failed: Connection refused
[quote="deHakkelaar, post:2, topic:74519”]
sudo nft list ruleset
[/quote]
(No output)
Why is this? It’s just a standard install AFAIK
Do you want to have it listining on another port for some reason?
Why not default port 80 for HTTP?
EDIT: Oh ps, output looks good ... for port 80 (HTTP) and 443(HTTPS).
$ pihole-FTL --config webserver.port
80,[::]:80,443s,[::]:443s
Why are you trying port 8080
?
By default Pi-hole installation will use port 80
if it is free.
Pi-hole will try to use port 8080
only if port 80 is already in use.
I'm not - this was a vanilla install, using defaults.
Literally all I did was:
Installed Pi-hole:
curl -sSL https://install.pi-hole.net | bash
and changed to the development branches using:
pihole checkout dev
But in the OP you said...
Have you tried accessing it via http://192.168.1.199/admin
?
Yeah this works, I'm just wondering why it configured wrong in the first place.
It was in the final stages of the install that the instruction to log in via http://192.168.1.199:8080/admin was given
How did you install? Standard install and then switch via pihole checkout dev
?
The issue is here:
if [ -z "$useUpdateVars" ]; then
useUpdateVars=false
fi
adlistFile="/etc/pihole/adlists.list"
# Pi-hole needs an IP address; to begin, these variables are empty since we don't know what the IP is until this script can run
IPV4_ADDRESS=${IPV4_ADDRESS}
IPV6_ADDRESS=${IPV6_ADDRESS}
# Give settings their default values. These may be changed by prompts later in the script.
QUERY_LOGGING=
WEBPORT=8080
PRIVACY_LEVEL=
# Where old configs go to if a v6 migration is performed
V6_CONF_MIGRATION_DIR="/etc/pihole/migration_backup_v6"
if [ -z "${USER}" ]; then
USER="$(id -un)"
fi
# dialog dimensions: Let dialog handle appropriate sizing.
This was part of Needs tweaking, offer chance to change web interface port · pi-hole/pi-hole@d2d1195 · GitHub
but most of this commit is gone. Only the hard-coded webport is still there