Pi Hole Docker Container - setupVars.conf does not exist

Please follow the below template, it will help us to help you!

@diginc - I'm not sure if this is an issue with the docker container, pi hole, or me. It is probably the last option, but I'm pinging you just in case it is the first on.

Expected Behaviour:

I start up the Pi Hole docker container using the provided script (link below) and pi hole starts running properly

Actual Behaviour:

I start up the Pi Hole docker container using the provided script. Container launches and attaches to the requisite ports. It even works as a name server, but isn't blocking anything.

I point my browser at http://serverip/ and I get an error that says [ERROR] File not found: /etc/pihole/setupVars.conf

If I go to http://serverip/admin I do get a page. But when I try to do an Update Lists, I get an error that says...
Installation Failure: /etc/pihole/setupVars.conf does not exist!
Please run 'pihole -r', and choose the 'reconfigure' option to fix.

I launched a bash session with the running container (docker exec -it pihole /bin/bash) and tried running pihole -r
I accepted all of the defaults - output below.

[✓] Disk space check

[✓] Update local cache of available packages

[✗] Checking apt-get for upgraded packages
Kernel update detected. If the install fails, please reboot and try again

[i] Installer Dependency checks...
[i] Checking for apt-utils (will be installed)
[i] Checking for dialog (will be installed)
[i] Checking for debconf (will be installed)
[i] Checking for dhcpcd5 (will be installed)
[i] Checking for git (will be installed)
[i] Checking for iproute2 (will be installed)
[i] Checking for whiptail (will be installed)

[✓] Stopping dnsmasq service...

[✓] Stopping lighttpd service...
RTNETLINK answers: Operation not permitted

Then the web server and name server stop working all together.

Further investigation:
I suspect the part of the startup script that parses out IP and IPV6 isn't working correctly.

Output of ip route get 8.8.8.8 is:
8.8.8.8 via 192.168.1.1 dev enp0s25 src 192.168.1.75 uid 1000
cache

Output of ip -6 route get 2001:4860:4860::8888 is:
2001:4860:4860::8888 from :: via fe80::1ad6:c7ff:fe24:5897 dev enp0s25 proto ra src 2605:a000:1230:e145:85fd:604a:b2:848 metric 100 pref medium

Output of echo "IP: ${IP} - IPv6: ${IPv6}" when the start up script is run is:
IP: 1000 - IPv6: src

Further further investigation:
Once I got IPv6 set up for docker, I was able to hard code in IPv4 and IPv6 addresses in the startup script. So, this lends credence to the logic in the startup script not parsing out addresses correctly.

Debug Token:

ujvk4j9e2y

pihole docked is something maintained by diginc. your best best is to submit an issue on the github repo found here https://github.com/diginc/docker-pi-hole/issues

Please just delete the whole first 4 IP lines and type in your IP to the variables like so:

IP="MyIP"
IPv6="MyIPv6"

Edit: Moving this party here https://github.com/diginc/docker-pi-hole/issues/273

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.