Install Fail on DO 18.04 LTS Droplet

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

Expected Behaviour:

Pihole successfully installs on DO 18.04 LTS droplet

Actual Behaviour:

Install fails with a message that "DNS resolution is not available, trying again in 180 secs"

I've read various different posts regarding how to fix this failure, however having tried multiple times I'm still in the dark as to why it doesn't work.

Has anyone managed to male Pihole work on an 18.04 server on DO and, if so, what is the workaround.

If it helps, this is the output from the install command.

[ ] Root user check

.;;,.

.ccccc:,.

:cccclll:. ..,,

:ccccclll. ;ooodc

'ccll:;ll .oooodc

.;cll.;;looo:.

.. ','.

.',,,,,,'.

.',,,,,,,,,,.

.',,,,,,,,,,,,....

....''',,,,,,,'.......

......... .... .........

.......... ..........

.......... ..........

......... .... .........

........,,,,,,,'......

....',,,,,,,,,,,,.

.',,,,,,,,,'.

.',,,,,,'.

..'''.

[ ] Update local cache of available packages

[ ] Disk space check

[ ] Checking apt-get for upgraded packages... 16 updates available

[i] It is recommended to update your OS after installing the Pi-hole!

[i] Installer Dependency checks...

[i] Checking for dhcpcd5 (will be installed)

[ ] Checking for git

[ ] Checking for iproute2

[ ] Checking for whiptail

[ ] Checking for dnsutils

[i] Processing apt-get install(s) for: dhcpcd5, please wait...


Selecting previously unselected package dhcpcd5.

(Reading database ... 60123 files and directories currently installed.)

Preparing to unpack .../dhcpcd5_6.11.5-0ubuntu1_amd64.deb ...

Unpacking dhcpcd5 (6.11.5-0ubuntu1) ...

Setting up dhcpcd5 (6.11.5-0ubuntu1) ...

Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Processing triggers for ureadahead (0.100.0-21) ...

Processing triggers for systemd (237-3ubuntu10.42) ...


[ ] Supported OS detected

[i] SELinux not detected

[i] Using upstream DNS: OpenDNS (ECS) (208.67.222.222, 208.67.220.220)

[i] Your static IPv4 address: xxx.128.174.xxx

[i] Your static IPv4 gateway: xxx.128.160.xxx

[ ] Set IP address to xxx.128.174.xxx

[i] You may need to restart after the install is complete

[i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled

[i] IPv4 address: xxx.128.174.xxx

[i] IPv6 address:

[i] Web Interface On

[i] Web Server On

[i] Logging On.

[ ] Check for existing repository in /etc/.pihole

[i] Clone GitHub - pi-hole/pi-hole: A black hole for Internet advertisements into /etc/.pihole...HEAD is now at 6b536b7 Merge pull request #3564 from pi-hole/release/v5.1.2

[ ] Clone GitHub - pi-hole/pi-hole: A black hole for Internet advertisements into /etc/.pihole

[ ] Check for existing repository in /var/www/html/admin

[i] Clone GitHub - pi-hole/web: Pi-hole Dashboard for stats and more into /var/www/html/admin...HEAD is now at a03d1bd Merge pull request #1498 from pi-hole/release/v5.1.1

[ ] Clone GitHub - pi-hole/web: Pi-hole Dashboard for stats and more into /var/www/html/admin

[i] Main Dependency checks...

[ ] Checking for cron

[ ] Checking for curl

[ ] Checking for iputils-ping

[ ] Checking for lsof

[i] Checking for netcat (will be installed)

[ ] Checking for psmisc

[ ] Checking for sudo

[i] Checking for unzip (will be installed)

[ ] Checking for wget

[i] Checking for idn2 (will be installed)

[i] Checking for sqlite3 (will be installed)

[ ] Checking for libcap2-bin

[ ] Checking for dns-root-data

[ ] Checking for libcap2

[i] Checking for lighttpd (will be installed)

[i] Checking for php-common (will be installed)

[i] Checking for php-cgi (will be installed)

[i] Checking for php-sqlite3 (will be installed)

[i] Checking for php-xml (will be installed)

[i] Checking for php-intl (will be installed)

[i] Processing apt-get install(s) for: netcat unzip idn2 sqlite3 lighttpd php-common php-cgi php-sqlite3 php-xml php-intl, please wait...


Selecting previously unselected package libgamin0.

(Reading database ... 60147 files and directories currently installed.)

Preparing to unpack .../00-libgamin0_0.1.10-5build1_amd64.deb ...

Unpacking libgamin0 (0.1.10-5build1) ...

Selecting previously unselected package gamin.

Preparing to unpack .../01-gamin_0.1.10-5build1_amd64.deb ...

Unpacking gamin (0.1.10-5build1) ...

Selecting previously unselected package libsodium23:amd64.

Preparing to unpack .../02-libsodium23_1.0.16-2_amd64.deb ...

Unpacking libsodium23:amd64 (1.0.16-2) ...

Selecting previously unselected package lighttpd.

Preparing to unpack .../03-lighttpd_1.4.45-1ubuntu3.18.04_amd64.deb ...

Unpacking lighttpd (1.4.45-1ubuntu3.18.04) ...

Selecting previously unselected package netcat-traditional.

Preparing to unpack .../04-netcat-traditional_1.10-41.1_amd64.deb ...

Unpacking netcat-traditional (1.10-41.1) ...

Selecting previously unselected package netcat.

Preparing to unpack .../05-netcat_1.10-41.1_all.deb ...

Unpacking netcat (1.10-41.1) ...

Selecting previously unselected package php-common.

Preparing to unpack .../06-php-common_1%3a60ubuntu1_all.deb ...

Unpacking php-common (1:60ubuntu1) ...

Selecting previously unselected package php7.2-common.

Preparing to unpack .../07-php7.2-common_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-common (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php7.2-json.

Preparing to unpack .../08-php7.2-json_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-json (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php7.2-opcache.

Preparing to unpack .../09-php7.2-opcache_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-opcache (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php7.2-readline.

Preparing to unpack .../10-php7.2-readline_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-readline (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php7.2-cli.

Preparing to unpack .../11-php7.2-cli_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-cli (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php7.2-cgi.

Preparing to unpack .../12-php7.2-cgi_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-cgi (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php-cgi.

Preparing to unpack .../13-php-cgi_1%3a7.2+60ubuntu1_all.deb ...

Unpacking php-cgi (1:7.2+60ubuntu1) ...

Selecting previously unselected package php7.2-intl.

Preparing to unpack .../14-php7.2-intl_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-intl (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php-intl.

Preparing to unpack .../15-php-intl_1%3a7.2+60ubuntu1_all.deb ...

Unpacking php-intl (1:7.2+60ubuntu1) ...

Selecting previously unselected package php7.2-sqlite3.

Preparing to unpack .../16-php7.2-sqlite3_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-sqlite3 (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php-sqlite3.

Preparing to unpack .../17-php-sqlite3_1%3a7.2+60ubuntu1_all.deb ...

Unpacking php-sqlite3 (1:7.2+60ubuntu1) ...

Selecting previously unselected package php7.2-xml.

Preparing to unpack .../18-php7.2-xml_7.2.24-0ubuntu0.18.04.6_amd64.deb ...

Unpacking php7.2-xml (7.2.24-0ubuntu0.18.04.6) ...

Selecting previously unselected package php-xml.

Preparing to unpack .../19-php-xml_1%3a7.2+60ubuntu1_all.deb ...

Unpacking php-xml (1:7.2+60ubuntu1) ...

Selecting previously unselected package sqlite3.

Preparing to unpack .../20-sqlite3_3.22.0-1ubuntu0.4_amd64.deb ...

Unpacking sqlite3 (3.22.0-1ubuntu0.4) ...

Selecting previously unselected package unzip.

Preparing to unpack .../21-unzip_6.0-21ubuntu1_amd64.deb ...

Unpacking unzip (6.0-21ubuntu1) ...

Selecting previously unselected package idn2.

Preparing to unpack .../22-idn2_2.0.4-1.1ubuntu0.2_amd64.deb ...

Unpacking idn2 (2.0.4-1.1ubuntu0.2) ...

Setting up idn2 (2.0.4-1.1ubuntu0.2) ...

Setting up unzip (6.0-21ubuntu1) ...

Setting up netcat-traditional (1.10-41.1) ...

Setting up sqlite3 (3.22.0-1ubuntu0.4) ...

Setting up libsodium23:amd64 (1.0.16-2) ...

Setting up php-common (1:60ubuntu1) ...

Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.

Setting up netcat (1.10-41.1) ...

Setting up php7.2-common (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/calendar.ini with new version

Creating config file /etc/php/7.2/mods-available/ctype.ini with new version

Creating config file /etc/php/7.2/mods-available/exif.ini with new version

Creating config file /etc/php/7.2/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.2/mods-available/ftp.ini with new version

Creating config file /etc/php/7.2/mods-available/gettext.ini with new version

Creating config file /etc/php/7.2/mods-available/iconv.ini with new version

Creating config file /etc/php/7.2/mods-available/pdo.ini with new version

Creating config file /etc/php/7.2/mods-available/phar.ini with new version

Creating config file /etc/php/7.2/mods-available/posix.ini with new version

Creating config file /etc/php/7.2/mods-available/shmop.ini with new version

Creating config file /etc/php/7.2/mods-available/sockets.ini with new version

Creating config file /etc/php/7.2/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.2/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.2/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.2/mods-available/tokenizer.ini with new version

Setting up php7.2-sqlite3 (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/sqlite3.ini with new version

Creating config file /etc/php/7.2/mods-available/pdo_sqlite.ini with new version

Setting up php7.2-readline (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/readline.ini with new version

Setting up php7.2-json (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/json.ini with new version

Setting up php7.2-intl (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/intl.ini with new version

Setting up php-intl (1:7.2+60ubuntu1) ...

Setting up php-sqlite3 (1:7.2+60ubuntu1) ...

Setting up php7.2-opcache (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/opcache.ini with new version

Setting up php7.2-xml (7.2.24-0ubuntu0.18.04.6) ...

Creating config file /etc/php/7.2/mods-available/dom.ini with new version

Creating config file /etc/php/7.2/mods-available/simplexml.ini with new version

Creating config file /etc/php/7.2/mods-available/wddx.ini with new version

Creating config file /etc/php/7.2/mods-available/xml.ini with new version

Creating config file /etc/php/7.2/mods-available/xmlreader.ini with new version

Creating config file /etc/php/7.2/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/7.2/mods-available/xsl.ini with new version

Setting up php-xml (1:7.2+60ubuntu1) ...

Setting up php7.2-cli (7.2.24-0ubuntu0.18.04.6) ...

update-alternatives: using /usr/bin/php7.2 to provide /usr/bin/php (php) in auto mode

update-alternatives: using /usr/bin/phar7.2 to provide /usr/bin/phar (phar) in auto mode

update-alternatives: using /usr/bin/phar.phar7.2 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.2/cli/php.ini with new version

Setting up php7.2-cgi (7.2.24-0ubuntu0.18.04.6) ...

update-alternatives: using /usr/bin/php-cgi7.2 to provide /usr/bin/php-cgi (php-cgi) in auto mode

update-alternatives: using /usr/lib/cgi-bin/php7.2 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php/7.2/cgi/php.ini with new version

Setting up php-cgi (1:7.2+60ubuntu1) ...

Setting up gamin (0.1.10-5build1) ...

Setting up libgamin0 (0.1.10-5build1) ...

Setting up lighttpd (1.4.45-1ubuntu3.18.04) ...

Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service → /lib/systemd/system/lighttpd.service.

Processing triggers for systemd (237-3ubuntu10.42) ...

Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...

Processing triggers for mime-support (3.60ubuntu1) ...

Processing triggers for ureadahead (0.100.0-21) ...

Processing triggers for libc-bin (2.27-3ubuntu1.2) ...


[ ] Enabling lighttpd service to start on reboot...

[ ] Creating user 'pihole'

[i] FTL Checks...

[ ] Detected x86_64 architecture

[i] Checking for existing FTL binary...

[ ] Downloading and Installing FTL

[ ] Installing scripts from /etc/.pihole

[i] Installing configs from /etc/.pihole...

[ ] No dnsmasq.conf found... restoring default dnsmasq.conf...

[ ] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

[i] Installing blocking page...

[ ] Creating directory for blocking page, and copying files

[ ] Backing up index.lighttpd.html

[ ] Installing sudoer file

[ ] Installing latest Cron script

[ ] Installing latest logrotate script

[i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old

[ ] man pages installed and database updated

[i] Testing if systemd-resolved is enabled

[✓] Disabling systemd-resolved DNSStubListener and restarting systemd-resolved

[✓] Restarting lighttpd service...

[✓] Enabling lighttpd service to start on reboot...

[i] Restarting services...

[✓] Enabling pihole-FTL service to start on reboot...

[✓] Restarting pihole-FTL service...

[i] Creating new gravity database

[i] Migrating content of /etc/pihole/adlists.list into new database

[✓] Deleting existing list cache

[✗] DNS resolution is currently unavailable

[✗] DNS resolution is not available

I attempted to generate a debug token using pihole -d however this process fails. Here is the echo of the debug output.

*** [ INITIALIZING ]
[i] 2020-08-23:15:25:40 debug log has been initialized.

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...

*** [ DIAGNOSING ]: Core version
[i] Core: v5.1.2 (How do I update Pi-hole?)
[i] Remotes: origin GitHub - pi-hole/pi-hole: A black hole for Internet advertisements (fetch)
origin GitHub - pi-hole/pi-hole: A black hole for Internet advertisements (push)
[i] Branch: master
[i] Commit: v5.1.2-0-g6b536b7

*** [ DIAGNOSING ]: Web version
[i] Web: v5.1.1 (How do I update Pi-hole?)
[i] Remotes: origin GitHub - pi-hole/web: Pi-hole Dashboard for stats and more (fetch)
origin GitHub - pi-hole/web: Pi-hole Dashboard for stats and more (push)
[i] Branch: master
[i] Commit: v5.1.1-0-ga03d1bd

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v5.2 (How do I update Pi-hole?)

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.45

*** [ DIAGNOSING ]: php version
[i] 7.2.24

*** [ DIAGNOSING ]: Operating system
[✗] Distro: Ubuntu
[✗] Error: Ubuntu is not a supported distro (https://docs.pi-hole.net/main/prerequisites/)

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: Processor
[i] x86_64

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
178.128.174.213/20 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
10.16.0.5/16 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
178.128.174.213/32 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

[✓] IPv6 address(es) bound to the eth0 interface:
fe80::38b8:66ff:fe39:7092> does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

^ Please note that you may have more than one IP address listed.
As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.

The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.

[i] Default IPv4 gateway: 178.128.160.1

  • Pinging 178.128.160.1...
    [✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
[80] is in use by lighttpd
[80] is in use by lighttpd
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[4711] is in use by pihole-FTL
[4711] is in use by pihole-FTL

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via localhost (127.0.0.1)
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via Pi-hole (178.128.174.213)
[✓] doubleclick.com is 216.58.211.174 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active

[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=178.128.174.213
IPV6_ADDRESS=
PIHOLE_DNS_1=208.67.222.222
PIHOLE_DNS_2=208.67.220.220
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true

*** [ DIAGNOSING ]: Dashboard and block page
[✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity List and Database
-rw-r--r-- 1 root root 98304 Aug 23 15:16 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
property value


version 12
date: invalid date ‘@’
Last gravity run finished at:

----- First 10 Gravity Domains -----

*** [ DIAGNOSING ]: Groups
id enabled name date_added date_modified description


0 1 Default 2020-08-23 15:16:42 2020-08-23 15:16:42 The default group

*** [ DIAGNOSING ]: Domainlist (0/1 = exact white-/blacklist, 2/3 = regex white-/blacklist)

*** [ DIAGNOSING ]: Clients

*** [ DIAGNOSING ]: Adlists
id enabled group_ids address date_added date_modified comment


1 1 0 https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts 2020-08-23 15:16:42 2020-08-23 15:16:42 Migrated from /etc/pihole/adlists.list
2 1 0 https://mirror1.malwaredomains.com/files/justdomains 2020-08-23 15:16:42 2020-08-23 15:16:42 Migrated from /etc/pihole/adlists.list

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r--r-- 1 root root 238 Aug 23 15:16 /etc/pihole/logrotate
/var/log/pihole.log {
su root syslog
daily
copytruncate
rotate 5
compress
delaycompress
notifempty
nomail
}
/var/log/pihole-FTL.log {
su root syslog
weekly
copytruncate
rotate 3
compress
delaycompress
notifempty
nomail
}

-rw-rw-r-- 1 pihole root 15 Aug 23 15:16 /etc/pihole/pihole-FTL.conf
PRIVACYLEVEL=0

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r--r-- 1 root root 1399 Aug 23 15:16 /etc/dnsmasq.d/01-pihole.conf
addn-hosts=/etc/pihole/local.list
addn-hosts=/etc/pihole/custom.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=208.67.222.222
server=208.67.220.220
interface=eth0
server=/use-application-dns.net/

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 0 Aug 23 15:16 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 4066 Aug 23 15:16 /etc/lighttpd/lighttpd.conf
server.modules = (
"mod_access",
"mod_accesslog",
"mod_auth",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "/pihole/index.php"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
accesslog.filename = "/var/log/lighttpd/access.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = (
"application/json",
"application/vnd.ms-fontobject",
"application/xml",
"font/eot",
"font/opentype",
"font/otf",
"font/ttf",
"image/bmp",
"image/svg+xml",
"image/vnd.microsoft.icon",
"image/x-icon",
"text/css",
"text/html",
"text/javascript",
"text/plain",
"text/xml"
)
mimetype.assign = (
".ico" => "image/x-icon",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".png" => "image/png",
".svg" => "image/svg+xml",
".css" => "text/css; charset=utf-8",
".html" => "text/html; charset=utf-8",
".js" => "text/javascript; charset=utf-8",
".json" => "application/json; charset=utf-8",
".map" => "application/json; charset=utf-8",
".txt" => "text/plain; charset=utf-8",
".eot" => "application/vnd.ms-fontobject",
".otf" => "font/otf",
".ttc" => "font/collection",
".ttf" => "font/ttf",
".woff" => "font/woff",
".woff2" => "font/woff2"
)
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include "%p"
' 2>/dev/null"
$HTTP["url"] =~ "^/admin/" {

   setenv.add-response-header = (
       "X-Pi-hole" => "The Pi-hole Web interface is working!",
       "X-Frame-Options" => "DENY"
   )
   $HTTP["url"] =~ "\.(eot|otf|tt[cf]|woff2?)$" {
       
       setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
   }

}
$HTTP["url"] =~ "^/admin/.(.*)" {
url.access-deny = ("")
}
expire.url = ( "" => "access plus 0 seconds" )
include_shell "cat external.conf 2>/dev/null"

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r--r-- 1 root root 1755 Aug 23 15:16 /etc/cron.d/pihole
12 3 * * 7 root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
00 00 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate
*/10 * * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker local
43 16 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote
@reboot root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 874 Aug 23 15:25 /var/log/lighttpd/error.log
2020-08-23 15:16:33: (log.c.217) server started
2020-08-23 15:16:38: (server.c.1828) server stopped by UID = 0 PID = 1
2020-08-23 15:16:39: (log.c.217) server started
2020-08-23 15:25:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 227
2020-08-23 15:25:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 228
2020-08-23 15:25:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 227
2020-08-23 15:25:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 228

*** [ DIAGNOSING ]: contents of /var/log

-rw-r--r-- 1 pihole pihole 7071 Aug 23 15:25 /var/log/pihole-FTL.log
-----head of pihole-FTL.log------
[2020-08-23 15:16:41.882 22707M] Using log file /var/log/pihole-FTL.log
[2020-08-23 15:16:41.882 22707M] ########## FTL started! ##########
[2020-08-23 15:16:41.882 22707M] FTL branch: master
[2020-08-23 15:16:41.882 22707M] FTL version: v5.2
[2020-08-23 15:16:41.882 22707M] FTL commit: dbd4a69
[2020-08-23 15:16:41.882 22707M] FTL date: 2020-08-09 22:09:43 +0100
[2020-08-23 15:16:41.882 22707M] FTL user: pihole
[2020-08-23 15:16:41.882 22707M] Compiled for x86_64 (compiled on CI) using gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
[2020-08-23 15:16:41.882 22707M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2020-08-23 15:16:41.882 22707M] SOCKET_LISTENING: only local
[2020-08-23 15:16:41.882 22707M] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2020-08-23 15:16:41.882 22707M] MAXDBDAYS: max age for stored queries is 365 days
[2020-08-23 15:16:41.882 22707M] RESOLVE_IPV6: Resolve IPv6 addresses
[2020-08-23 15:16:41.882 22707M] RESOLVE_IPV4: Resolve IPv4 addresses
[2020-08-23 15:16:41.882 22707M] DBINTERVAL: saving to DB file every minute
[2020-08-23 15:16:41.882 22707M] DBFILE: Using /etc/pihole/pihole-FTL.db
[2020-08-23 15:16:41.882 22707M] MAXLOGAGE: Importing up to 24.0 hours of log data
[2020-08-23 15:16:41.882 22707M] PRIVACYLEVEL: Set to 0
[2020-08-23 15:16:41.882 22707M] IGNORE_LOCALHOST: Show queries from localhost
[2020-08-23 15:16:41.882 22707M] BLOCKINGMODE: Null IPs for blocked domains
[2020-08-23 15:16:41.882 22707M] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2020-08-23 15:16:41.882 22707M] DBIMPORT: Importing history from database
[2020-08-23 15:16:41.882 22707M] PIDFILE: Using /run/pihole-FTL.pid
[2020-08-23 15:16:41.882 22707M] PORTFILE: Using /run/pihole-FTL.port
[2020-08-23 15:16:41.882 22707M] SOCKETFILE: Using /run/pihole/FTL.sock
[2020-08-23 15:16:41.882 22707M] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2020-08-23 15:16:41.882 22707M] MACVENDORDB: Using /etc/pihole/macvendor.db
[2020-08-23 15:16:41.882 22707M] GRAVITYDB: Using /etc/pihole/gravity.db
[2020-08-23 15:16:41.882 22707M] PARSE_ARP_CACHE: Active
[2020-08-23 15:16:41.883 22707M] CNAME_DEEP_INSPECT: Active
[2020-08-23 15:16:41.883 22707M] DELAY_STARTUP: No delay requested.
[2020-08-23 15:16:41.883 22707M] NICE: Set process niceness to -10 (default)
[2020-08-23 15:16:41.883 22707M] BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2020-08-23 15:16:41.883 22707M] NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2020-08-23 15:16:41.883 22707M] Finished config file parsing

-----tail of pihole-FTL.log------
[2020-08-23 15:16:42.125 22707M] -> Cached DNS queries: 0
[2020-08-23 15:16:42.125 22707M] -> Forwarded DNS queries: 0
[2020-08-23 15:16:42.125 22707M] -> Blocked DNS queries: 0
[2020-08-23 15:16:42.125 22707M] -> Unknown DNS queries: 0
[2020-08-23 15:16:42.125 22707M] -> Unique domains: 0
[2020-08-23 15:16:42.125 22707M] -> Unique clients: 0
[2020-08-23 15:16:42.125 22707M] -> Known forward destinations: 0
[2020-08-23 15:16:42.125 22707M] Successfully accessed setupVars.conf
[2020-08-23 15:16:42.144 22710M] PID of FTL process: 22710
[2020-08-23 15:16:42.145 22710M] Reloading DNS cache
[2020-08-23 15:16:42.145 22710M] Blocking status is enabled
[2020-08-23 15:16:42.150 22710/T22714] Listening on Unix socket
[2020-08-23 15:16:42.150 22710/T22713] Listening on port 4711 for incoming IPv6 telnet connections
[2020-08-23 15:16:42.150 22710/T22712] Listening on port 4711 for incoming IPv4 telnet connections
[2020-08-23 15:16:42.181 22710M] SQLite3 message: no such table: domain_audit in "SELECT EXISTS(SELECT domain, CASE WHEN substr(domain, 1, 1) = '' THEN '' || substr(:input, - length(domain) + 1) ELSE :input END matcher FROM domain_audit WHERE matcher = doma (1)
[2020-08-23 15:16:42.182 22710M] gravityDB_open("SELECT EXISTS(... domain_audit ...)") - SQL error prepare: SQL logic error
[2020-08-23 15:16:42.182 22710M] SQLite3 message: no such table: domain_audit in "SELECT EXISTS(SELECT domain, CASE WHEN substr(domain, 1, 1) = '' THEN '' || substr(:input, - length(domain) + 1) ELSE :input END matcher FROM domain_audit WHERE matcher = doma (1)
[2020-08-23 15:16:42.182 22710M] gravityDB_open("SELECT EXISTS(... domain_audit ...)") - SQL error prepare: SQL logic error
[2020-08-23 15:16:42.182 22710M] gravityDB_count(0): Gravity database not available
[2020-08-23 15:16:42.182 22710M] SQLite3 message: no such table: domain_audit in "SELECT EXISTS(SELECT domain, CASE WHEN substr(domain, 1, 1) = '' THEN '' || substr(:input, - length(domain) + 1) ELSE :input END matcher FROM domain_audit WHERE matcher = doma (1)
[2020-08-23 15:16:42.182 22710M] gravityDB_open("SELECT EXISTS(... domain_audit ...)") - SQL error prepare: SQL logic error
[2020-08-23 15:16:42.182 22710M] gravityDB_count(3): Gravity database not available
[2020-08-23 15:16:42.182 22710M] WARN: Database query failed, assuming there are no blacklist regex entries
[2020-08-23 15:16:42.182 22710M] SQLite3 message: no such table: domain_audit in "SELECT EXISTS(SELECT domain, CASE WHEN substr(domain, 1, 1) = '' THEN '' || substr(:input, - length(domain) + 1) ELSE :input END matcher FROM domain_audit WHERE matcher = doma (1)
[2020-08-23 15:16:42.182 22710M] gravityDB_open("SELECT EXISTS(... domain_audit ...)") - SQL error prepare: SQL logic error
[2020-08-23 15:16:42.182 22710M] gravityDB_count(4): Gravity database not available
[2020-08-23 15:16:42.182 22710M] WARN: Database query failed, assuming there are no whitelist regex entries
[2020-08-23 15:16:42.182 22710M] Compiled 0 whitelist and 0 blacklist regex filters for 0 clients in 0.5 msec
[2020-08-23 15:25:56.183 22710M] Reloading DNS cache
[2020-08-23 15:25:56.183 22710M] Blocking status is enabled
[2020-08-23 15:25:56.194 22710M] gravityDB_count(SELECT value FROM info WHERE property = 'gravity_count':wink: - SQL error step no more rows available
[2020-08-23 15:25:56.195 22710M] Count of gravity domains not available. Please run pihole -g
[2020-08-23 15:25:56.195 22710M] INFO: No regex blacklist entries found
[2020-08-23 15:25:56.195 22710M] INFO: No regex whitelist entries found
[2020-08-23 15:25:56.195 22710M] Compiled 0 whitelist and 0 blacklist regex filters for 0 clients in 0.8 msec

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 331776 Aug 23 15:16 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 144 Aug 23 15:16 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4096 Aug 23 15:16 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 98304 Aug 23 15:16 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 48 Aug 23 15:16 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 45056 Aug 23 15:16 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4096 Aug 23 15:16 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 262144 Aug 23 15:16 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Aug 23 15:16 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 Aug 23 15:16 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 4096 Aug 23 15:16 /dev/shm/FTL-upstreams

*** [ DIAGNOSING ]: Locale
LANG=C.UTF-8

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 1333 Aug 23 15:25 /var/log/pihole.log
-----head of pihole.log------
Aug 23 15:16:42 dnsmasq[22710]: started, version pi-hole-2.81 cachesize 10000
Aug 23 15:16:42 dnsmasq[22710]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Aug 23 15:16:42 dnsmasq[22710]: LOUD WARNING: listening on 178.128.174.213 may accept requests via interfaces other than eth0
Aug 23 15:16:42 dnsmasq[22710]: LOUD WARNING: use --bind-dynamic rather than --bind-interfaces to avoid DNS amplification attacks via these interface(s)
Aug 23 15:16:42 dnsmasq[22710]: using only locally-known addresses for domain use-application-dns.net
Aug 23 15:16:42 dnsmasq[22710]: using nameserver 208.67.220.220#53
Aug 23 15:16:42 dnsmasq[22710]: using nameserver 208.67.222.222#53
Aug 23 15:16:42 dnsmasq[22710]: read /etc/hosts - 8 addresses
Aug 23 15:16:42 dnsmasq[22710]: failed to load names from /etc/pihole/custom.list: No such file or directory
Aug 23 15:16:42 dnsmasq[22710]: failed to load names from /etc/pihole/local.list: No such file or directory
Aug 23 15:25:56 dnsmasq[22710]: read /etc/hosts - 8 addresses
Aug 23 15:25:56 dnsmasq[22710]: failed to load names from /etc/pihole/custom.list: No such file or directory
Aug 23 15:25:56 dnsmasq[22710]: failed to load names from /etc/pihole/local.list: No such file or directory



[✓] ** FINISHED DEBUGGING! **

* The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
* For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
* If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.

[?] Would you like to upload the log? [y/N] y
* Using curl for transmission.
* curl failed, falling back to netcat for transmission.
nc: getaddrinfo for host "tricorder.pi-hole.net" port 9999: Temporary failure in name resolution
[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.
  • A local copy of the debug log can be found at: /var/log/pihole_debug.log

Debug Token:

[Replace this text with the debug token provided from running pihole -d (or running the debug script through the web interface]

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