[ ] Issue trying to build / test / develop the docker image
Description
Pi-hole 4.0 installs and runs great, and even blocks ads for awhile! After rebooting the container, things look normal, but no clients can resolve DNS.
Expected Behavior
DNS should continue to resolve
Actual Behavior
DNS requests do not resolve, clients effectively can't browse the net as a result.
Possible Fix
never reboot?
Steps to Reproduce and debugging done
e.g. your docker run command, pages to visit, CLI commands you ran
docker run -d --name='pihole' --net='br0' --ip='10.0.1.10' -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e 'TCP_PORT_53'='53' -e 'UDP_PORT_53'='53' -e 'TCP_PORT_80'='80' -e 'ServerIP'='10.0.1.10' -e 'ServerIPv6'='' -e 'DNS1'='1.1.1.1' -e 'DNS2'='1.0.0.1' -e 'IPv6'='False' -e 'TZ'='America/Los Angeles' -e 'WEBPASSWORD'='mypw' -e 'INTERFACE'='br0' -e 'DNSMASQ_LISTENING'='all' -v '/mnt/cache/appdata/pihole/pihole/':'/etc/pihole/':'rw' -v '/mnt/cache/appdata/pihole/dnsmasq.d/':'/etc/dnsmasq.d/':'rw' --cap-add=NET_ADMIN 'pihole/pihole:latest'
Setup pi-hole
set router to use it as DNS
Reboot pi-hole
Clients can't resolve DNS
Debug steps I have tried
I've tried completely removing the container and app data folder. I get the same results - it works until reboot.
[x ] I have tried destroying my container instance, pulling the newest image version, and re-creating a new container
[ ] I have tried running the nearly stock docker run example in the readme (removing any customizations I added)
[ ] I have tried running without my volume data mounts to eliminate volumes as the cause
[ ] I have searched this repository for existing issues and pull requests that look similar
Here's the log output (truncated):
[[ -n 1 ]]
var=PIHOLE_DNS_2
'[' -z 1.0.0.1 ']'
add_dnsmasq_setting server 1.0.0.1
[[ 1.0.0.1 != '' ]]
echo server=1.0.0.1
let COUNTER=COUNTER+1
[[ -n 1 ]]
var=PIHOLE_DNS_3
'[' -z '' ']'
break
'[' '!' -z '' ']'
delete_dnsmasq_setting domain-needed
sed -i /domain-needed/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting bogus-priv
sed -i /bogus-priv/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting dnssec
sed -i /dnssec/d /etc/dnsmasq.d/01-pihole.conf
delete_dnsmasq_setting trust-anchor=
sed -i /trust-anchor=/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting host-record
sed -i /host-record/d /etc/dnsmasq.d/01-pihole.conf
'[' '!' -z '' ']'
delete_dnsmasq_setting interface
sed -i /interface/d /etc/dnsmasq.d/01-pihole.conf
delete_dnsmasq_setting local-service
sed -i /local-service/d /etc/dnsmasq.d/01-pihole.conf
lighttpd -t -f /etc/lighttpd/lighttpd.conf
::: Testing lighttpd config: Syntax OK
set +e
echo '::: All config checks passed, cleared for startup ...'
::: All config checks passed, cleared for startup ...
'[' -f /.piholeFirstBoot ']'
rm /.piholeFirstBoot
echo ' ::: Docker start setup complete'
echo '
:: ::: ::: ::: ::: ::: ::: ::: ::: :::
:: Image moved / deprecation notice
:: OLD IMAGE : diginc/pi-hole
:: NEW IMAGE : pihole/pihole
:: In order to get the latest updates
:: please update your image references
:: ::: ::: ::: ::: ::: ::: ::: ::: :::
'
::: Docker start setup complete
:: ::: ::: ::: ::: ::: ::: ::: ::: :::
:: Image moved / deprecation notice
:: OLD IMAGE : diginc/pi-hole
:: NEW IMAGE : pihole/pihole
:: In order to get the latest updates
:: please update your image references
:: ::: ::: ::: ::: ::: ::: ::: ::: :::
[i] Neutrino emissions detected...
[i] Number of domains being pulled in by gravity: 1101611
[i] Number of unique domains trapped in the Event Horizon: 907923
[i] Number of blacklisted domains: 1
[i] Number of regex filters: 0
[✓] DNS service is running
[✓] Pi-hole blocking is Enabled
[cont-init.d] 20-start.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting lighttpd
Starting crond
Starting pihole-FTL (no-daemon)
[services.d] done.
## Context and extra information
## Your Environment
* Docker Host Operating System and OS Version: unRAID 6.5.3
* Docker Version: latest as of 8/21/18
* Hardware architecture: x86
This is a...
Description
Pi-hole 4.0 installs and runs great, and even blocks ads for awhile! After rebooting the container, things look normal, but no clients can resolve DNS.
Expected Behavior
DNS should continue to resolve
Actual Behavior
DNS requests do not resolve, clients effectively can't browse the net as a result.
Possible Fix
never reboot?
Steps to Reproduce and debugging done
e.g. your docker run command, pages to visit, CLI commands you ran docker run -d --name='pihole' --net='br0' --ip='10.0.1.10' -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e 'TCP_PORT_53'='53' -e 'UDP_PORT_53'='53' -e 'TCP_PORT_80'='80' -e 'ServerIP'='10.0.1.10' -e 'ServerIPv6'='' -e 'DNS1'='1.1.1.1' -e 'DNS2'='1.0.0.1' -e 'IPv6'='False' -e 'TZ'='America/Los Angeles' -e 'WEBPASSWORD'='mypw' -e 'INTERFACE'='br0' -e 'DNSMASQ_LISTENING'='all' -v '/mnt/cache/appdata/pihole/pihole/':'/etc/pihole/':'rw' -v '/mnt/cache/appdata/pihole/dnsmasq.d/':'/etc/dnsmasq.d/':'rw' --cap-add=NET_ADMIN 'pihole/pihole:latest'
Debug steps I have tried
I've tried completely removing the container and app data folder. I get the same results - it works until reboot.
docker run
example in the readme (removing any customizations I added)Here's the log output (truncated):
[[ -n 1 ]]
var=PIHOLE_DNS_2
'[' -z 1.0.0.1 ']'
add_dnsmasq_setting server 1.0.0.1
[[ 1.0.0.1 != '' ]]
echo server=1.0.0.1
let COUNTER=COUNTER+1
[[ -n 1 ]]
var=PIHOLE_DNS_3
'[' -z '' ']'
break
'[' '!' -z '' ']'
delete_dnsmasq_setting domain-needed
sed -i /domain-needed/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting bogus-priv
sed -i /bogus-priv/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting dnssec
sed -i /dnssec/d /etc/dnsmasq.d/01-pihole.conf
delete_dnsmasq_setting trust-anchor=
sed -i /trust-anchor=/d /etc/dnsmasq.d/01-pihole.conf
[[ false == true ]]
delete_dnsmasq_setting host-record
sed -i /host-record/d /etc/dnsmasq.d/01-pihole.conf
'[' '!' -z '' ']'
delete_dnsmasq_setting interface
sed -i /interface/d /etc/dnsmasq.d/01-pihole.conf
delete_dnsmasq_setting local-service
sed -i /local-service/d /etc/dnsmasq.d/01-pihole.conf
[[ single == \a\l\l ]]
[[ single == \l\o\c\a\l ]]
'[' -z br0 ']'
add_dnsmasq_setting interface br0
[[ br0 != '' ]]
echo interface=br0
[[ true == true ]]
add_dnsmasq_setting server=/localdomain/10.0.1.1
[[ '' != '' ]]
echo server=/localdomain/10.0.1.1
add_dnsmasq_setting server=/1.0.10.in-addr.arpa/10.0.1.1
[[ '' != '' ]]
echo server=/1.0.10.in-addr.arpa/10.0.1.1
setup_php_env
'[' -z '' ']'
VIRTUAL_HOST=10.0.1.10
local 'vhost_line=\t\t\t"VIRTUAL_HOST" => "10.0.1.10",'
local 'serverip_line=\t\t\t"ServerIP" => "10.0.1.10",'
local 'php_error_line=\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",'
grep -qP '\t\t\t"VIRTUAL_HOST" => "10.0.1.10",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
sed -i '/bin-environment/ a\t\t\t"VIRTUAL_HOST" => "10.0.1.10",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
grep -qP '\t\t\t"ServerIP" => "10.0.1.10",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
sed -i '/bin-environment/ a\t\t\t"ServerIP" => "10.0.1.10",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
grep -qP '\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
sed -i '/bin-environment/ a\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
echo 'Added ENV to php:'
grep -E '(VIRTUAL_HOST|ServerIP|PHP_ERROR_LOG)' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf Added ENV to php: "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "10.0.1.10", "VIRTUAL_HOST" => "10.0.1.10",
:: ::: ::: ::: ::: ::: ::: ::: ::: ::: :: Image moved / deprecation notice :: OLD IMAGE : diginc/pi-hole :: NEW IMAGE : pihole/pihole :: In order to get the latest updates :: please update your image references :: ::: ::: ::: ::: ::: ::: ::: ::: :::
[i] Neutrino emissions detected...