Please follow the below template, it will help us to help you!
Expected Behaviour:
Install Pi-hole and have it working.
Actual Behaviour:
I begin with a fresh, clean, updated VM running Ubuntu 18.04.3 Server (headless), on an ESXi host. I have tried installing via the automated install, method 1, and method 2, to no avail. Each time I run the install script, it gets to Restarting pihole-FTL service... > Deleting existing list cache > Pi-hole blocking is enabled > DNS resolution is currently not available > 120 second delay > DNS resolution is not available
Here is the output of pihole -r:
pihole -r
[✓] Root user check
.;;,.
.ccccc:,.
:cccclll:. ..,,
:ccccclll. ;ooodc
'ccll:;ll .oooodc
.;cll.;;looo:.
.. ','.
.',,,,,,'.
.',,,,,,,,,,.
.',,,,,,,,,,,,....
....''',,,,,,,'.......
......... .... .........
.......... ..........
.......... ..........
......... .... .........
........,,,,,,,'......
....',,,,,,,,,,,,.
.',,,,,,,,,'.
.',,,,,,'.
..'''.
[i] Existing PHP installation detected : PHP version 7.2.24-0ubuntu0.18.04.1
[i] Reconfigure option selected
[✓] Disk space check
[✓] Update local cache of available packages
[✓] Checking apt-get for upgraded packages... up to date!
[i] Installer Dependency checks...
[✓] Checking for apt-utils
[✓] Checking for dialog
[✓] Checking for debconf
[✓] Checking for dhcpcd5
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[i] Using Cloudflare
[i] Static IP already configured
[i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
[i] IPv4 address: 10.0.1.250/24
[i] IPv6 address:
[i] Web Interface On
[i] Web Server On
[i] Logging On.
[i] Privacy level 0 [i] Performing reconfiguration, skipping download of local repos
[✓] Resetting repository within /etc/.pihole...
[✓] Resetting repository within /var/www/html/admin...
[i] Main Dependency checks...
[✓] Checking for cron
[✓] Checking for curl
[✓] Checking for dnsutils
[✓] Checking for iputils-ping
[✓] Checking for lsof
[✓] Checking for netcat
[✓] Checking for psmisc
[✓] Checking for sudo
[✓] Checking for unzip
[✓] Checking for wget
[✓] Checking for idn2
[✓] Checking for sqlite3
[✓] Checking for libcap2-bin
[✓] Checking for dns-root-data
[✓] Checking for resolvconf
[✓] Checking for libcap2
[✓] Checking for lighttpd
[✓] Checking for php7.2-common
[✓] Checking for php7.2-cgi
[✓] Checking for php7.2-sqlite3
[✓] Enabling lighttpd service to start on reboot...
[i] FTL Checks...
[✓] Detected x86_64 architecture
[i] Checking for existing FTL binary...
[✗] Failed to retrieve latest FTL release metadata [i] Checking for user 'pih [✓] Checking for user 'pihole'
[✓] Installing scripts from /etc/.pihole
[i] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[✓] 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
No default index.lighttpd.html file found... not backing up
[✓] Installing sudoer file
[✓] Installing latest Cron script
[✓] Installing latest logrotate script
[i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old
[i] Skipping firewall configuration
[✓] man pages installed and database updated
[i] Testing if systemd-resolved is enabled
[i] Systemd-resolved does not need to be restarted
[✓] 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...
[✓] Deleting existing list cache
[i] Pi-hole blocking is enabled
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is not available
Debug Token:
Would not generate a token due to inability to connect to Internet.
Debug Log:
This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.
The intent of this script is to allow users to self-diagnose their installations. This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected. Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.
NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.
*** [ INITIALIZING ]
[i] 2019-11-29:16:17:54 debug log has been initialized.
*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...
*** [ DIAGNOSING ]: Core version
[i] Core: v4.3.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3.2-0-ge41c4b5
*** [ DIAGNOSING ]: Web version
[i] Web: v4.3.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3.2-0-g38d8e77
*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.3.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.45
*** [ DIAGNOSING ]: php version
[i] 7.2.24
*** [ DIAGNOSING ]: Operating system
[✓] Ubuntu 18.04.3 LTS
*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected
*** [ DIAGNOSING ]: Processor
[i] x86_64
*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the ens160 interface:
10.0.1.250/24 matches the IP found in /etc/pihole/setupVars.conf
[✓] IPv6 address(es) bound to the ens160 interface:
fe80::20c:29ff:fef0:caa6 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: 10.0.1.1
* Pinging 10.0.1.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
[10.0.1.250:53] is in use by pihole-FTL
[127.0.0.1:53] is in use by pihole-FTL
[[fe80::20c:29ff:fef0:caa6]:53] is in use by pihole-FTL
[[::1]:53] is in use by pihole-FTL
[127.0.0.1:4711] is in use by pihole-FTL
[[::1]:4711] is in use by pihole-FTL
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve via localhost (127.0.0.1)
[✗] Failed to resolve via Pi-hole (10.0.1.250)
[✗] Failed to resolve doubleclick.com 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=ens160
IPV4_ADDRESS=10.0.1.250/24
IPV6_ADDRESS=
PIHOLE_DNS_1=1.1.1.1
PIHOLE_DNS_2=1.0.0.1
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
BLOCKING_ENABLED=true
*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Date: Fri, 29 Nov 2019 16:20:06 GMT
Server: lighttpd/1.4.45
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
*** [ DIAGNOSING ]: Gravity list
-----head of gravity.list------
-----tail of gravity.list------
*** [ DIAGNOSING ]: contents of /etc/pihole
-rw-r--r-- 1 root root 238 Nov 29 15:54 /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
}
*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
-rw-r--r-- 1 root root 1389 Nov 29 15:54 /etc/dnsmasq.d/01-pihole.conf
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=1.1.1.1
server=1.0.0.1
interface=ens160
*** [ DIAGNOSING ]: contents of /etc/lighttpd
-rw-r--r-- 1 root root 3499 Nov 29 15:54 /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 = "/var/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/javascript", "text/css", "text/html", "text/plain" )
mimetype.assign = ( ".png" => "image/png",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".html" => "text/html",
".css" => "text/css; charset=utf-8",
".js" => "application/javascript",
".json" => "application/json",
".txt" => "text/plain",
".svg" => "image/svg+xml" )
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"] =~ ".ttf$" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
}
$HTTP["url"] =~ "^/admin/\.(.*)" {
url.access-deny = ("")
}
include_shell "cat external.conf 2>/dev/null"
*** [ DIAGNOSING ]: contents of /etc/cron.d
-rw-r--r-- 1 root root 1704 Nov 29 15:54 /etc/cron.d/pihole
18 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate
*/10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
26 14 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
*** [ DIAGNOSING ]: contents of /var/log/lighttpd
-rw-r--r-- 1 www-data www-data 170 Nov 29 15:54 /var/log/lighttpd/error.log
2019-11-29 15:54:27: (log.c.217) server started
2019-11-29 15:54:33: (server.c.1828) server stopped by UID = 0 PID = 1
2019-11-29 15:54:33: (log.c.217) server started
*** [ DIAGNOSING ]: contents of /var/log
-rw-r--r-- 1 pihole pihole 4634 Nov 29 16:11 /var/log/pihole-FTL.log
-----head of pihole-FTL.log------
[2019-11-29 15:54:35.372 10448] Using log file /var/log/pihole-FTL.log
[2019-11-29 15:54:35.372 10448] ########## FTL started! ##########
[2019-11-29 15:54:35.372 10448] FTL branch: master
[2019-11-29 15:54:35.372 10448] FTL version: v4.3.1
[2019-11-29 15:54:35.372 10448] FTL commit: b60d63f
[2019-11-29 15:54:35.372 10448] FTL date: 2019-05-25 21:37:26 +0200
[2019-11-29 15:54:35.372 10448] FTL user: pihole
[2019-11-29 15:54:35.372 10448] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2019-11-29 15:54:35.372 10448] SOCKET_LISTENING: only local
[2019-11-29 15:54:35.372 10448] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2019-11-29 15:54:35.372 10448] MAXDBDAYS: max age for stored queries is 365 days
[2019-11-29 15:54:35.372 10448] RESOLVE_IPV6: Resolve IPv6 addresses
[2019-11-29 15:54:35.372 10448] RESOLVE_IPV4: Resolve IPv4 addresses
[2019-11-29 15:54:35.372 10448] DBINTERVAL: saving to DB file every minute
[2019-11-29 15:54:35.372 10448] DBFILE: Using /etc/pihole/pihole-FTL.db
[2019-11-29 15:54:35.372 10448] MAXLOGAGE: Importing up to 24.0 hours of log data
[2019-11-29 15:54:35.372 10448] PRIVACYLEVEL: Set to 0
[2019-11-29 15:54:35.372 10448] IGNORE_LOCALHOST: Show queries from localhost
[2019-11-29 15:54:35.372 10448] BLOCKINGMODE: Null IPs for blocked domains
[2019-11-29 15:54:35.373 10448] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2019-11-29 15:54:35.373 10448] DBIMPORT: Importing history from database
[2019-11-29 15:54:35.373 10448] PIDFILE: Using /var/run/pihole-FTL.pid
[2019-11-29 15:54:35.373 10448] PORTFILE: Using /var/run/pihole-FTL.port
[2019-11-29 15:54:35.373 10448] SOCKETFILE: Using /var/run/pihole/FTL.sock
[2019-11-29 15:54:35.373 10448] WHITELISTFILE: Using /etc/pihole/whitelist.txt
[2019-11-29 15:54:35.373 10448] BLACKLISTFILE: Using /etc/pihole/black.list
[2019-11-29 15:54:35.373 10448] GRAVITYFILE: Using /etc/pihole/gravity.list
[2019-11-29 15:54:35.373 10448] REGEXLISTFILE: Using /etc/pihole/regex.list
[2019-11-29 15:54:35.373 10448] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2019-11-29 15:54:35.373 10448] AUDITLISTFILE: Using /etc/pihole/auditlog.list
[2019-11-29 15:54:35.373 10448] MACVENDORDB: Using /etc/pihole/macvendor.db
[2019-11-29 15:54:35.373 10448] PARSE_ARP_CACHE: Active
[2019-11-29 15:54:35.373 10448] Finished config file parsing
[2019-11-29 15:54:35.373 10448] SQLite3 message: cannot open file at line 38452 of [0eca3dd3d3] (14)
[2019-11-29 15:54:35.373 10448] SQLite3 message: os_unix.c:38452: (2) open(/etc/pihole/pihole-FTL.db) - (14)
-----tail of pihole-FTL.log------
[2019-11-29 15:54:35.373 10448] AUDITLISTFILE: Using /etc/pihole/auditlog.list
[2019-11-29 15:54:35.373 10448] MACVENDORDB: Using /etc/pihole/macvendor.db
[2019-11-29 15:54:35.373 10448] PARSE_ARP_CACHE: Active
[2019-11-29 15:54:35.373 10448] Finished config file parsing
[2019-11-29 15:54:35.373 10448] SQLite3 message: cannot open file at line 38452 of [0eca3dd3d3] (14)
[2019-11-29 15:54:35.373 10448] SQLite3 message: os_unix.c:38452: (2) open(/etc/pihole/pihole-FTL.db) - (14)
[2019-11-29 15:54:35.373 10448] db_init() - Cannot open database (14): unable to open database file
[2019-11-29 15:54:35.373 10448] check_database(14): Disabling database connection due to error
[2019-11-29 15:54:35.373 10448] Creating new (empty) database
[2019-11-29 15:54:35.669 10448] Database version is 3
[2019-11-29 15:54:35.669 10448] Database successfully initialized
[2019-11-29 15:54:35.669 10448] Imported 0 queries from the long-term database
[2019-11-29 15:54:35.669 10448] -> Total DNS queries: 0
[2019-11-29 15:54:35.669 10448] -> Cached DNS queries: 0
[2019-11-29 15:54:35.669 10448] -> Forwarded DNS queries: 0
[2019-11-29 15:54:35.670 10448] -> Exactly blocked DNS queries: 0
[2019-11-29 15:54:35.670 10448] -> Unknown DNS queries: 0
[2019-11-29 15:54:35.670 10448] -> Unique domains: 0
[2019-11-29 15:54:35.670 10448] -> Unique clients: 0
[2019-11-29 15:54:35.670 10448] -> Known forward destinations: 0
[2019-11-29 15:54:35.670 10448] Successfully accessed setupVars.conf
[2019-11-29 15:54:35.682 10450] PID of FTL process: 10450
[2019-11-29 15:54:35.683 10450] Listening on port 4711 for incoming IPv4 telnet connections
[2019-11-29 15:54:35.683 10450] Listening on port 4711 for incoming IPv6 telnet connections
[2019-11-29 15:54:35.683 10450] Listening on Unix socket
[2019-11-29 15:54:35.683 10450] Received SIGHUP, reloading cache
[2019-11-29 15:54:35.683 10450] Blocking status is enabled
[2019-11-29 15:54:35.683 10450] INFO: No whitelist file found
[2019-11-29 15:54:35.683 10450] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
[2019-11-29 15:54:35.711 10450] New forward server: 1.0.0.1 (0/512)
[2019-11-29 15:55:05.281 10450] New forward server: 1.1.1.1 (1/512)
[2019-11-29 16:11:40.904 10450] Received SIGHUP, reloading cache
[2019-11-29 16:11:40.904 10450] Blocking status is enabled
[2019-11-29 16:11:40.904 10450] INFO: No whitelist file found
[2019-11-29 16:11:40.904 10450] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 331776 Nov 29 15:54 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 108 Nov 29 15:54 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 98304 Nov 29 15:54 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 20480 Nov 29 15:54 /dev/shm/FTL-forwarded
-rw------- 1 pihole pihole 48 Nov 29 15:54 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 12288 Nov 29 15:54 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 229376 Nov 29 15:59 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Nov 29 15:54 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 Nov 29 15:54 /dev/shm/FTL-strings
*** [ DIAGNOSING ]: Locale
LANG=en_US.UTF-8
*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 70026 Nov 29 16:20 /var/log/pihole.log
-----head of pihole.log------
Nov 29 15:54:35 dnsmasq[10450]: started, version pi-hole-2.80 cachesize 10000
Nov 29 15:54:35 dnsmasq[10450]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Nov 29 15:54:35 dnsmasq[10450]: using nameserver 1.0.0.1#53
Nov 29 15:54:35 dnsmasq[10450]: using nameserver 1.1.1.1#53
Nov 29 15:54:35 dnsmasq[10450]: read /etc/hosts - 7 addresses
Nov 29 15:54:35 dnsmasq[10450]: failed to load names from /etc/pihole/local.list: No such file or directory
Nov 29 15:54:35 dnsmasq[10450]: failed to load names from /etc/pihole/black.list: No such file or directory
Nov 29 15:54:35 dnsmasq[10450]: failed to load names from /etc/pihole/gravity.list: No such file or directory
Nov 29 15:54:35 dnsmasq[10450]: query[AAAA] raw.githubusercontent.com from 127.0.0.1
Nov 29 15:54:35 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.0.0.1
Nov 29 15:54:35 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.1.1.1
Nov 29 15:54:36 dnsmasq[10450]: query[A] raw.githubusercontent.com from 127.0.0.1
Nov 29 15:54:36 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.0.0.1
Nov 29 15:54:36 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.1.1.1
Nov 29 15:54:37 dnsmasq[10450]: query[AAAA] raw.githubusercontent.com from 127.0.0.1
Nov 29 15:54:37 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.0.0.1
Nov 29 15:54:37 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.1.1.1
Nov 29 15:54:39 dnsmasq[10450]: query[AAAA] raw.githubusercontent.com from 127.0.0.1
Nov 29 15:54:39 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.0.0.1
Nov 29 15:54:39 dnsmasq[10450]: forwarded raw.githubusercontent.com to 1.1.1.1
********************************************
********************************************
[✓] ** 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.
[i] Debug script running in automated mode
* Using curl for transmission.
[✗] 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