pi-hole / docker-pi-hole

Pi-hole in a docker container
https://pi-hole.net
Other
8.57k stars 1.13k forks source link

pihole docker:latest does no longer start #931

Closed udochrist closed 3 years ago

udochrist commented 3 years ago

Versions

cannot run any command as the docker container exits itself

Platform

The same config of docker-compose is running since 2 years and updating to the latest image has never caused any issues.

docker-compose pull && docker-compose up -d 

has always started and will always update and start. Further expectancy would be a meaningful error log to identify the issue.

Actual behavior / bug

after a pull to pi-hole/pi-hole:latest for my docker install of pihole the container is no longer starting up. docker-compose shows it as "exiting".

The errors I can identify in the log output are

pihole         | Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
pihole         | The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
pihole         |

and

pihole         | ::: Testing pihole-FTL DNS: [cont-init.d] 20-start.sh: exited 1.

Steps to reproduce

Steps to reproduce the behavior:

docker-compose pull && docker-compose up -d (in this case docker-compose up to see the logs and find out why its crashing

Debug Token

Screenshots

output from docker-compose up pihole

root@six:/volume1/docker/network/pihole/config/etc-pihole# docker-compose up pihole
Recreating pihole ... done
Attaching to pihole
pihole         | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
pihole         | [s6-init] ensuring user provided files have correct perms...exited 0.
pihole         | [fix-attrs.d] applying ownership & permissions fixes...
pihole         | [fix-attrs.d] 01-resolver-resolv: applying...
pihole         | [fix-attrs.d] 01-resolver-resolv: exited 0.
pihole         | [fix-attrs.d] done.
pihole         | [cont-init.d] executing container initialization scripts...
pihole         | [cont-init.d] 20-start.sh: executing...
pihole         |  ::: Starting docker specific checks & setup for docker pihole/pihole
pihole         | Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
pihole         | The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
pihole         |
pihole         |   [i] Installing configs from /etc/.pihole...
pihole         |   [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [✓] Installed /etc/dnsmasq.d/01-pihole.conf
  [✓] Installed /etc/dnsmasq.d/06-rfc6761.conf
pihole         | Setting DNS servers based on PIHOLE_DNS_ variable
pihole         | ::: Pre existing WEBPASSWORD found
pihole         | DNSMasq binding to default interface: eth0
pihole         | Added ENV to php:
pihole         |            "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
pihole         |            "ServerIP" => "192.168.1.80",
pihole         |            "CORS_HOSTS" => "",
pihole         |            "VIRTUAL_HOST" => "pihole.internal.deengoh.com",
pihole         | Using IPv4 and IPv6
pihole         | ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
pihole         | https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
pihole         | https://mirror1.malwaredomains.com/files/justdomains
pihole         | https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
pihole         | https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
pihole         | ::: Testing pihole-FTL DNS: [cont-init.d] 20-start.sh: exited 1.
pihole         | [cont-finish.d] executing container finish scripts...
pihole         | [cont-finish.d] done.
pihole         | [s6-finish] waiting for services.
pihole         | [s6-finish] sending all processes the TERM signal.
pihole         | [s6-finish] sending all processes the KILL signal and exiting.
root@six:/volume1/docker/network/pihole/config/etc-pihole#

Additional context

Add any other context about the problem here.

udochrist commented 3 years ago

EDT: Changing between PIHOLEDNS and DNS1 DNS2 vars in the config between these 2 tries in the docker-compose file

waiting 10 mins after the last try and restarting

docker-compose up pihole

now logs

Click to expand! ``` Attaching to pihole pihole | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. pihole | [s6-init] ensuring user provided files have correct perms...exited 0. pihole | [fix-attrs.d] applying ownership & permissions fixes... pihole | [fix-attrs.d] 01-resolver-resolv: applying... pihole | [fix-attrs.d] 01-resolver-resolv: exited 0. pihole | [fix-attrs.d] done. pihole | [cont-init.d] executing container initialization scripts... pihole | [cont-init.d] 20-start.sh: executing... pihole | ::: Starting docker specific checks & setup for docker pihole/pihole pihole | Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported) pihole | The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file pihole | pihole | [i] Installing configs from /etc/.pihole... pihole | [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone! [✓] Installed /etc/dnsmasq.d/01-pihole.conf [✓] Installed /etc/dnsmasq.d/06-rfc6761.conf pihole | Converting DNS1 to PIHOLE_DNS_ pihole | Setting DNS servers based on PIHOLE_DNS_ variable pihole | ::: Pre existing WEBPASSWORD found pihole | DNSMasq binding to default interface: eth0 pihole | Added ENV to php: pihole | "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log", pihole | "ServerIP" => "192.168.1.80", pihole | "CORS_HOSTS" => "", pihole | "VIRTUAL_HOST" => "pihole.internal.deengoh.com", pihole | Using IPv4 and IPv6 pihole | ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early)) pihole | https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts pihole | https://mirror1.malwaredomains.com/files/justdomains pihole | https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt pihole | https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt pihole | ::: Testing pihole-FTL DNS: FTL started! pihole | ::: Testing lighttpd config: Syntax OK pihole | ::: All config checks passed, cleared for startup ... pihole | ::: Enabling Query Logging pihole | [i] Enabling logging... [✓] Logging has been enabled! pihole | ::: Docker start setup complete pihole | Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf pihole | Pi-hole version is v5.6 (Latest: v5.6) pihole | AdminLTE version is v5.8 (Latest: v5.8) pihole | FTL version is v5.11 (Latest: v5.11) pihole | Container tag is: 2021.10.1 pihole | [cont-init.d] 20-start.sh: exited 0. pihole | [cont-init.d] done. pihole | [services.d] starting services pihole | Starting lighttpd pihole | Starting pihole-FTL (no-daemon) as root pihole | Starting crond pihole | [services.d] done. pihole | Stopping pihole-FTL pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root ```

and seems to repeat the "starting" "Stopping" forever

PromoFaux commented 3 years ago

Can you please add the environment variable PH_VERBOSE and set it to 1 and then startup the container?

udochrist commented 3 years ago

here you are. thanks for picking this up so fast...

Click to expand... ``` Recreating pihole ... done Attaching to pihole pihole | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. pihole | [s6-init] ensuring user provided files have correct perms...exited 0. pihole | [fix-attrs.d] applying ownership & permissions fixes... pihole | [fix-attrs.d] 01-resolver-resolv: applying... pihole | [fix-attrs.d] 01-resolver-resolv: exited 0. pihole | [fix-attrs.d] done. pihole | [cont-init.d] executing container initialization scripts... pihole | [cont-init.d] 20-start.sh: executing... pihole | + bashCmd='bash -e -x' pihole | + bash -e -x /start.sh pihole | + export TAG pihole | + export ServerIP pihole | + export ServerIPv6 pihole | + export PYTEST pihole | + export PHP_ENV_CONFIG pihole | + export PHP_ERROR_LOG pihole | + export HOSTNAME pihole | + export WEBLOGDIR pihole | + export DNS1 pihole | + export DNS2 pihole | + export DNSSEC pihole | + export DNS_BOGUS_PRIV pihole | + export DNS_FQDN_REQUIRED pihole | + export INTERFACE pihole | + export DNSMASQ_LISTENING_BEHAVIOUR= pihole | + DNSMASQ_LISTENING_BEHAVIOUR= pihole | + export IPv6 pihole | + export WEB_PORT pihole | + export REV_SERVER pihole | + export REV_SERVER_DOMAIN pihole | + export REV_SERVER_TARGET pihole | + export REV_SERVER_CIDR pihole | + export CONDITIONAL_FORWARDING pihole | + export CONDITIONAL_FORWARDING_IP pihole | + export CONDITIONAL_FORWARDING_DOMAIN pihole | + export CONDITIONAL_FORWARDING_REVERSE pihole | + export TEMPERATUREUNIT pihole | + export ADMIN_EMAIL pihole | + export WEBUIBOXEDLAYOUT pihole | + export QUERY_LOGGING pihole | + export PIHOLE_DNS_ pihole | + export DHCP_ACTIVE pihole | + export DHCP_START pihole | + export DHCP_END pihole | + export DHCP_ROUTER pihole | + export DHCP_LEASETIME pihole | + export PIHOLE_DOMAIN pihole | + export DHCP_IPv6 pihole | + export DHCP_rapid_commit pihole | + export WEBTHEME pihole | + export CUSTOM_CACHE_SIZE pihole | + export adlistFile=/etc/pihole/adlists.list pihole | + adlistFile=/etc/pihole/adlists.list pihole | + '[' -n '' ']' pihole | + . /bash_functions.sh pihole | ++ . /opt/pihole/webpage.sh pihole | +++ dnsmasqconfig=/etc/dnsmasq.d/01-pihole.conf pihole | +++ dhcpconfig=/etc/dnsmasq.d/02-pihole-dhcp.conf pihole | +++ FTLconf=/etc/pihole/pihole-FTL.conf pihole | +++ dhcpstaticconfig=/etc/dnsmasq.d/04-pihole-static-dhcp.conf pihole | +++ dnscustomfile=/etc/pihole/custom.list pihole | +++ dnscustomcnamefile=/etc/dnsmasq.d/05-pihole-custom-cname.conf pihole | +++ gravityDBfile=/etc/pihole/gravity.db pihole | +++ PI_HOLE_FILES_DIR=/etc/.pihole pihole | +++ PH_TEST=true pihole | +++ source '/etc/.pihole/automated install/basic-install.sh' pihole | ++++ set -e pihole | ++++ export PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | ++++ PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | +++++ cat pihole | ++++ DNS_SERVERS='Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844 pihole | OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53 pihole | Level3;4.2.2.1;4.2.2.2;; pihole | Comodo;8.26.56.26;8.20.247.20;; pihole | DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b pihole | Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9 pihole | Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10 pihole | Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11 pihole | Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001' pihole | ++++ installLogLoc=/etc/pihole/install.log pihole | ++++ setupVars=/etc/pihole/setupVars.conf pihole | ++++ lighttpdConfig=/etc/lighttpd/lighttpd.conf pihole | ++++ coltable=/opt/pihole/COL_TABLE pihole | ++++ webroot=/var/www/html pihole | ++++ webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git pihole | ++++ webInterfaceDir=/var/www/html/admin pihole | ++++ piholeGitUrl=https://github.com/pi-hole/pi-hole.git pihole | ++++ PI_HOLE_LOCAL_REPO=/etc/.pihole pihole | ++++ PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage) pihole | ++++ PI_HOLE_INSTALL_DIR=/opt/pihole pihole | ++++ PI_HOLE_CONFIG_DIR=/etc/pihole pihole | ++++ PI_HOLE_BIN_DIR=/usr/local/bin pihole | ++++ PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole pihole | ++++ '[' -z '' ']' pihole | ++++ useUpdateVars=false pihole | ++++ adlistFile=/etc/pihole/adlists.list pihole | ++++ IPV4_ADDRESS= pihole | ++++ IPV6_ADDRESS= pihole | ++++ QUERY_LOGGING=true pihole | ++++ INSTALL_WEB_INTERFACE=true pihole | ++++ PRIVACY_LEVEL=0 pihole | ++++ CACHE_SIZE=10000 pihole | ++++ '[' -z '' ']' pihole | +++++ id -un pihole | ++++ USER=root pihole | ++++ r=20 pihole | ++++ c=70 pihole | ++++ reconfigure=false pihole | ++++ runUnattended=false pihole | ++++ INSTALL_WEB_SERVER=true pihole | ++++ [[ -f /opt/pihole/COL_TABLE ]] pihole | ++++ source /opt/pihole/COL_TABLE pihole | +++++ [[ -t 1 ]] pihole | +++++ COL_BOLD= pihole | +++++ COL_ULINE= pihole | +++++ COL_NC= pihole | +++++ COL_GRAY= pihole | +++++ COL_RED= pihole | +++++ COL_GREEN= pihole | +++++ COL_YELLOW= pihole | +++++ COL_BLUE= pihole | +++++ COL_PURPLE= pihole | +++++ COL_CYAN= pihole | +++++ COL_WHITE= pihole | +++++ COL_BLACK= pihole | +++++ COL_LIGHT_BLUE= pihole | +++++ COL_LIGHT_GREEN= pihole | +++++ COL_LIGHT_CYAN= pihole | +++++ COL_LIGHT_RED= pihole | +++++ COL_URG_RED= pihole | +++++ COL_LIGHT_PURPLE= pihole | +++++ COL_BROWN= pihole | +++++ COL_LIGHT_GRAY= pihole | +++++ COL_DARK_GRAY= pihole | +++++ TICK='[✓]' pihole | +++++ CROSS='[✗]' pihole | +++++ INFO='[i]' pihole | +++++ QST='[?]' pihole | +++++ DONE=' done!' pihole | +++++ OVER='\r' pihole | ++++ [[ true != true ]] pihole | +++ coltable=/opt/pihole/COL_TABLE pihole | +++ [[ -f /opt/pihole/COL_TABLE ]] pihole | +++ source /opt/pihole/COL_TABLE pihole | ++++ [[ -t 1 ]] pihole | ++++ COL_BOLD= pihole | ++++ COL_ULINE= pihole | ++++ COL_NC= pihole | ++++ COL_GRAY= pihole | ++++ COL_RED= pihole | ++++ COL_GREEN= pihole | ++++ COL_YELLOW= pihole | ++++ COL_BLUE= pihole | ++++ COL_PURPLE= pihole | ++++ COL_CYAN= pihole | ++++ COL_WHITE= pihole | ++++ COL_BLACK= pihole | ++++ COL_LIGHT_BLUE= pihole | ++++ COL_LIGHT_GREEN= pihole | ++++ COL_LIGHT_CYAN= pihole | ++++ COL_LIGHT_RED= pihole | ++++ COL_URG_RED= pihole | ++++ COL_LIGHT_PURPLE= pihole | ++++ COL_BROWN= pihole | ++++ COL_LIGHT_GRAY= pihole | ++++ COL_DARK_GRAY= pihole | ++++ TICK='[✓]' pihole | ++++ CROSS='[✗]' pihole | ++++ INFO='[i]' pihole | ++++ QST='[?]' pihole | ++++ DONE=' done!' pihole | ++++ OVER='\r' pihole | + . /opt/pihole/webpage.sh pihole | ++ dnsmasqconfig=/etc/dnsmasq.d/01-pihole.conf pihole | ++ dhcpconfig=/etc/dnsmasq.d/02-pihole-dhcp.conf pihole | ++ FTLconf=/etc/pihole/pihole-FTL.conf pihole | ++ dhcpstaticconfig=/etc/dnsmasq.d/04-pihole-static-dhcp.conf pihole | ++ dnscustomfile=/etc/pihole/custom.list pihole | ++ dnscustomcnamefile=/etc/dnsmasq.d/05-pihole-custom-cname.conf pihole | ++ gravityDBfile=/etc/pihole/gravity.db pihole | ++ PI_HOLE_FILES_DIR=/etc/.pihole pihole | ++ PH_TEST=true pihole | ++ source '/etc/.pihole/automated install/basic-install.sh' pihole | +++ set -e pihole | +++ export PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | +++ PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | ++++ cat pihole | +++ DNS_SERVERS='Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844 pihole | OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53 pihole | Level3;4.2.2.1;4.2.2.2;; pihole | Comodo;8.26.56.26;8.20.247.20;; pihole | DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b pihole | Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9 pihole | Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10 pihole | Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11 pihole | Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001' pihole | +++ installLogLoc=/etc/pihole/install.log pihole | +++ setupVars=/etc/pihole/setupVars.conf pihole | +++ lighttpdConfig=/etc/lighttpd/lighttpd.conf pihole | +++ coltable=/opt/pihole/COL_TABLE pihole | +++ webroot=/var/www/html pihole | +++ webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git pihole | +++ webInterfaceDir=/var/www/html/admin pihole | +++ piholeGitUrl=https://github.com/pi-hole/pi-hole.git pihole | +++ PI_HOLE_LOCAL_REPO=/etc/.pihole pihole | +++ PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage) pihole | +++ PI_HOLE_INSTALL_DIR=/opt/pihole pihole | +++ PI_HOLE_CONFIG_DIR=/etc/pihole pihole | +++ PI_HOLE_BIN_DIR=/usr/local/bin pihole | +++ PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole pihole | +++ '[' -z false ']' pihole | +++ adlistFile=/etc/pihole/adlists.list pihole | +++ IPV4_ADDRESS= pihole | +++ IPV6_ADDRESS= pihole | +++ QUERY_LOGGING=true pihole | +++ INSTALL_WEB_INTERFACE=true pihole | +++ PRIVACY_LEVEL=0 pihole | +++ CACHE_SIZE=10000 pihole | +++ '[' -z root ']' pihole | +++ r=20 pihole | +++ c=70 pihole | +++ reconfigure=false pihole | +++ runUnattended=false pihole | +++ INSTALL_WEB_SERVER=true pihole | +++ [[ -f /opt/pihole/COL_TABLE ]] pihole | +++ source /opt/pihole/COL_TABLE pihole | ++++ [[ -t 1 ]] pihole | ++++ COL_BOLD= pihole | ++++ COL_ULINE= pihole | ++++ COL_NC= pihole | ++++ COL_GRAY= pihole | ++++ COL_RED= pihole | ++++ COL_GREEN= pihole | ++++ COL_YELLOW= pihole | ++++ COL_BLUE= pihole | ++++ COL_PURPLE= pihole | ++++ COL_CYAN= pihole | ++++ COL_WHITE= pihole | ++++ COL_BLACK= pihole | ++++ COL_LIGHT_BLUE= pihole | ++++ COL_LIGHT_GREEN= pihole | ++++ COL_LIGHT_CYAN= pihole | ++++ COL_LIGHT_RED= pihole | ++++ COL_URG_RED= pihole | ++++ COL_LIGHT_PURPLE= pihole | ++++ COL_BROWN= pihole | ++++ COL_LIGHT_GRAY= pihole | ++++ COL_DARK_GRAY= pihole | ++++ TICK='[✓]' pihole | ++++ CROSS='[✗]' pihole | ++++ INFO='[i]' pihole | ++++ QST='[?]' pihole | ++++ DONE=' done!' pihole | ++++ OVER='\r' pihole | +++ [[ true != true ]] pihole | ++ coltable=/opt/pihole/COL_TABLE pihole | ++ [[ -f /opt/pihole/COL_TABLE ]] pihole | ++ source /opt/pihole/COL_TABLE pihole | +++ [[ -t 1 ]] pihole | +++ COL_BOLD= pihole | +++ COL_ULINE= pihole | +++ COL_NC= pihole | +++ COL_GRAY= pihole | +++ COL_RED= pihole | +++ COL_GREEN= pihole | +++ COL_YELLOW= pihole | +++ COL_BLUE= pihole | +++ COL_PURPLE= pihole | +++ COL_CYAN= pihole | +++ COL_WHITE= pihole | +++ COL_BLACK= pihole | +++ COL_LIGHT_BLUE= pihole | +++ COL_LIGHT_GREEN= pihole | +++ COL_LIGHT_CYAN= pihole | +++ COL_LIGHT_RED= pihole | +++ COL_URG_RED= pihole | +++ COL_LIGHT_PURPLE= pihole | +++ COL_BROWN= pihole | +++ COL_LIGHT_GRAY= pihole | +++ COL_DARK_GRAY= pihole | +++ TICK='[✓]' pihole | +++ CROSS='[✗]' pihole | +++ INFO='[i]' pihole | +++ QST='[?]' pihole | +++ DONE=' done!' pihole | +++ OVER='\r' pihole | + PH_TEST=true pihole | + . '/etc/.pihole/automated install/basic-install.sh' pihole | ++ set -e pihole | ++ export PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | ++ PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | +++ cat pihole | ++ DNS_SERVERS='Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844 pihole | OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53 pihole | Level3;4.2.2.1;4.2.2.2;; pihole | Comodo;8.26.56.26;8.20.247.20;; pihole | DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b pihole | Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9 pihole | Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10 pihole | Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11 pihole | Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001' pihole | ++ installLogLoc=/etc/pihole/install.log pihole | ++ setupVars=/etc/pihole/setupVars.conf pihole | ++ lighttpdConfig=/etc/lighttpd/lighttpd.conf pihole | ++ coltable=/opt/pihole/COL_TABLE pihole | ++ webroot=/var/www/html pihole | ++ webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git pihole | ++ webInterfaceDir=/var/www/html/admin pihole | ++ piholeGitUrl=https://github.com/pi-hole/pi-hole.git pihole | ++ PI_HOLE_LOCAL_REPO=/etc/.pihole pihole | ++ PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage) pihole | ++ PI_HOLE_INSTALL_DIR=/opt/pihole pihole | ++ PI_HOLE_CONFIG_DIR=/etc/pihole pihole | ++ PI_HOLE_BIN_DIR=/usr/local/bin pihole | ++ PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole pihole | ++ '[' -z false ']' pihole | ++ adlistFile=/etc/pihole/adlists.list pihole | ++ IPV4_ADDRESS= pihole | ++ IPV6_ADDRESS= pihole | ++ QUERY_LOGGING=true pihole | ++ INSTALL_WEB_INTERFACE=true pihole | ++ PRIVACY_LEVEL=0 pihole | ++ CACHE_SIZE=10000 pihole | ++ '[' -z root ']' pihole | ++ r=20 pihole | ++ c=70 pihole | ++ reconfigure=false pihole | ++ runUnattended=false pihole | ++ INSTALL_WEB_SERVER=true pihole | ++ [[ -f /opt/pihole/COL_TABLE ]] pihole | ++ source /opt/pihole/COL_TABLE pihole | +++ [[ -t 1 ]] pihole | +++ COL_BOLD= pihole | +++ COL_ULINE= pihole | +++ COL_NC= pihole | +++ COL_GRAY= pihole | +++ COL_RED= pihole | +++ COL_GREEN= pihole | +++ COL_YELLOW= pihole | +++ COL_BLUE= pihole | +++ COL_PURPLE= pihole | +++ COL_CYAN= pihole | +++ COL_WHITE= pihole | +++ COL_BLACK= pihole | +++ COL_LIGHT_BLUE= pihole | +++ COL_LIGHT_GREEN= pihole | +++ COL_LIGHT_CYAN= pihole | +++ COL_LIGHT_RED= pihole | +++ COL_URG_RED= pihole | +++ COL_LIGHT_PURPLE= pihole | +++ COL_BROWN= pihole | +++ COL_LIGHT_GRAY= pihole | +++ COL_DARK_GRAY= pihole | +++ TICK='[✓]' pihole | +++ CROSS='[✗]' pihole | +++ INFO='[i]' pihole | +++ QST='[?]' pihole | +++ DONE=' done!' pihole | +++ OVER='\r' pihole | ++ [[ true != true ]] pihole | + echo ' ::: Starting docker specific checks & setup for docker pihole/pihole' pihole | ::: Starting docker specific checks & setup for docker pihole/pihole pihole | + fix_capabilities pihole | ++ which pihole-FTL pihole | + setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+ei /usr/bin/pihole-FTL pihole | Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported) pihole | The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file pihole | + ret=1 pihole | + [[ 1 -ne 0 ]] pihole | + [[ root != \r\o\o\t ]] pihole | + load_web_password_secret pihole | + '[' -z x ']' pihole | + generate_password pihole | + '[' -z x ']' pihole | + validate_env pihole | ++ nc -4 -w1 -z 192.168.1.80 53 pihole | + [[ '' != '' ]] pihole | + [[ -n '' ]] pihole | + prepare_configs pihole | + PH_TEST=true pihole | + . '/etc/.pihole/automated install/basic-install.sh' pihole | ++ set -e pihole | ++ export PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | ++ PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin pihole | +++ cat pihole | ++ DNS_SERVERS='Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844 pihole | OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53 pihole | Level3;4.2.2.1;4.2.2.2;; pihole | Comodo;8.26.56.26;8.20.247.20;; pihole | DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b pihole | Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9 pihole | Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10 pihole | Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11 pihole | Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001' pihole | ++ installLogLoc=/etc/pihole/install.log pihole | ++ setupVars=/etc/pihole/setupVars.conf pihole | ++ lighttpdConfig=/etc/lighttpd/lighttpd.conf pihole | ++ coltable=/opt/pihole/COL_TABLE pihole | ++ webroot=/var/www/html pihole | ++ webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git pihole | ++ webInterfaceDir=/var/www/html/admin pihole | ++ piholeGitUrl=https://github.com/pi-hole/pi-hole.git pihole | ++ PI_HOLE_LOCAL_REPO=/etc/.pihole pihole | ++ PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage) pihole | ++ PI_HOLE_INSTALL_DIR=/opt/pihole pihole | ++ PI_HOLE_CONFIG_DIR=/etc/pihole pihole | ++ PI_HOLE_BIN_DIR=/usr/local/bin pihole | ++ PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole pihole | ++ '[' -z false ']' pihole | ++ adlistFile=/etc/pihole/adlists.list pihole | ++ IPV4_ADDRESS= pihole | ++ IPV6_ADDRESS= pihole | ++ QUERY_LOGGING=true pihole | ++ INSTALL_WEB_INTERFACE=true pihole | ++ PRIVACY_LEVEL=0 pihole | ++ CACHE_SIZE=10000 pihole | ++ '[' -z root ']' pihole | ++ r=20 pihole | ++ c=70 pihole | ++ reconfigure=false pihole | ++ runUnattended=false pihole | ++ INSTALL_WEB_SERVER=true pihole | ++ [[ -f /opt/pihole/COL_TABLE ]] pihole | ++ source /opt/pihole/COL_TABLE pihole | +++ [[ -t 1 ]] pihole | +++ COL_BOLD= pihole | +++ COL_ULINE= pihole | +++ COL_NC= pihole | +++ COL_GRAY= pihole | +++ COL_RED= pihole | +++ COL_GREEN= pihole | +++ COL_YELLOW= pihole | +++ COL_BLUE= pihole | +++ COL_PURPLE= pihole | +++ COL_CYAN= pihole | +++ COL_WHITE= pihole | +++ COL_BLACK= pihole | +++ COL_LIGHT_BLUE= pihole | +++ COL_LIGHT_GREEN= pihole | +++ COL_LIGHT_CYAN= pihole | +++ COL_LIGHT_RED= pihole | +++ COL_URG_RED= pihole | +++ COL_LIGHT_PURPLE= pihole | +++ COL_BROWN= pihole | +++ COL_LIGHT_GRAY= pihole | +++ COL_DARK_GRAY= pihole | +++ TICK='[✓]' pihole | +++ CROSS='[✗]' pihole | +++ INFO='[i]' pihole | +++ QST='[?]' pihole | +++ DONE=' done!' pihole | +++ OVER='\r' pihole | ++ [[ true != true ]] pihole | + LIGHTTPD_USER=www-data pihole | + LIGHTTPD_GROUP=www-data pihole | + LIGHTTPD_CFG=lighttpd.conf.debian pihole | + installConfigs pihole | + printf '\n %b Installing configs from %s...\n' '[i]' /etc/.pihole pihole | pihole | [i] Installing configs from /etc/.pihole... pihole | + version_check_dnsmasq pihole | + local dnsmasq_conf=/etc/dnsmasq.conf pihole | + local dnsmasq_conf_orig=/etc/dnsmasq.conf.orig pihole | + local dnsmasq_pihole_id_string=addn-hosts=/etc/pihole/gravity.list pihole | + local 'dnsmasq_pihole_id_string2=# Dnsmasq config for Pi-hole'\''s FTLDNS' pihole | + local dnsmasq_original_config=/etc/.pihole/advanced/dnsmasq.conf.original pihole | + local dnsmasq_pihole_01_source=/etc/.pihole/advanced/01-pihole.conf pihole | + local dnsmasq_pihole_01_target=/etc/dnsmasq.d/01-pihole.conf pihole | + local dnsmasq_rfc6761_06_source=/etc/.pihole/advanced/06-rfc6761.conf pihole | + local dnsmasq_rfc6761_06_target=/etc/dnsmasq.d/06-rfc6761.conf pihole | + [[ -f /etc/dnsmasq.conf ]] pihole | + printf ' %b Existing dnsmasq.conf found...' '[i]' pihole | [i] Existing dnsmasq.conf found...+ grep -q addn-hosts=/etc/pihole/gravity.list /etc/dnsmasq.conf pihole | + grep -q '# Dnsmasq config for Pi-hole'\''s FTLDNS' /etc/dnsmasq.conf pihole | + printf ' it is not a Pi-hole file, leaving alone!\n' pihole | + printf ' %b Installing %s...' '[i]' /etc/dnsmasq.d/01-pihole.conf pihole | it is not a Pi-hole file, leaving alone! pihole | [i] Installing /etc/dnsmasq.d/01-pihole.conf...+ [[ ! -d /etc/dnsmasq.d ]] pihole | + install -D -m 644 -T /etc/.pihole/advanced/01-pihole.conf /etc/dnsmasq.d/01-pihole.conf pihole | + printf '%b %b Installed %s\n' '\r' '[✓]' /etc/dnsmasq.d/01-pihole.conf [✓] Installed /etc/dnsmasq.d/01-pihole.conf pihole | + sed -i s/@INT@// /etc/dnsmasq.d/01-pihole.conf pihole | + [[ '' != '' ]] pihole | + sed -i '/^server=@DNS1@/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ '' != '' ]] pihole | + sed -i '/^server=@DNS2@/d' /etc/dnsmasq.d/01-pihole.conf pihole | + sed -i s/@CACHE_SIZE@/10000/ /etc/dnsmasq.d/01-pihole.conf pihole | + sed -i 's/^#conf-dir=\/etc\/dnsmasq.d$/conf-dir=\/etc\/dnsmasq.d/' /etc/dnsmasq.conf pihole | + [[ true == false ]] pihole | + sed -i 's/^#log-queries/log-queries/' /etc/dnsmasq.d/01-pihole.conf pihole | [i] Installing /etc/.pihole/advanced/06-rfc6761.conf...+ printf ' %b Installing %s...' '[i]' /etc/.pihole/advanced/06-rfc6761.conf pihole | + install -D -m 644 -T /etc/.pihole/advanced/06-rfc6761.conf /etc/dnsmasq.d/06-rfc6761.conf pihole | + printf '%b %b Installed %s\n' '\r' '[✓]' /etc/dnsmasq.d/06-rfc6761.conf [✓] Installed /etc/dnsmasq.d/06-rfc6761.conf pihole | + echo 'Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844 pihole | OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53 pihole | Level3;4.2.2.1;4.2.2.2;; pihole | Comodo;8.26.56.26;8.20.247.20;; pihole | DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b pihole | Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9 pihole | Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10 pihole | Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11 pihole | Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001' pihole | + chmod 644 /etc/pihole/dns-servers.conf pihole | + [[ ! -r /etc/pihole/pihole-FTL.conf ]] pihole | + [[ ! -r /etc/pihole/custom.list ]] pihole | + [[ true == true ]] pihole | + [[ ! -d /etc/lighttpd ]] pihole | + [[ -f /etc/lighttpd/lighttpd.conf ]] pihole | + mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig pihole | + install -D -m 644 -T /etc/.pihole/advanced/lighttpd.conf.debian /etc/lighttpd/lighttpd.conf pihole | + touch /etc/lighttpd/external.conf pihole | + chmod 644 /etc/lighttpd/external.conf pihole | + [[ -f /var/www/html/pihole/custom.php ]] pihole | + mkdir -p /run/lighttpd pihole | + chown www-data:www-data /run/lighttpd pihole | + mkdir -p /var/cache/lighttpd/compress pihole | + chown www-data:www-data /var/cache/lighttpd/compress pihole | + mkdir -p /var/cache/lighttpd/uploads pihole | + chown www-data:www-data /var/cache/lighttpd/uploads pihole | + touch /etc/pihole/setupVars.conf pihole | + set +e pihole | + mkdir -p /var/run/pihole /var/log/pihole pihole | + chown pihole:root /etc/lighttpd pihole | + chown pihole:pihole /etc/pihole/pihole-FTL.conf /var/log/pihole pihole | + chmod 644 /etc/pihole/pihole-FTL.conf pihole | + touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log pihole | + chown pihole:pihole /var/run/pihole /var/log/pihole pihole | + test -f /var/run/pihole/FTL.sock pihole | + chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /etc/pihole /var/log/pihole.log pihole | + [[ -e /etc/pihole/dhcp.leases ]] pihole | + chown pihole:pihole /etc/pihole/dhcp.leases pihole | + chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log pihole | + set -e pihole | + pihole updatechecker pihole | + [[ -e /etc/pihole/setupVars.conf ]] pihole | + cp -f /etc/pihole/setupVars.conf /etc/pihole/setupVars.conf.update.bak pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n true ']' pihole | + change_setting INSTALL_WEB_SERVER true pihole | + delete_setting INSTALL_WEB_SERVER pihole | + sed -i '/^INSTALL_WEB_SERVER/d' /etc/pihole/setupVars.conf pihole | + add_setting INSTALL_WEB_SERVER true pihole | + echo INSTALL_WEB_SERVER=true pihole | + '[' -n true ']' pihole | + change_setting INSTALL_WEB_INTERFACE true pihole | + delete_setting INSTALL_WEB_INTERFACE pihole | + sed -i '/^INSTALL_WEB_INTERFACE/d' /etc/pihole/setupVars.conf pihole | + add_setting INSTALL_WEB_INTERFACE true pihole | + echo INSTALL_WEB_INTERFACE=true pihole | + '[' -n '' ']' pihole | + '[' -n 192.168.1.80 ']' pihole | + changeFTLsetting REPLY_ADDR4 192.168.1.80 pihole | + deleteFTLsetting REPLY_ADDR4 pihole | + sed -i '/^REPLY_ADDR4/d' /etc/pihole/pihole-FTL.conf pihole | + addFTLsetting REPLY_ADDR4 192.168.1.80 pihole | + echo REPLY_ADDR4=192.168.1.80 pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -z '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -n '' ']' pihole | + '[' -z '' ']' pihole | + '[' -n 192.168.1.81#5054 ']' pihole | + echo 'Converting DNS1 to PIHOLE_DNS_' pihole | Converting DNS1 to PIHOLE_DNS_ pihole | + PIHOLE_DNS_=192.168.1.81#5054 pihole | + [[ -n no ]] pihole | + [[ no != \n\o ]] pihole | Setting DNS servers based on PIHOLE_DNS_ variable pihole | + '[' -n 192.168.1.81#5054 ']' pihole | + echo 'Setting DNS servers based on PIHOLE_DNS_ variable' pihole | + PIHOLE_DNS_ARR=(${PIHOLE_DNS_//;/ }) pihole | + count=1 pihole | + valid_entries=0 pihole | + for i in "${PIHOLE_DNS_ARR[@]}" pihole | + valid_ip 192.168.1.81#5054 pihole | + local ip=192.168.1.81#5054 pihole | + local stat=1 pihole | + local 'ipv4elem=(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)' pihole | + local 'portelem=(#(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))?' pihole | + local 'regex=^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)(#(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))?$' pihole | + [[ 192.168.1.81#5054 =~ ^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)(#(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))?$ ]] pihole | + stat=0 pihole | + return 0 pihole | + change_setting PIHOLE_DNS_1 192.168.1.81#5054 pihole | + delete_setting PIHOLE_DNS_1 pihole | + sed -i '/^PIHOLE_DNS_1/d' /etc/pihole/setupVars.conf pihole | + add_setting PIHOLE_DNS_1 192.168.1.81#5054 pihole | + echo PIHOLE_DNS_1=192.168.1.81#5054 pihole | + (( count=count+1 )) pihole | + (( valid_entries=valid_entries+1 )) pihole | + '[' 1 -eq 0 ']' pihole | + '[' -n '' ']' pihole | + [[ -n '' ]] pihole | + setup_web_port '' pihole | + local 'warning=WARNING: Custom WEB_PORT not used' pihole | + [[ -z '' ]] pihole | + return pihole | + setup_web_password ''\'''\''' pihole | + setup_var_exists WEBPASSWORD pihole | + local KEY=WEBPASSWORD pihole | + '[' -n '' ']' pihole | + grep -Pq '^WEBPASSWORD=' /etc/pihole/setupVars.conf pihole | + echo '::: Pre existing WEBPASSWORD found' pihole | + true pihole | ::: Pre existing WEBPASSWORD found pihole | + return pihole | + setup_temp_unit '' pihole | + local UNIT= pihole | + [[ '' != '' ]] pihole | + setup_ui_layout '' pihole | + local LO= pihole | + [[ '' != '' ]] pihole | + setup_admin_email '' pihole | + local EMAIL= pihole | + [[ '' != '' ]] pihole | + setup_dnsmasq '' '' pihole | + local interface= pihole | + local dnsmasq_listening_behaviour= pihole | + setup_dnsmasq_config_if_missing pihole | + '[' '!' -f /etc/dnsmasq.d/01-pihole.conf ']' pihole | + setup_dnsmasq_interface '' pihole | + local interface=eth0 pihole | + local interfaceType=default pihole | + '[' eth0 '!=' eth0 ']' pihole | + echo 'DNSMasq binding to default interface: eth0' pihole | + '[' -n eth0 ']' pihole | DNSMasq binding to default interface: eth0 pihole | + change_setting PIHOLE_INTERFACE eth0 pihole | + delete_setting PIHOLE_INTERFACE pihole | + sed -i '/^PIHOLE_INTERFACE/d' /etc/pihole/setupVars.conf pihole | + add_setting PIHOLE_INTERFACE eth0 pihole | + echo PIHOLE_INTERFACE=eth0 pihole | + setup_dnsmasq_listening_behaviour '' pihole | + local dnsmasq_listening_behaviour= pihole | + '[' -n '' ']' pihole | + setup_dnsmasq_user root pihole | + local DNSMASQ_USER=root pihole | + grep -r -q '^\s*user=' /etc/dnsmasq.conf /etc/dnsmasq.conf.old /etc/dnsmasq.d pihole | + echo -e '\nuser=root' pihole | + setup_cache_size '' pihole | + local 'warning=WARNING: CUSTOM_CACHE_SIZE not used' pihole | + local dnsmasq_pihole_01_location=/etc/dnsmasq.d/01-pihole.conf pihole | + [[ -z '' ]] pihole | + return pihole | + ProcessDNSSettings pihole | + source /etc/pihole/setupVars.conf pihole | ++ WEBPASSWORD= pihole | ++ DHCP_START=192.168.1.100 pihole | ++ DHCP_END=192.168.1.255 pihole | ++ DHCP_ROUTER=192.168.1.1 pihole | ++ DHCP_LEASETIME=6 pihole | ++ PIHOLE_DOMAIN=internal.deengoh.com pihole | ++ DHCP_IPv6=false pihole | ++ DHCP_rapid_commit=true pihole | ++ DHCP_ACTIVE=false pihole | ++ LIGHTTPD_ENABLED= pihole | ++ IPV6_ADDRESS= pihole | ++ CONDITIONAL_FORWARDING= pihole | ++ CONDITIONAL_FORWARDING_IP= pihole | ++ CONDITIONAL_FORWARDING_DOMAIN= pihole | ++ CONDITIONAL_FORWARDING_REVERSE= pihole | ++ IPV4_ADDRESS=192.168.1.80 pihole | ++ BLOCKING_ENABLED=true pihole | ++ DNSMASQ_LISTENING=single pihole | ++ DNS_FQDN_REQUIRED=true pihole | ++ DNS_BOGUS_PRIV=true pihole | ++ DNSSEC=false pihole | ++ REV_SERVER=true pihole | ++ REV_SERVER_CIDR=192.168.1.0/24 pihole | ++ REV_SERVER_TARGET=192.168.1.1 pihole | ++ REV_SERVER_DOMAIN=internal.deengoh.com pihole | ++ PIHOLE_DNS_2=1.0.0.1 pihole | ++ QUERY_LOGGING=true pihole | ++ INSTALL_WEB_SERVER=true pihole | ++ INSTALL_WEB_INTERFACE=true pihole | ++ PIHOLE_DNS_1=192.168.1.81#5054 pihole | ++ PIHOLE_INTERFACE=eth0 pihole | + delete_dnsmasq_setting server pihole | + sed -i '/^server/d' /etc/dnsmasq.d/01-pihole.conf pihole | + COUNTER=1 pihole | + true pihole | + var=PIHOLE_DNS_1 pihole | + '[' -z 192.168.1.81#5054 ']' pihole | + add_dnsmasq_setting server 192.168.1.81#5054 pihole | + [[ 192.168.1.81#5054 != '' ]] pihole | + echo server=192.168.1.81#5054 pihole | + (( COUNTER++ )) pihole | + true pihole | + var=PIHOLE_DNS_2 pihole | + '[' -z 1.0.0.1 ']' pihole | + add_dnsmasq_setting server 1.0.0.1 pihole | + [[ 1.0.0.1 != '' ]] pihole | + echo server=1.0.0.1 pihole | + (( COUNTER++ )) pihole | + true pihole | + var=PIHOLE_DNS_3 pihole | + '[' -z '' ']' pihole | + break pihole | + '[' -n '' ']' pihole | + delete_dnsmasq_setting domain-needed pihole | + sed -i '/^domain-needed/d' /etc/dnsmasq.d/01-pihole.conf pihole | + delete_dnsmasq_setting expand-hosts pihole | + sed -i '/^expand-hosts/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ true == true ]] pihole | + add_dnsmasq_setting domain-needed pihole | + [[ '' != '' ]] pihole | + echo domain-needed pihole | + add_dnsmasq_setting expand-hosts pihole | + [[ '' != '' ]] pihole | + echo expand-hosts pihole | + delete_dnsmasq_setting bogus-priv pihole | + sed -i '/^bogus-priv/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ true == true ]] pihole | + add_dnsmasq_setting bogus-priv pihole | + [[ '' != '' ]] pihole | + echo bogus-priv pihole | + delete_dnsmasq_setting dnssec pihole | + sed -i '/^dnssec/d' /etc/dnsmasq.d/01-pihole.conf pihole | + delete_dnsmasq_setting trust-anchor= pihole | + sed -i '/^trust-anchor=/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ false == true ]] pihole | + delete_dnsmasq_setting host-record pihole | + sed -i '/^host-record/d' /etc/dnsmasq.d/01-pihole.conf pihole | + '[' -n '' ']' pihole | + delete_dnsmasq_setting interface pihole | + sed -i '/^interface/d' /etc/dnsmasq.d/01-pihole.conf pihole | + delete_dnsmasq_setting local-service pihole | + sed -i '/^local-service/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ single == \a\l\l ]] pihole | + [[ single == \l\o\c\a\l ]] pihole | + '[' -z eth0 ']' pihole | + add_dnsmasq_setting interface eth0 pihole | + [[ eth0 != '' ]] pihole | + echo interface=eth0 pihole | + [[ '' == true ]] pihole | + delete_dnsmasq_setting rev-server pihole | + sed -i '/^rev-server/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ true == true ]] pihole | + add_dnsmasq_setting rev-server=192.168.1.0/24,192.168.1.1 pihole | + [[ '' != '' ]] pihole | + echo rev-server=192.168.1.0/24,192.168.1.1 pihole | + '[' -n internal.deengoh.com ']' pihole | + add_dnsmasq_setting server=/internal.deengoh.com/192.168.1.1 pihole | + [[ '' != '' ]] pihole | + echo server=/internal.deengoh.com/192.168.1.1 pihole | + [[ true != true ]] pihole | + ProcessDHCPSettings pihole | + source /etc/pihole/setupVars.conf pihole | ++ WEBPASSWORD= pihole | ++ DHCP_START=192.168.1.100 pihole | ++ DHCP_END=192.168.1.255 pihole | ++ DHCP_ROUTER=192.168.1.1 pihole | ++ DHCP_LEASETIME=6 pihole | ++ PIHOLE_DOMAIN=internal.deengoh.com pihole | ++ DHCP_IPv6=false pihole | ++ DHCP_rapid_commit=true pihole | ++ DHCP_ACTIVE=false pihole | ++ LIGHTTPD_ENABLED= pihole | ++ IPV6_ADDRESS= pihole | ++ CONDITIONAL_FORWARDING= pihole | ++ CONDITIONAL_FORWARDING_IP= pihole | ++ CONDITIONAL_FORWARDING_DOMAIN= pihole | ++ CONDITIONAL_FORWARDING_REVERSE= pihole | ++ IPV4_ADDRESS=192.168.1.80 pihole | ++ BLOCKING_ENABLED=true pihole | ++ DNSMASQ_LISTENING=single pihole | ++ DNS_FQDN_REQUIRED=true pihole | ++ DNS_BOGUS_PRIV=true pihole | ++ DNSSEC=false pihole | ++ REV_SERVER=true pihole | ++ REV_SERVER_CIDR=192.168.1.0/24 pihole | ++ REV_SERVER_TARGET=192.168.1.1 pihole | ++ REV_SERVER_DOMAIN=internal.deengoh.com pihole | ++ PIHOLE_DNS_2=1.0.0.1 pihole | ++ QUERY_LOGGING=true pihole | ++ INSTALL_WEB_SERVER=true pihole | ++ INSTALL_WEB_INTERFACE=true pihole | ++ PIHOLE_DNS_1=192.168.1.81#5054 pihole | ++ PIHOLE_INTERFACE=eth0 pihole | + [[ false == \t\r\u\e ]] pihole | + [[ -f /etc/dnsmasq.d/02-pihole-dhcp.conf ]] pihole | + setup_php_env pihole | + '[' -z pihole.internal.deengoh.com ']' pihole | + local 'vhost_line=\t\t\t"VIRTUAL_HOST" => "pihole.internal.deengoh.com",' pihole | + local 'corshosts_line=\t\t\t"CORS_HOSTS" => "",' pihole | + local 'serverip_line=\t\t\t"ServerIP" => "192.168.1.80",' pihole | + local 'php_error_line=\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' pihole | + local 'pihole_docker_tag_line=\t\t\t"PIHOLE_DOCKER_TAG" => "2021.10.1",' pihole | + grep -qP '\t\t\t"VIRTUAL_HOST" => "pihole.internal.deengoh.com",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + sed -i '/bin-environment/ a\\t\t\t"VIRTUAL_HOST" => "pihole.internal.deengoh.com",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + grep -qP '\t\t\t"CORS_HOSTS" => "",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + sed -i '/bin-environment/ a\\t\t\t"CORS_HOSTS" => "",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + grep -qP '\t\t\t"ServerIP" => "192.168.1.80",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + sed -i '/bin-environment/ a\\t\t\t"ServerIP" => "192.168.1.80",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + grep -qP '\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + sed -i '/bin-environment/ a\\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + grep -qP '\t\t\t"PIHOLE_DOCKER_TAG" => "2021.10.1",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + sed -i '/bin-environment/ a\\t\t\t"PIHOLE_DOCKER_TAG" => "2021.10.1",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | + echo 'Added ENV to php:' pihole | + grep -E '(VIRTUAL_HOST|CORS_HOSTS|ServerIP|PHP_ERROR_LOG)' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf pihole | Added ENV to php: pihole | "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log", pihole | "ServerIP" => "192.168.1.80", pihole | "CORS_HOSTS" => "", pihole | "VIRTUAL_HOST" => "pihole.internal.deengoh.com", pihole | + setup_dnsmasq_hostnames 192.168.1.80 '' pihole pihole | + local IPV4_ADDRESS=192.168.1.80 pihole | + local IPV6_ADDRESS= pihole | + local hostname=pihole pihole | + local dnsmasq_pihole_01_location=/etc/dnsmasq.d/01-pihole.conf pihole | + '[' -z pihole ']' pihole | + [[ 192.168.1.80 != '' ]] pihole | + tmp=192.168.1.80 pihole | + sed -i s/@IPV4@/192.168.1.80/ /etc/dnsmasq.d/01-pihole.conf pihole | + [[ '' != '' ]] pihole | + sed -i '/^address=\/pi.hole\/@IPv6@/d' /etc/dnsmasq.d/01-pihole.conf pihole | + sed -i '/^address=\/@HOSTNAME@\/@IPv6@/d' /etc/dnsmasq.d/01-pihole.conf pihole | + [[ pihole != '' ]] pihole | + sed -i s/@HOSTNAME@/pihole/ /etc/dnsmasq.d/01-pihole.conf pihole | + setup_ipv4_ipv6 pihole | + local 'ip_versions=IPv4 and IPv6' pihole | Using IPv4 and IPv6 pihole | + '[' true '!=' true ']' pihole | + echo 'Using IPv4 and IPv6' pihole | + setup_lighttpd_bind 192.168.1.80 pihole | + local serverip=192.168.1.80 pihole | + grep -q docker /proc/net/dev pihole | + setup_blocklists pihole | + local blocklists= pihole | + exit_string='(exiting setup_blocklists early)' pihole | + '[' -n '' ']' pihole | + '[' -f /etc/pihole/adlists.list ']' pihole | + echo '::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))' pihole | + cat /etc/pihole/adlists.list pihole | ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early)) pihole | https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts pihole | https://mirror1.malwaredomains.com/files/justdomains pihole | https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt pihole | https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt pihole | + return pihole | + test_configs pihole | + set -e pihole | + echo -n '::: Testing pihole-FTL DNS: ' pihole | ::: Testing pihole-FTL DNS: + sudo -u root pihole-FTL test pihole | FTL started! pihole | ::: Testing lighttpd config: + echo -n '::: Testing lighttpd config: ' pihole | + lighttpd -t -f /etc/lighttpd/lighttpd.conf pihole | Syntax OK pihole | + set +e pihole | + echo '::: All config checks passed, cleared for startup ...' pihole | ::: All config checks passed, cleared for startup ... pihole | + '[' -f /.piholeFirstBoot ']' pihole | + rm /.piholeFirstBoot pihole | + '[' -n '' ']' pihole | + . /etc/pihole/setupVars.conf pihole | ++ WEBPASSWORD= pihole | ++ DHCP_START=192.168.1.100 pihole | ++ DHCP_END=192.168.1.255 pihole | ++ DHCP_ROUTER=192.168.1.1 pihole | ++ DHCP_LEASETIME=6 pihole | ++ PIHOLE_DOMAIN=internal.deengoh.com pihole | ++ DHCP_IPv6=false pihole | ++ DHCP_rapid_commit=true pihole | ++ DHCP_ACTIVE=false pihole | ++ LIGHTTPD_ENABLED= pihole | ++ IPV6_ADDRESS= pihole | ++ CONDITIONAL_FORWARDING= pihole | ++ CONDITIONAL_FORWARDING_IP= pihole | ++ CONDITIONAL_FORWARDING_DOMAIN= pihole | ++ CONDITIONAL_FORWARDING_REVERSE= pihole | ++ IPV4_ADDRESS=192.168.1.80 pihole | ++ BLOCKING_ENABLED=true pihole | ++ DNSMASQ_LISTENING=single pihole | ++ DNS_FQDN_REQUIRED=true pihole | ++ DNS_BOGUS_PRIV=true pihole | ++ DNSSEC=false pihole | ++ REV_SERVER=true pihole | ++ REV_SERVER_CIDR=192.168.1.0/24 pihole | ++ REV_SERVER_TARGET=192.168.1.1 pihole | ++ REV_SERVER_DOMAIN=internal.deengoh.com pihole | ++ PIHOLE_DNS_2=1.0.0.1 pihole | ++ QUERY_LOGGING=true pihole | ++ INSTALL_WEB_SERVER=true pihole | ++ INSTALL_WEB_INTERFACE=true pihole | ++ PIHOLE_DNS_1=192.168.1.81#5054 pihole | ++ PIHOLE_INTERFACE=eth0 pihole | + '[' true == false ']' pihole | + change_setting QUERY_LOGGING true pihole | + delete_setting QUERY_LOGGING pihole | + sed -i '/^QUERY_LOGGING/d' /etc/pihole/setupVars.conf pihole | + add_setting QUERY_LOGGING true pihole | ::: Enabling Query Logging pihole | + echo QUERY_LOGGING=true pihole | + echo '::: Enabling Query Logging' pihole | + pihole logging on pihole | [i] Enabling logging... [✓] Logging has been enabled! pihole | + echo ' ::: Docker start setup complete' pihole | ::: Docker start setup complete pihole | + '[' -n '' ']' pihole | + gravityDBfile=/etc/pihole/gravity.db pihole | + config_file=/etc/pihole/pihole-FTL.conf pihole | Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf pihole | + echo ' Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf' pihole | + [[ -f /etc/pihole/pihole-FTL.conf ]] pihole | ++ grep --color=never -Po '^GRAVITYDB=\K.*' /etc/pihole/pihole-FTL.conf pihole | ++ echo /etc/pihole/gravity.db pihole | + gravityDBfile=/etc/pihole/gravity.db pihole | + '[' -z '' ']' pihole | + '[' -n '' ']' pihole | + echo '@reboot root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log' pihole | + pihole -v pihole | Pi-hole version is v5.6 (Latest: v5.6) pihole | AdminLTE version is v5.8 (Latest: v5.8) pihole | FTL version is v5.11 (Latest: v5.11) pihole | Container tag is: 2021.10.1 pihole | + echo ' Container tag is: 2021.10.1' pihole | [cont-init.d] 20-start.sh: exited 0. pihole | [cont-init.d] done. pihole | [services.d] starting services pihole | Starting lighttpd pihole | Starting crond pihole | [services.d] done. pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | Starting pihole-FTL (no-daemon) as root pihole | Stopping pihole-FTL pihole | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] pihole | Starting pihole-FTL (no-daemon) as root ^CGracefully stopping... (press Ctrl+C again to force) Stopping pihole ... done ```
PromoFaux commented 3 years ago

Hmm, that hasn't given me anything useful 😔

Have you explicitly run docker-compose down any time before updating? My standard process on my Synology is:

docker-compose pull && docker-compose down && docker-compose up -d

What does your compose file look like?

Also, see here for a note on the capabilities messages you were seeing

udochrist commented 3 years ago

1/ yes

I have just managed to exec a bash into the container while it seems to starting/crashing the pihole-ftl process. the pihole-FTL.log shows:

[2021-10-24 11:20:32.537 645M] Resizing "FTL-queries" from 59408384 to (1064960 * 56) == 59637760 (/dev/shm: 59.9MB used, 67.1MB total, FTL uses 59.9MB)
[2021-10-24 11:20:32.543 645M] Resizing "FTL-queries" from 59637760 to (1069056 * 56) == 59867136 (/dev/shm: 60.1MB used, 67.1MB total, FTL uses 60.1MB)
[2021-10-24 11:20:32.549 645M] Resizing "FTL-queries" from 59867136 to (1073152 * 56) == 60096512 (/dev/shm: 60.4MB used, 67.1MB total, FTL uses 60.4MB)
[2021-10-24 11:20:32.555 645M] Resizing "FTL-queries" from 60096512 to (1077248 * 56) == 60325888 (/dev/shm: 60.6MB used, 67.1MB total, FTL uses 60.6MB)
[2021-10-24 11:20:32.561 645M] Resizing "FTL-queries" from 60325888 to (1081344 * 56) == 60555264 (/dev/shm: 60.8MB used, 67.1MB total, FTL uses 60.8MB)
[2021-10-24 11:20:32.568 645M] Resizing "FTL-queries" from 60555264 to (1085440 * 56) == 60784640 (/dev/shm: 61.1MB used, 67.1MB total, FTL uses 61.0MB)
[2021-10-24 11:20:32.574 645M] Resizing "FTL-queries" from 60784640 to (1089536 * 56) == 61014016 (/dev/shm: 61.3MB used, 67.1MB total, FTL uses 61.3MB)
[2021-10-24 11:20:32.574 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.581 645M] Resizing "FTL-queries" from 61014016 to (1093632 * 56) == 61243392 (/dev/shm: 61.5MB used, 67.1MB total, FTL uses 61.5MB)
[2021-10-24 11:20:32.581 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.587 645M] Resizing "FTL-queries" from 61243392 to (1097728 * 56) == 61472768 (/dev/shm: 61.7MB used, 67.1MB total, FTL uses 61.7MB)
[2021-10-24 11:20:32.588 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.594 645M] Resizing "FTL-queries" from 61472768 to (1101824 * 56) == 61702144 (/dev/shm: 62.0MB used, 67.1MB total, FTL uses 62.0MB)
[2021-10-24 11:20:32.594 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.600 645M] Resizing "FTL-queries" from 61702144 to (1105920 * 56) == 61931520 (/dev/shm: 62.2MB used, 67.1MB total, FTL uses 62.2MB)
[2021-10-24 11:20:32.600 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.606 645M] Resizing "FTL-queries" from 61931520 to (1110016 * 56) == 62160896 (/dev/shm: 62.4MB used, 67.1MB total, FTL uses 62.4MB)
[2021-10-24 11:20:32.606 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.612 645M] Resizing "FTL-queries" from 62160896 to (1114112 * 56) == 62390272 (/dev/shm: 62.7MB used, 67.1MB total, FTL uses 62.6MB)
[2021-10-24 11:20:32.612 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.618 645M] Resizing "FTL-queries" from 62390272 to (1118208 * 56) == 62619648 (/dev/shm: 62.9MB used, 67.1MB total, FTL uses 62.9MB)
[2021-10-24 11:20:32.618 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.624 645M] Resizing "FTL-queries" from 62619648 to (1122304 * 56) == 62849024 (/dev/shm: 63.1MB used, 67.1MB total, FTL uses 63.1MB)
[2021-10-24 11:20:32.624 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.630 645M] Resizing "FTL-queries" from 62849024 to (1126400 * 56) == 63078400 (/dev/shm: 63.3MB used, 67.1MB total, FTL uses 63.3MB)
[2021-10-24 11:20:32.630 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.636 645M] Resizing "FTL-queries" from 63078400 to (1130496 * 56) == 63307776 (/dev/shm: 63.6MB used, 67.1MB total, FTL uses 63.6MB)
[2021-10-24 11:20:32.636 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.642 645M] Resizing "FTL-queries" from 63307776 to (1134592 * 56) == 63537152 (/dev/shm: 63.8MB used, 67.1MB total, FTL uses 63.8MB)
[2021-10-24 11:20:32.642 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.648 645M] Resizing "FTL-queries" from 63537152 to (1138688 * 56) == 63766528 (/dev/shm: 64.0MB used, 67.1MB total, FTL uses 64.0MB)
[2021-10-24 11:20:32.648 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.655 645M] Resizing "FTL-queries" from 63766528 to (1142784 * 56) == 63995904 (/dev/shm: 64.3MB used, 67.1MB total, FTL uses 64.3MB)
[2021-10-24 11:20:32.655 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.661 645M] Resizing "FTL-queries" from 63995904 to (1146880 * 56) == 64225280 (/dev/shm: 64.5MB used, 67.1MB total, FTL uses 64.5MB)
[2021-10-24 11:20:32.661 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.667 645M] Resizing "FTL-queries" from 64225280 to (1150976 * 56) == 64454656 (/dev/shm: 64.7MB used, 67.1MB total, FTL uses 64.7MB)
[2021-10-24 11:20:32.667 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.673 645M] Resizing "FTL-queries" from 64454656 to (1155072 * 56) == 64684032 (/dev/shm: 65.0MB used, 67.1MB total, FTL uses 64.9MB)
[2021-10-24 11:20:32.673 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.679 645M] Resizing "FTL-queries" from 64684032 to (1159168 * 56) == 64913408 (/dev/shm: 65.2MB used, 67.1MB total, FTL uses 65.2MB)
[2021-10-24 11:20:32.679 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.685 645M] Resizing "FTL-queries" from 64913408 to (1163264 * 56) == 65142784 (/dev/shm: 65.4MB used, 67.1MB total, FTL uses 65.4MB)
[2021-10-24 11:20:32.685 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.692 645M] Resizing "FTL-queries" from 65142784 to (1167360 * 56) == 65372160 (/dev/shm: 65.6MB used, 67.1MB total, FTL uses 65.6MB)
[2021-10-24 11:20:32.692 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.698 645M] Resizing "FTL-queries" from 65372160 to (1171456 * 56) == 65601536 (/dev/shm: 65.9MB used, 67.1MB total, FTL uses 65.9MB)
[2021-10-24 11:20:32.698 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.704 645M] Resizing "FTL-queries" from 65601536 to (1175552 * 56) == 65830912 (/dev/shm: 66.1MB used, 67.1MB total, FTL uses 66.1MB)
[2021-10-24 11:20:32.704 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.710 645M] Resizing "FTL-queries" from 65830912 to (1179648 * 56) == 66060288 (/dev/shm: 66.3MB used, 67.1MB total, FTL uses 66.3MB)
[2021-10-24 11:20:32.710 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.717 645M] Resizing "FTL-queries" from 66060288 to (1183744 * 56) == 66289664 (/dev/shm: 66.6MB used, 67.1MB total, FTL uses 66.5MB)
[2021-10-24 11:20:32.717 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.723 645M] Resizing "FTL-queries" from 66289664 to (1187840 * 56) == 66519040 (/dev/shm: 66.8MB used, 67.1MB total, FTL uses 66.8MB)
[2021-10-24 11:20:32.723 645M] WARNING: More than 90% of /dev/shm is used
[2021-10-24 11:20:32.726 645M] New upstream server: 1.1.1.1:53 (2/32)
[2021-10-24 11:20:32.727 645M] New upstream server: 1.0.0.1:53 (3/32)
[2021-10-24 11:20:32.730 645M] Imported 1187522 queries from the long-term database
[2021-10-24 11:20:32.731 645M]  -> Total DNS queries: 1187522
[2021-10-24 11:20:32.731 645M]  -> Cached DNS queries: 266
[2021-10-24 11:20:32.731 645M]  -> Forwarded DNS queries: 1185914
[2021-10-24 11:20:32.731 645M]  -> Blocked DNS queries: 28
[2021-10-24 11:20:32.731 645M]  -> Unknown DNS queries: 0
[2021-10-24 11:20:32.731 645M]  -> Unique domains: 413
[2021-10-24 11:20:32.731 645M]  -> Unique clients: 29
[2021-10-24 11:20:32.731 645M]  -> Known forward destinations: 4
[2021-10-24 11:20:32.731 645M] Successfully accessed setupVars.conf
[2021-10-24 11:20:32.731 645M] WARNING: Required Linux capability CAP_SYS_NICE not available
[2021-10-24 11:20:32.731 645M] WARNING: Required Linux capability CAP_IPC_LOCK not available
[2021-10-24 11:20:32.731 645M] listening on 0.0.0.0 port 53
[2021-10-24 11:20:32.731 645M] listening on :: port 53
[2021-10-24 11:20:32.812 645M] PID of FTL process: 645
[2021-10-24 11:20:32.813 645M] INFO: FTL is running as root
[2021-10-24 11:20:32.813 645/T646] Listening on port 4711 for incoming IPv4 telnet connections
[2021-10-24 11:20:32.813 645/T648] Listening on Unix socket
[2021-10-24 11:20:32.813 645M] Reloading DNS cache
[2021-10-24 11:20:33.896 645/T649] Compiled 0 whitelist and 0 blacklist regex filters for 29 clients in 0.1 msec
[2021-10-24 11:20:34.213 645M] Blocking status is enabled

ist it possible there's not enough ram suddenly for the container? the Synology has plenty left free

udochrist commented 3 years ago
[2021-10-24 11:27:59.591 1743M] WARN: Could not fallocate() in realloc_shm() (/__w/FTL/FTL/src/shmem.c:789): No space left on device
[2021-10-24 11:27:59.591 1743M] FATAL: realloc_shm(): Failed to resize "FTL-queries" (18) to 66748416: No space left on device (28)
[2021-10-24 11:27:59.752 1759M] Using log file /var/log/pihole-FTL.log
[2021-10-24 11:27:59.752 1759M] ########## FTL started on pihole! ##########
[2021-10-24 11:27:59.752 1759M] FTL branch: master
[2021-10-24 11:27:59.752 1759M] FTL version: v5.11

and this seems to be the issue... hard to catch in the log

the container says:

Filesystem      Size  Used Avail Use% Mounted on
none             80T   76T  4.3T  95% /
tmpfs            68M     0   68M   0% /dev
tmpfs            17G     0   17G   0% /sys/fs/cgroup
shm              68M   68M   91k 100% /dev/shm
/dev/vg1000/lv   80T   76T  4.3T  95% /etc/pihole
tmpfs            17G     0   17G   0% /proc/acpi
tmpfs            17G     0   17G   0% /proc/scsi
tmpfs            17G     0   17G   0% /sys/firmware

so the tempfs mounted /dev/shm is out of space. any ideas on how to enlarge that?

PromoFaux commented 3 years ago

I've no idea if this will have any effect (i'm still quite green when it comes to Docker), but you should be able to increase the size of /dev/shm/ in your container like so: https://stackoverflow.com/a/56655091

e.g:

version: '3.5'
services:
  your_service:     
    shm_size: '2gb' <--- Or whatever value you want

I'll have a poke about on my running image and see what I can see

PromoFaux commented 3 years ago

For me, it seems 64M is enough (currently only using 3.8M)

Filesystem      Size  Used Avail Use% Mounted on
/dev/md2        6.2T  3.7T  2.5T  60% /
tmpfs            64M     0   64M   0% /dev
tmpfs           4.8G     0  4.8G   0% /sys/fs/cgroup
shm              64M  3.8M   61M   6% /dev/shm
/dev/md2        6.2T  3.7T  2.5T  60% /etc/pihole
/dev/md2        6.2T  3.7T  2.5T  60% /etc/hosts
tmpfs           4.8G     0  4.8G   0% /proc/acpi
tmpfs           4.8G     0  4.8G   0% /proc/scsi
tmpfs           4.8G     0  4.8G   0% /sys/firmware

@DL6ER is there anything you can see from the information already available that would cause FTL memory usage to be high in this user's case?

udochrist commented 3 years ago

YES!! that did it. I went to 512MB and it s now working again!

it was 3M too small before :-)

Filesystem      Size  Used Avail Use% Mounted on
none             80T   76T  4.3T  95% /
tmpfs            68M     0   68M   0% /dev
tmpfs            17G     0   17G   0% /sys/fs/cgroup
shm             537M   68M  470M  13% /dev/shm
/dev/vg1000/lv   80T   76T  4.3T  95% /etc/pihole
tmpfs            17G     0   17G   0% /proc/acpi
tmpfs            17G     0   17G   0% /proc/scsi
tmpfs            17G     0   17G   0% /sys/firmware
PromoFaux commented 3 years ago

Now that you're up and running, can we get a debug token please?

udochrist commented 3 years ago

of course.

here you are: https://tricorder.pi-hole.net/VPi9Nh9h/

PromoFaux commented 3 years ago

192.168.1.1 is hitting FTL's default rate limit of 1000 queries in 60 seconds...

I wonder if you have some kind of feedback loop going on, where Pi-hole is querying 192.168.1.1, and in turn that is then sending the query back to pi-hole

If you are using Pi-hole as your dhcp server, do you still need the conditional forwarding set up?

udochrist commented 3 years ago

I‘ll re-check the config.

Pi holes dhcp Server is not enabled in my config. The dhcp Server is 192.168.1.1 (which is using pi.hole to resolve dns). i think I added the forwarding quite some time ago to see the client names in the pi-hole gui

PromoFaux commented 3 years ago

Ah, yes, sorry I missed the DHCP_ACTIVE=false, I was going by the existence of 04-pihole-static-dhcp.conf and some of the other settings in setupVars.conf, in which case that's a perfectly valid reason to have conditional forwarding turned on!

I guess if you have clients that are also querying 192.168.1.1 for DNS, then those queries will be passed onto the Pi-hole.

Anyway, The main issue is resolved - but I would certainly recommend going over your config to look for any misconfigurations !

DL6ER commented 3 years ago

is there anything you can see from the information already available that would cause FTL memory usage to be high in this user's case?

Yes, it is what you have found, too, FTL actually logged a warning that there is trouble ahead:

[2021-10-24 11:20:32.723 645M] Resizing "FTL-queries" from 66289664 to (1187840 * 56) == 66519040 (/dev/shm: 66.8MB used, 67.1MB total, FTL uses 66.8MB)
[2021-10-24 11:20:32.723 645M] WARNING: More than 90% of /dev/shm is used

eventually leading to something like

[2021-10-24 11:27:59.591 1743M] WARN: Could not fallocate() in realloc_shm() (/__w/FTL/FTL/src/shmem.c:789): No space left on device
[2021-10-24 11:27:59.591 1743M] FATAL: realloc_shm(): Failed to resize "FTL-queries" (18) to 66748416: No space left on device (28)

At this point 1,187,840 queries have been imported into memory. Even when Pi-hole is really efficient on memory: over one million queries is not expected to work with only 64MB of RAM, you need more. Mind that the space in /dev/shm is nothing else than RAM materialized into files. It has nothing to do with SD card disk space.