Please follow the below template, it will help us to help you!
Expected Behaviour:
DNS service running
Actual Behaviour:
DNS Service not running, resulting in failures to resolve any DNS as long as pihole is main DNS server.
Debug Token:
[โ] Your debug token is: uetv8j3h80
Some more info, not being a linux expert:
Had done a "pihole -up" to Pi-hole Version v3.3 Web Interface Version v3.3 FTL Version v3.0
[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] Creating log and changing owner to dnsmasq... log already exists!
[โ] Backing up index.lighttpd.html
No default index.lighttpd.html file found... not backing up
ended with line: Unable to complete update, please contact Pi-hole Support
tried a pihole -r which ran through successfully.
still DNS server not running
โ dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
โโ50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Fri 2018-03-30 11:24:44 UTC; 22min ago
Process: 3845 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FAILURE)
copied 01-pihole.conf to /etc/dnsmasq.conf and tried to start dnsmasq:
sudo journalctl -xn
-- Logs begin at Fri 2018-03-30 10:52:35 UTC, end at Fri 2018-03-30 12:23:47 UTC. --
Mar 30 12:22:43 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Subject: Unit dnsmasq.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnsmasq.service has failed.
--
-- The result is failed.
Mar 30 12:22:43 raspberrypi systemd[1]: Dependency failed for Host and Network Name Lookups.
-- Subject: Unit nss-lookup.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nss-lookup.target has failed.
--
-- The result is dependency.
Mar 30 12:22:43 raspberrypi systemd[1]: Unit dnsmasq.service entered failed state.
Mar 30 12:22:43 raspberrypi sudo[15557]: pam_unix(sudo:session): session closed for user root
Mar 30 12:23:11 raspberrypi sudo[15644]: pi : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/systemctl status dns
Mar 30 12:23:11 raspberrypi sudo[15644]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Mar 30 12:23:11 raspberrypi sudo[15644]: pam_unix(sudo:session): session closed for user root
Mar 30 12:23:47 raspberrypi sudo[15729]: pi : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl -xn
Mar 30 12:23:47 raspberrypi sudo[15729]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
``
pi@raspberrypi:~ $ pihole status
[โ] DNS service is NOT running
pi@raspberrypi:~ $ pihole restartdns
[โ] Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $
``
I am not sure why directly after the upgrade it didnยดt work. Again, I am by far a Linux expert, but one of the big failures obviously was to copy /etc/dnsmasq.d/01-pihole.log to /etc/dnsmasq.conf.
That kept dnsmasq.service start failing allover again. I then emptied the /etc/dnsmasq.conf (basically removed all entries as they would exist in 01-pihole.conf) and then the command pihole restartdnsdid succeeded.
*** [ INITIALIZING ]
[i] 2017-04-10:10:06:30 debug log has been initialized.
*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...
*** [ DIAGNOSING ]: Core version
[i] Core: v3.3.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v3.3.1-0-gfbee18e
*** [ DIAGNOSING ]: Web version
[i] Web: v3.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v3.3-0-ge48aa29
*** [ DIAGNOSING ]: FTL version
[โ] FTL: v3.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
*** [ DIAGNOSING ]: dnsmasq version
[i] 2.72
*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.35
*** [ DIAGNOSING ]: php version
[i] 5.6.33
*** [ DIAGNOSING ]: Operating system
[โ] Raspbian GNU/Linux 8 (jessie)
*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected
*** [ DIAGNOSING ]: Processor
*** [ DIAGNOSING ]: Networking
[โ] IPv4 address(es) bound to the eth0 interface:
192.168.1.2/24 matches the IP found in /etc/pihole/setupVars.conf
[โ] IPv6 address(es) bound to the eth0 interface:
fe80::9e6:20cc:35fb:18d 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.1
* Pinging 192.168.1.1...
[โ] Gateway responded.
*** [ DIAGNOSING ]: Ports in use
[22] is in use by sshd
[80] is in use by lighttpd
*** [ 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 (192.168.1.2)
[โ] doubleclick.com is 172.217.23.110 via a remote, public DNS server (8.8.8.8)
*** [ DIAGNOSING ]: Pi-hole processes
[โ] dnsmasq daemon is failed
[โ] lighttpd daemon is active
[โ] pihole-FTL daemon is unknown
*** [ DIAGNOSING ]: Setup variables
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.2/24
IPV6_ADDRESS=
PIHOLE_DNS_1=208.67.222.222
PIHOLE_DNS_2=208.67.220.220
QUERY_LOGGING=true
INSTALL_WEB=true
LIGHTTPD_ENABLED=1
DHCP_ACTIVE=false
*** [ DIAGNOSING ]: Dashboard and block page
[โ] X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Date: Mon, 10 Apr 2017 10:06:37 GMT
Server: lighttpd/1.4.35
[โ] 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 234 Apr 3 2018 /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
}
*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
-rw-r--r-- 1 root root 1522 Apr 10 10:06 /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=extra
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=208.67.222.222
server=208.67.220.220
interface=eth0
*** [ DIAGNOSING ]: contents of /etc/lighttpd
-rw-r--r-- 1 root root 3027 Apr 3 2018 /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 1495 Apr 3 2018 /etc/cron.d/pihole
46 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
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
7 19 * * * 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 23967 Apr 10 10:06 /var/log/lighttpd/error.log
2018-04-03 17:03:49: (log.c.164) server started
2017-04-10 09:58:43: (log.c.164) server started
2017-04-10 09:58:42: (log.c.164) server started
2017-04-10 09:59:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: from in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 522
2017-04-10 09:59:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: to in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 529
2017-04-10 09:59:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: router in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 536
2017-04-10 09:59:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: domain in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 542
2017-04-10 09:59:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: leasetime in /var/www/html/admin/scripts/pi-hole/php/savesettings.php on line 550
2017-04-10 10:00:27: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_START in /var/www/html/admin/settings.php on line 310
2017-04-10 10:00:27: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_END in /var/www/html/admin/settings.php on line 311
2017-04-10 10:00:27: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_ROUTER in /var/www/html/admin/settings.php on line 312
2017-04-10 10:00:30: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
2017-04-10 10:01:00: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
2017-04-10 10:01:03: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_START in /var/www/html/admin/settings.php on line 310
2017-04-10 10:01:03: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_END in /var/www/html/admin/settings.php on line 311
2017-04-10 10:01:03: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: DHCP_ROUTER in /var/www/html/admin/settings.php on line 312
2017-04-10 10:04:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
2017-04-10 10:05:59: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 72
2017-04-10 10:06:02: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
2017-04-10 10:06:09: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: fopen(/var/log/pihole-FTL.log): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/tailLog.php on line 17
*** [ DIAGNOSING ]: contents of /var/log
*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 dnsmasq root 0 Apr 3 2018 /var/log/pihole.log
-----head of pihole.log------
********************************************
********************************************
[โ] ** 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 openssl 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-sanitized.log