Devices lose internet connection when setting up Pi-hole with DHCP enabled

#1

Expected Behaviour:

Pi-hole acts as DHCP server and starts assigning IP’s to devices which provides a working internet connection while my previous routers’ DHCP service is disabled.

Actual Behaviour:

This works but anywhere from 5-15 minutes after I start the DHCP service on the Pi I lose connection to the internet on all of the devices on my LAN that are using the Pi as the DHCP server. Also, the status section of the WebUI says “DNS service: not running FTL: offline” and when I run pihole -r to repair, it gets fixed but again breaks when i go to re-enable the DHCP on the pi.

**I feel the need to say that when I do have the pi handling DHCP, my router is not, and vice versa.

Edit:

Not sure if it helps but my router is an NVG589 which doesn’t support changing the DNS put does allow a “passthrough” workaround of some sorts.

(if anyone has a router that works really well with their Pi-hole please let me know what kind because I’m looking into upgrading mine and am open to suggestions.)

Debug Token:

Here’s the token for the Dev’s:

https://tricorder.pi-hole.net/28mvccg89h

And the Debug output for anyone else:
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-06-12:05:20:35 debug log has been initialized.

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

*** [ DIAGNOSING ]: Core version
[i] Core: v4.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3-0-g1d43c0a

*** [ DIAGNOSING ]: Web version
[i] Web: v4.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3-0-g44aff727

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.3.1

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

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

*** [ DIAGNOSING ]: Operating system
[✓] Raspbian GNU/Linux 9 (stretch)

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

*** [ DIAGNOSING ]: Processor
[✓] armv7l

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
   192.168.1.175/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the eth0 interface:
   fe80::c893:ab9f:75cc:a6bd 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: 192.168.1.254
   * Pinging 192.168.1.254...
[✓] Gateway responded.
[i] Default IPv6 gateway: fe80::8661:a0ff:fecf:b9f0
   * Pinging fe80::8661:a0ff:fecf:b9f0...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)


*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:5938 teamviewer (IPv6)
*:5938 teamviewer (IPv4)
127.0.0.1:5940 teamviewer (IPv4)
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve ad.clovenetwork.com via localhost (127.0.0.1)
[✗] Failed to resolve ad.clovenetwork.com via Pi-hole (192.168.1.175)
[✓] doubleclick.com is 172.217.9.78 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve webhostforseo.com via localhost (::1)
[✗] Failed to resolve webhostforseo.com via Pi-hole (2600:1702:28c0:b2c0:b558:416d:a36c:92c8)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)

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

*** [ DIAGNOSING ]: Setup variables
    TEMPERATUREUNIT=F
    ADMIN_EMAIL=nbiliti@gmail.com
    WEBUIBOXEDLAYOUT=boxed
    HOSTRECORD=
    BLOCKING_ENABLED=true
    DNSMASQ_LISTENING=single
    PIHOLE_DNS_3=2001:4860:4860:0:0:0:0:8888
    PIHOLE_DNS_4=2001:4860:4860:0:0:0:0:8844
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSSEC=false
    CONDITIONAL_FORWARDING=true
    CONDITIONAL_FORWARDING_IP=192.168.1.254
    CONDITIONAL_FORWARDING_DOMAIN=attlocal.net
    CONDITIONAL_FORWARDING_REVERSE=1.168.192.in-addr.arpa
    PIHOLE_INTERFACE=eth0
    IPV4_ADDRESS=192.168.1.175/24
    IPV6_ADDRESS=2600:1702:28c0:b2c0:b558:416d:a36c:92c8
    PIHOLE_DNS_1=8.8.8.8
    PIHOLE_DNS_2=8.8.4.4
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    DHCP_START=192.168.1.1
    DHCP_END=192.168.1.253
    DHCP_ROUTER=192.168.1.254
    DHCP_LEASETIME=.25
    PIHOLE_DOMAIN=Pi-Hole
    DHCP_IPv6=false
    DHCP_rapid_commit=true
    DHCP_ACTIVE=false

*** [ 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
-rw-r--r-- 1 root root 2655483 Jun 12 04:32 /etc/pihole/gravity.list
   -----head of gravity.list------
   0.0.0.0
   0.nextyourcontent.com
   0.r.msn.com
   0.start.bz

   -----tail of gravity.list------
   zzz.clickbank.net
   zzzezeroe.fr
   zzzpooeaz-france.com
   zzzrtrcm2.com

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

-rw-r--r-- 1 root root 381 Jun 12 04:26 /etc/pihole/adlists.list
   https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
   https://mirror1.malwaredomains.com/files/justdomains
   http://sysctl.org/cameleon/hosts
   https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
   https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
   https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
   https://hosts-file.net/ad_servers.txt

-rw-r--r-- 1 root root 0 Jun 12 03:00 /etc/pihole/blacklist.txt

-rw-r--r-- 1 root root 140 Jun 12 04:32 /etc/pihole/local.list
   192.168.1.175 Pi-hole
   2600:1702:28c0:b2c0:b558:416d:a36c:92c8 Pi-hole
   192.168.1.175 pi.hole
   2600:1702:28c0:b2c0:b558:416d:a36c:92c8 pi.hole

-rw-r--r-- 1 root root 234 Jun 12 04:32 /etc/pihole/logrotate
   /var/log/pihole.log {
   	su root root
   	daily
   	copytruncate
   	rotate 5
   	compress
   	delaycompress
   	notifempty
   	nomail
   }
   /var/log/pihole-FTL.log {
   	su root root
   	weekly
   	copytruncate
   	rotate 3
   	compress
   	delaycompress
   	notifempty
   	nomail
   }

-rw-r--r-- 1 root root 747 May 13 21:18 /etc/pihole/whitelist.txt
   raw.githubusercontent.com
   us1-zcash.flypool.org
   eth-us-east1.nanopool.org
   eth-us-west1.nanopool.org
   eth-eu1.nanopool.org
   eth-eu2.nanopool.org
   eth-asia1.nanopool.org
   zcash.flypool.org
   api-zcash.flypool.org
   spclient.wg.spotify.com
   api.ledgerwallet.com
   rover.ebay.com
   graph.accountkit.com
   t.appsflyer.com
   beta.spotify.map.fastly.net
   continuum.dds.microsoft.com
   etc.2miners.com
   2miners.com
   etc.ethermine.org
   us1-etc.ethermine.org
   m.stripe.network
   api-etc.ethermine.org
   medium.freecodecamp.org
   us1.ethpool.org
   us1.ethermine.org
   biosagentplus.com
   btgpool.pro
   pool.gold
   europe.equihash-hub.miningpoolhub.com
   slushpool.com
   www.multiminerapp.com
   mint.bitminter.com
   bitminer.io
   bitminter.com
   ethermine.org
   api.ethermine.org
   eth.nanopool.org
   eth.2miners.com

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

-rw-r--r-- 1 root root 1690 Jun 12 04:53 /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=8.8.8.8
   server=8.8.4.4
   server=2001:4860:4860:0:0:0:0:8888
   server=2001:4860:4860:0:0:0:0:8844
   domain-needed
   bogus-priv
   interface=eth0
   server=/attlocal.net/192.168.1.254
   server=/1.168.192.in-addr.arpa/192.168.1.254

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

-rw-r--r-- 1 root root 3102 Jun 12 04:32 /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" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "/usr/share/lighttpd/create-mime.assign.pl"
   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 Jun 12 04:32 /etc/cron.d/pihole
   39 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
   34 17  * * *   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 14478 Jun 12 05:20 /var/log/lighttpd/error.log
   2019-06-09 06:25:02: (server.c.1534) logfiles cycled UID = 0 PID = 7584 
   2019-06-11 15:48:40: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Uninitialized string offset: 0 in /var/www/html/admin/scripts/pi-hole/php/queryads.php on line 26
   2019-06-11 15:48:40: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/pihole/index.php on line 10
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/pihole/index.php on line 10
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Uninitialized string offset: 0 in /var/www/html/admin/scripts/pi-hole/php/queryads.php on line 26
   2019-06-11 15:49:21: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:21: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138

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

-rw-r--r-- 1 pihole pihole 45856 Jun 12 04:46 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2019-06-12 01:56:56.687 1135] Using log file /var/log/pihole-FTL.log
   [2019-06-12 01:56:56.687 1135] ########## FTL started! ##########
   [2019-06-12 01:56:56.688 1135] FTL branch: master
   [2019-06-12 01:56:56.688 1135] FTL version: v4.3.1
   [2019-06-12 01:56:56.688 1135] FTL commit: b60d63f
   [2019-06-12 01:56:56.688 1135] FTL date: 2019-05-25 21:37:26 +0200
   [2019-06-12 01:56:56.688 1135] FTL user: pihole
   [2019-06-12 01:56:56.688 1135] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2019-06-12 01:56:56.688 1135]    SOCKET_LISTENING: only local
   [2019-06-12 01:56:56.688 1135]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2019-06-12 01:56:56.688 1135]    MAXDBDAYS: max age for stored queries is 365 days
   [2019-06-12 01:56:56.688 1135]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2019-06-12 01:56:56.688 1135]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2019-06-12 01:56:56.688 1135]    DBINTERVAL: saving to DB file every minute
   [2019-06-12 01:56:56.688 1135]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2019-06-12 01:56:56.688 1135]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2019-06-12 01:56:56.688 1135]    PRIVACYLEVEL: Set to 0
   [2019-06-12 01:56:56.688 1135]    IGNORE_LOCALHOST: Show queries from localhost
   [2019-06-12 01:56:56.688 1135]    BLOCKINGMODE: Null IPs for blocked domains
   [2019-06-12 01:56:56.688 1135]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2019-06-12 01:56:56.688 1135]    DBIMPORT: Importing history from database
   [2019-06-12 01:56:56.689 1135]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-06-12 01:56:56.689 1135]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-06-12 01:56:56.689 1135]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-06-12 01:56:56.689 1135]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-06-12 01:56:56.689 1135]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-06-12 01:56:56.689 1135]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-06-12 01:56:56.689 1135]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-06-12 01:56:56.689 1135]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-06-12 01:56:56.689 1135]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-06-12 01:56:56.689 1135]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-06-12 01:56:56.689 1135]    PARSE_ARP_CACHE: Active
   [2019-06-12 01:56:56.689 1135] Finished config file parsing
   [2019-06-12 01:56:56.727 1135] Database version is 3
   [2019-06-12 01:56:56.727 1135] Database successfully initialized

   -----tail of pihole-FTL.log------
   [2019-06-12 04:46:15.263 26914]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2019-06-12 04:46:15.263 26914]    DBIMPORT: Importing history from database
   [2019-06-12 04:46:15.263 26914]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-06-12 04:46:15.263 26914]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-06-12 04:46:15.263 26914]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-06-12 04:46:15.263 26914]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-06-12 04:46:15.263 26914]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-06-12 04:46:15.263 26914]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-06-12 04:46:15.263 26914]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-06-12 04:46:15.263 26914]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-06-12 04:46:15.264 26914]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-06-12 04:46:15.264 26914]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-06-12 04:46:15.264 26914]    PARSE_ARP_CACHE: Active
   [2019-06-12 04:46:15.264 26914] Finished config file parsing
   [2019-06-12 04:46:15.265 26914] Database version is 3
   [2019-06-12 04:46:15.265 26914] Database successfully initialized
   [2019-06-12 04:46:15.266 26914] New forward server: 2001:4860:4860::8844 (0/512)
   [2019-06-12 04:46:15.266 26914] New forward server: 192.168.1.254 (1/512)
   [2019-06-12 04:46:15.266 26914] New forward server: 8.8.4.4 (2/512)
   [2019-06-12 04:46:15.266 26914] New forward server: 8.8.8.8 (3/512)
   [2019-06-12 04:46:15.267 26914] New forward server: 2001:4860:4860::8888 (4/512)
   [2019-06-12 04:46:15.268 26914] Resizing "/FTL-strings" from 4096 to 8192
   [2019-06-12 04:46:15.277 26914] Resizing "/FTL-strings" from 8192 to 12288
   [2019-06-12 04:46:15.289 26914] Resizing "/FTL-strings" from 12288 to 16384
   [2019-06-12 04:46:15.301 26914] Resizing "/FTL-strings" from 16384 to 20480
   [2019-06-12 04:46:15.316 26914] Imported 4078 queries from the long-term database
   [2019-06-12 04:46:15.317 26914]  -> Total DNS queries: 4078
   [2019-06-12 04:46:15.317 26914]  -> Cached DNS queries: 896
   [2019-06-12 04:46:15.317 26914]  -> Forwarded DNS queries: 2287
   [2019-06-12 04:46:15.317 26914]  -> Exactly blocked DNS queries: 895
   [2019-06-12 04:46:15.317 26914]  -> Unknown DNS queries: 0
   [2019-06-12 04:46:15.317 26914]  -> Unique domains: 717
   [2019-06-12 04:46:15.317 26914]  -> Unique clients: 30
   [2019-06-12 04:46:15.317 26914]  -> Known forward destinations: 5
   [2019-06-12 04:46:15.317 26914] Successfully accessed setupVars.conf

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 323584 Jun 12 04:46 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 108 Jun 12 04:46 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 65536 Jun 12 04:46 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 12288 Jun 12 04:46 /dev/shm/FTL-forwarded
-rw------- 1 pihole pihole 28 Jun 12 04:46 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 53248 Jun 12 04:46 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 196608 Jun 12 04:46 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Jun 12 04:46 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 20480 Jun 12 04:46 /dev/shm/FTL-strings

*** [ DIAGNOSING ]: Locale
    LANG=

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 1447750 Jun 12 04:46 /var/log/pihole.log
   -----head of pihole.log------
   Jun 12 01:56:56 dnsmasq[1138]: started, version pi-hole-2.80 cachesize 10000
   Jun 12 01:56:56 dnsmasq[1138]: 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
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 192.168.1.254#53 for domain 1.168.192.in-addr.arpa 
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 192.168.1.254#53 for domain attlocal.net 
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 2001:4860:4860::8844#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 2001:4860:4860::8888#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 8.8.4.4#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 8.8.8.8#53
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/hosts - 5 addresses
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/pihole/local.list - 4 addresses
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/pihole/black.list - 0 addresses
   Jun 12 01:57:22 dnsmasq[1138]: read /etc/pihole/gravity.list - 3748552 addresses
   Jun 12 01:57:22 dnsmasq[1138]: query[A] ping3.teamviewer.com from 127.0.0.1
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 2001:4860:4860::8844
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 2001:4860:4860::8888
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 8.8.4.4
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 8.8.8.8
   Jun 12 01:57:22 dnsmasq[1138]: query[A] epdg.epc.att.net from 2600:1702:28c0:b2c0:5824:c508:142:ba28
   Jun 12 01:57:22 dnsmasq[1138]: forwarded epdg.epc.att.net to 2001:4860:4860::8844
   Jun 12 01:57:22 dnsmasq[1138]: forwarded epdg.epc.att.net to 2001:4860:4860::8888


********************************************
********************************************
[✓] ** 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.

***********************************
***********************************
[✓] Your debug token is: https://tricorder.pi-hole.net/28mvccg89h
***********************************
***********************************

   * Provide the token above to the Pi-hole team for assistance at
   * https://discourse.pi-hole.net
   * Your log will self-destruct on our server after 48 hours.
   * A local copy of the debug log can be found at: /var/log/pihole_debug.log
#2

It appears that FTL is not running. What are the outputs of the following:

sudo service pihole-FTL status

sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'

And, why do you have your DHCP lease time set to 15 minutes? That is very short. Why not a day, a week?

#3

Output:

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (exited) since Wed 2019-06-12 05:25:46 BST; 52min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31214 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUC
  Process: 31267 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/S
   CGroup: /system.slice/pihole-FTL.service

Jun 12 05:25:46 Pi-hole systemd[1]: Starting LSB: pihole-FTL daemon...
Jun 12 05:25:46 Pi-hole pihole-FTL[31267]: Not running
Jun 12 05:25:46 Pi-hole su[31318]: Successful su for pihole by root
Jun 12 05:25:46 Pi-hole su[31318]: + ??? root:pihole
Jun 12 05:25:46 Pi-hole su[31318]: pam_unix(su:session): session opened for user
Jun 12 05:25:46 Pi-hole pihole-FTL[31267]: FTL started!
Jun 12 05:25:46 Pi-hole systemd[1]: Started LSB: pihole-FTL daemon.

Output:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      31333/pihole-FTL
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      31124/lighttpd
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      31333/pihole-FTL
tcp6       0      0 ::1:4711                :::*                    LISTEN      31333/pihole-FTL
tcp6       0      0 :::80                   :::*                    LISTEN      31124/lighttpd
tcp6       0      0 :::53                   :::*                    LISTEN      31333/pihole-FTL
udp        0      0 0.0.0.0:53              0.0.0.0:*                           31333/pihole-FTL
udp6       0      0 :::53                   :::*                                31333/pihole-FTL

I had the DHCP Lease time set low just because I had been trying to just quickly release some of the devices and this was just an initial test of running the pi as what could replace my existing setup

#5

Please run sudo service pihole-FTL restart

Thensudo service pihole-FTL status

And upload a new debug log. Thank.s

#6

As of running this test, I do have DHCP control enabled on the Pi and disabled on the router but am still encountering the DNS service not running and FTL offline along with the dashboard saying "Lost Connection to the API.

  • sudo service pihole-FTL restart
    Output: None, as expected

  • sudo service pihole-FTL status
    Output:

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (exited) since Wed 2019-06-12 13:07:59 BST; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 24218 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 24224 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Jun 12 13:07:59 Pi-hole systemd[1]: Starting LSB: pihole-FTL daemon...
Jun 12 13:07:59 Pi-hole pihole-FTL[24224]: Not running
Jun 12 13:07:59 Pi-hole su[24251]: Successful su for pihole by root
Jun 12 13:07:59 Pi-hole su[24251]: + ??? root:pihole
Jun 12 13:07:59 Pi-hole su[24251]: pam_unix(su:session): session opened for user pihole
Jun 12 13:07:59 Pi-hole pihole-FTL[24224]: dnsmasq: bad dhcp-range at line 6 of /etc/dn
Jun 12 13:07:59 Pi-hole systemd[1]: Started LSB: pihole-FTL daemon.
  • New Debug log:
    Note that the debug log says this at the end:
 Would you like to upload the log? [y/N] y
    * Using curl for transmission.
[✗]  There was an error uploading your debug log.
   * Please try again or contact the Pi-hole team for assistance.

Debug log Output:

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-06-12:13:15:20 debug log has been initialized.

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

*** [ DIAGNOSING ]: Core version
[i] Core: v4.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3-0-g1d43c0a

*** [ DIAGNOSING ]: Web version
[i] Web: v4.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3-0-g44aff727

*** [ 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.0.30

*** [ DIAGNOSING ]: Operating system
[✓] Raspbian GNU/Linux 9 (stretch)

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

*** [ DIAGNOSING ]: Processor
[✓] armv7l

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
   192.168.1.175/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the eth0 interface:
   fe80::c893:ab9f:75cc:a6bd 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: 192.168.1.254
   * Pinging 192.168.1.254...
[✓] Gateway responded.
[i] Default IPv6 gateway: fe80::8661:a0ff:fecf:b9f0
   * Pinging fe80::8661:a0ff:fecf:b9f0...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)


*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:5938 teamviewer (IPv6)
*:5938 teamviewer (IPv4)
127.0.0.1:5940 teamviewer (IPv4)
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve iphoneswitch.com via localhost (127.0.0.1)
[✗] Failed to resolve iphoneswitch.com via Pi-hole (192.168.1.175)
[✓] doubleclick.com is 172.217.5.14 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve safety.apple.com.qthgb.eutvrtwyrpyd21s.stream via localhost (::1)
[✗] Failed to resolve safety.apple.com.qthgb.eutvrtwyrpyd21s.stream via Pi-hole (2600:1702:28c0:b2c0:b558:416d:a36c:92c8)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)

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

*** [ DIAGNOSING ]: Setup variables
    TEMPERATUREUNIT=F
    ADMIN_EMAIL=nbiliti@gmail.com
    WEBUIBOXEDLAYOUT=boxed
    HOSTRECORD=
    BLOCKING_ENABLED=true
    DNSMASQ_LISTENING=single
    PIHOLE_DNS_3=2001:4860:4860:0:0:0:0:8888
    PIHOLE_DNS_4=2001:4860:4860:0:0:0:0:8844
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSSEC=false
    CONDITIONAL_FORWARDING=true
    CONDITIONAL_FORWARDING_IP=192.168.1.254
    CONDITIONAL_FORWARDING_DOMAIN=attlocal.net
    CONDITIONAL_FORWARDING_REVERSE=1.168.192.in-addr.arpa
    PIHOLE_INTERFACE=eth0
    IPV4_ADDRESS=192.168.1.175/24
    IPV6_ADDRESS=2600:1702:28c0:b2c0:b558:416d:a36c:92c8
    PIHOLE_DNS_1=8.8.8.8
    PIHOLE_DNS_2=8.8.4.4
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    DHCP_ACTIVE=true
    DHCP_START=192.168.1.1
    DHCP_END=192.168.1.253
    DHCP_ROUTER=192.168.1.254
    DHCP_LEASETIME=.25
    PIHOLE_DOMAIN=Pi-Hole
    DHCP_IPv6=false
    DHCP_rapid_commit=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
-rw-r--r-- 1 root root 2655483 Jun 12 05:26 /etc/pihole/gravity.list
   -----head of gravity.list------
   0.0.0.0
   0.nextyourcontent.com
   0.r.msn.com
   0.start.bz

   -----tail of gravity.list------
   zzz.clickbank.net
   zzzezeroe.fr
   zzzpooeaz-france.com
   zzzrtrcm2.com

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

-rw-r--r-- 1 root root 381 Jun 12 04:26 /etc/pihole/adlists.list
   https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
   https://mirror1.malwaredomains.com/files/justdomains
   http://sysctl.org/cameleon/hosts
   https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
   https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
   https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
   https://hosts-file.net/ad_servers.txt

-rw-r--r-- 1 root root 0 Jun 12 03:00 /etc/pihole/blacklist.txt

-rw-r--r-- 1 root root 140 Jun 12 05:26 /etc/pihole/local.list
   192.168.1.175 Pi-hole
   2600:1702:28c0:b2c0:b558:416d:a36c:92c8 Pi-hole
   192.168.1.175 pi.hole
   2600:1702:28c0:b2c0:b558:416d:a36c:92c8 pi.hole

-rw-r--r-- 1 root root 234 Jun 12 05:25 /etc/pihole/logrotate
   /var/log/pihole.log {
        su root root
        daily
        copytruncate
        rotate 5
        compress
        delaycompress
        notifempty
        nomail
   }
   /var/log/pihole-FTL.log {
        su root root
        weekly
        copytruncate
        rotate 3
        compress
        delaycompress
        notifempty
        nomail
   }

-rw-r--r-- 1 root root 747 May 13 21:18 /etc/pihole/whitelist.txt
   raw.githubusercontent.com
   us1-zcash.flypool.org
   eth-us-east1.nanopool.org
   eth-us-west1.nanopool.org
   eth-eu1.nanopool.org
   eth-eu2.nanopool.org
   eth-asia1.nanopool.org
   zcash.flypool.org
   api-zcash.flypool.org
   spclient.wg.spotify.com
   api.ledgerwallet.com
   rover.ebay.com
   graph.accountkit.com
   t.appsflyer.com
   beta.spotify.map.fastly.net
   continuum.dds.microsoft.com
   etc.2miners.com
   2miners.com
   etc.ethermine.org
   us1-etc.ethermine.org
   m.stripe.network
   api-etc.ethermine.org
   medium.freecodecamp.org
   us1.ethpool.org
   us1.ethermine.org
   biosagentplus.com
   btgpool.pro
   pool.gold
   europe.equihash-hub.miningpoolhub.com
   slushpool.com
   www.multiminerapp.com
   mint.bitminter.com
   bitminer.io
   bitminter.com
   ethermine.org
   api.ethermine.org
   eth.nanopool.org
   eth.2miners.com

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

-rw-r--r-- 1 root root 1690 Jun 12 13:07 /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=8.8.8.8
   server=8.8.4.4
   server=2001:4860:4860:0:0:0:0:8888
   server=2001:4860:4860:0:0:0:0:8844
   domain-needed
   bogus-priv
   interface=eth0
   server=/attlocal.net/192.168.1.254
   server=/1.168.192.in-addr.arpa/192.168.1.254

-rw-r--r-- 1 root root 506 Jun 12 13:07 /etc/dnsmasq.d/02-pihole-dhcp.conf
   dhcp-authoritative
   dhcp-range=192.168.1.1,192.168.1.253,.25h
   dhcp-option=option:router,192.168.1.254
   dhcp-leasefile=/etc/pihole/dhcp.leases
   domain=Pi-Hole
   dhcp-rapid-commit

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

-rw-r--r-- 1 root root 3102 Jun 12 05:25 /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" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "/usr/share/lighttpd/create-mime.assign.pl"
   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 Jun 12 05:25 /etc/cron.d/pihole
   45 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
   31 12  * * *   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 15935 Jun 12 13:15 /var/log/lighttpd/error.log
   2019-06-09 06:25:02: (server.c.1534) logfiles cycled UID = 0 PID = 7584
   2019-06-11 15:48:40: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Uninitialized string offset: 0 in /var/www/html/admin/scripts/pi-hole/php/queryads.php on line 26
   2019-06-11 15:48:40: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/pihole/index.php on line 10
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:10: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/pihole/index.php on line 10
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 138
   2019-06-11 15:49:16: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Uninitialized string offset: 0 in /var/www/html/admin/scripts/pi-hole/php/queryads.php on line 26
   2019-06-11 15:49:21: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=unknownb827eb51c411.attlocal.net&bp): failed to open stream: HTTP request failed!  in /var/www/html/pihole/index.php on line 137
   2019-06-11 15:49:21: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 138

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

-rw-r--r-- 1 pihole pihole 73422 Jun 12 13:07 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2019-06-12 01:56:56.687 1135] Using log file /var/log/pihole-FTL.log
   [2019-06-12 01:56:56.687 1135] ########## FTL started! ##########
   [2019-06-12 01:56:56.688 1135] FTL branch: master
   [2019-06-12 01:56:56.688 1135] FTL version: v4.3.1
   [2019-06-12 01:56:56.688 1135] FTL commit: b60d63f
   [2019-06-12 01:56:56.688 1135] FTL date: 2019-05-25 21:37:26 +0200
   [2019-06-12 01:56:56.688 1135] FTL user: pihole
   [2019-06-12 01:56:56.688 1135] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2019-06-12 01:56:56.688 1135]    SOCKET_LISTENING: only local
   [2019-06-12 01:56:56.688 1135]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2019-06-12 01:56:56.688 1135]    MAXDBDAYS: max age for stored queries is 365 days
   [2019-06-12 01:56:56.688 1135]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2019-06-12 01:56:56.688 1135]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2019-06-12 01:56:56.688 1135]    DBINTERVAL: saving to DB file every minute
   [2019-06-12 01:56:56.688 1135]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2019-06-12 01:56:56.688 1135]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2019-06-12 01:56:56.688 1135]    PRIVACYLEVEL: Set to 0
   [2019-06-12 01:56:56.688 1135]    IGNORE_LOCALHOST: Show queries from localhost
   [2019-06-12 01:56:56.688 1135]    BLOCKINGMODE: Null IPs for blocked domains
   [2019-06-12 01:56:56.688 1135]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2019-06-12 01:56:56.688 1135]    DBIMPORT: Importing history from database
   [2019-06-12 01:56:56.689 1135]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-06-12 01:56:56.689 1135]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-06-12 01:56:56.689 1135]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-06-12 01:56:56.689 1135]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-06-12 01:56:56.689 1135]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-06-12 01:56:56.689 1135]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-06-12 01:56:56.689 1135]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-06-12 01:56:56.689 1135]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-06-12 01:56:56.689 1135]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-06-12 01:56:56.689 1135]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-06-12 01:56:56.689 1135]    PARSE_ARP_CACHE: Active
   [2019-06-12 01:56:56.689 1135] Finished config file parsing
   [2019-06-12 01:56:56.727 1135] Database version is 3
   [2019-06-12 01:56:56.727 1135] Database successfully initialized

   -----tail of pihole-FTL.log------
   [2019-06-12 13:07:59.394 24264]    DBIMPORT: Importing history from database
   [2019-06-12 13:07:59.394 24264]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-06-12 13:07:59.394 24264]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-06-12 13:07:59.395 24264]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-06-12 13:07:59.395 24264]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-06-12 13:07:59.395 24264]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-06-12 13:07:59.395 24264]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-06-12 13:07:59.395 24264]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-06-12 13:07:59.395 24264]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-06-12 13:07:59.395 24264]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-06-12 13:07:59.395 24264]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-06-12 13:07:59.395 24264]    PARSE_ARP_CACHE: Active
   [2019-06-12 13:07:59.395 24264] Finished config file parsing
   [2019-06-12 13:07:59.396 24264] Database version is 3
   [2019-06-12 13:07:59.397 24264] Database successfully initialized
   [2019-06-12 13:07:59.397 24264] New forward server: 2001:4860:4860::8844 (0/512)
   [2019-06-12 13:07:59.397 24264] New forward server: 192.168.1.254 (1/512)
   [2019-06-12 13:07:59.397 24264] New forward server: 8.8.4.4 (2/512)
   [2019-06-12 13:07:59.397 24264] New forward server: 8.8.8.8 (3/512)
   [2019-06-12 13:07:59.398 24264] New forward server: 2001:4860:4860::8888 (4/512)
   [2019-06-12 13:07:59.400 24264] Resizing "/FTL-strings" from 4096 to 8192
   [2019-06-12 13:07:59.408 24264] Resizing "/FTL-strings" from 8192 to 12288
   [2019-06-12 13:07:59.421 24264] Resizing "/FTL-strings" from 12288 to 16384
   [2019-06-12 13:07:59.434 24264] Resizing "/FTL-strings" from 16384 to 20480
   [2019-06-12 13:07:59.449 24264] Resizing "/FTL-queries" from 196608 to 393216
   [2019-06-12 13:07:59.480 24264] Imported 6521 queries from the long-term database
   [2019-06-12 13:07:59.481 24264]  -> Total DNS queries: 6521
   [2019-06-12 13:07:59.481 24264]  -> Cached DNS queries: 1235
   [2019-06-12 13:07:59.481 24264]  -> Forwarded DNS queries: 4058
   [2019-06-12 13:07:59.481 24264]  -> Exactly blocked DNS queries: 1228
   [2019-06-12 13:07:59.481 24264]  -> Unknown DNS queries: 0
   [2019-06-12 13:07:59.481 24264]  -> Unique domains: 775
   [2019-06-12 13:07:59.481 24264]  -> Unique clients: 32
   [2019-06-12 13:07:59.481 24264]  -> Known forward destinations: 5
   [2019-06-12 13:07:59.481 24264] Successfully accessed setupVars.conf

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 323584 Jun 12 13:07 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 108 Jun 12 13:07 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 65536 Jun 12 13:07 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 12288 Jun 12 13:07 /dev/shm/FTL-forwarded
-rw------- 1 pihole pihole 28 Jun 12 13:07 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 53248 Jun 12 13:07 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 393216 Jun 12 13:07 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Jun 12 13:07 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 20480 Jun 12 13:07 /dev/shm/FTL-strings

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

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 2283126 Jun 12 13:07 /var/log/pihole.log
   -----head of pihole.log------
   Jun 12 01:56:56 dnsmasq[1138]: started, version pi-hole-2.80 cachesize 10000
   Jun 12 01:56:56 dnsmasq[1138]: 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
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 192.168.1.254#53 for domain 1.168.192.in-addr.arpa
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 192.168.1.254#53 for domain attlocal.net
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 2001:4860:4860::8844#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 2001:4860:4860::8888#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 8.8.4.4#53
   Jun 12 01:56:56 dnsmasq[1138]: using nameserver 8.8.8.8#53
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/hosts - 5 addresses
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/pihole/local.list - 4 addresses
   Jun 12 01:56:56 dnsmasq[1138]: read /etc/pihole/black.list - 0 addresses
   Jun 12 01:57:22 dnsmasq[1138]: read /etc/pihole/gravity.list - 3748552 addresses
   Jun 12 01:57:22 dnsmasq[1138]: query[A] ping3.teamviewer.com from 127.0.0.1
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 2001:4860:4860::8844
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 2001:4860:4860::8888
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 8.8.4.4
   Jun 12 01:57:22 dnsmasq[1138]: forwarded ping3.teamviewer.com to 8.8.8.8
   Jun 12 01:57:22 dnsmasq[1138]: query[A] epdg.epc.att.net from 2600:1702:28c0:b2c0:5824:c508:142:ba28
   Jun 12 01:57:22 dnsmasq[1138]: forwarded epdg.epc.att.net to 2001:4860:4860::8844
   Jun 12 01:57:22 dnsmasq[1138]: forwarded epdg.epc.att.net to 2001:4860:4860::8888


********************************************
********************************************
[✓] ** 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.
[✗]  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
#8

You seem to have a bad config option (the message is cut off):

dnsmasq: bad dhcp-range at line 6 of /etc/dn

Check the configs in /etc/dnsmasq.d for any bad dhcp-range lines.

#9

Sorry for the late reply and thank you for pointing out that it was cut off and it was that file it told me to go to and I did check my DHCP config and it was within normal limits (ie: /24 for my network type so 192.168.1.1-254 and subnet mask was 255.255.255.0) so I guess I don’t really know what is going on now. could it be that my router is conflicting with the pi-hole?

p.s. Thanks for you guys’ patience and help!
#10

Can you share the dhcp-range settings you have? Most likely one of them is wrong syntactically.

#11

Here is the output of sudo service pihole-FTL status when I have the pi running as my DHCP server (the other was cut off a bit):

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (exited) since Sat 2019-06-15 06:17:11 BST; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 21577 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 21583 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Jun 15 06:17:11 Pi-hole systemd[1]: Starting LSB: pihole-FTL daemon...
Jun 15 06:17:11 Pi-hole pihole-FTL[21583]: Not running
Jun 15 06:17:11 Pi-hole su[21610]: Successful su for pihole by root
Jun 15 06:17:11 Pi-hole su[21610]: + ??? root:pihole
Jun 15 06:17:11 Pi-hole su[21610]: pam_unix(su:session): session opened for user pihole by (uid=0)
Jun 15 06:17:11 Pi-hole pihole-FTL[21583]: dnsmasq: bad dhcp-range at line 6 of /etc/dnsmasq.d/02-pihole-dhcp.conf
Jun 15 06:17:11 Pi-hole systemd[1]: Started LSB: pihole-FTL daemon.

So the file that has a bad dhcp-range at line 6 was /etc/dnsmasq.d/02-pihole-dhcp.conf which I will copy below:

###############################################################################
#  DHCP SERVER CONFIG FILE AUTOMATICALLY POPULATED BY PI-HOLE WEB INTERFACE.  #
#            ANY CHANGES MADE TO THIS FILE WILL BE LOST ON CHANGE             #
###############################################################################
dhcp-authoritative
dhcp-range=192.168.1.1,192.168.1.253,.25h
dhcp-option=option:router,192.168.1.254
dhcp-leasefile=/etc/pihole/dhcp.leases
#quiet-dhcp

domain=Pi-Hole
dhcp-rapid-commit
#12

The ending .25h should not have a period. This is generated from the settings you entered on the web interface. Did you include a period there by accident?

#14

No this was intentional, as i wanted my DHCP Leases to last 15 Minutes. I did not realize that this would produce issues and will correct this now and update this post on if it fixed my problems! Thank you in advance.

#15

Options:

pi@noads:~ $ man dnsmasq
[..]
       -F,            --dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-
       IPv6addr>[,<end-IPv6addr>|constructor:<interface>][,<mode>][,<prefix-
       len>][,<lease time>]

              Enable  the  DHCP  server.  Addresses will be given out from the
              range <start-addr> to <end-addr>  and  from  statically  defined
              addresses  given  in  dhcp-host  options.  If  the lease time is
              given, then leases will be given for that length  of  time.  The
              lease  time  is in seconds, or minutes (eg 45m) or hours (eg 1h)
              or "infinite". If not given, the default lease time is one hour.
              The  minimum  lease  time  is  two minutes. For IPv6 ranges, the
              lease time maybe "deprecated"; this sets the preferred  lifetime
              sent  in  a  DHCP  lease  or router advertisement to zero, which
              causes clients to use other addresses,  if  available,  for  new
              connections as a prelude to renumbering.
#17

We currently only support specifying the duration in hours.