I set up pi-hole tonight on an Orange Pi running Raspbian, and it seems to be working correctly (ads are being blocked, etc), but I can't connect to the web interface. The installation showed lighttpd starting without issue, but I don't see it in ps -A. Anyone have any suggestions for this?
Run pihole -d
and pastebin the log it creates /var/log/pihole_debug.log
. Are you sure that you added it as the DNS server for your router correctly, and are you navigating to http://IP of Pi/admin/
?
Hi, I'm having the same problem.
Here's the output of the debug:
IP Addresses of this Pi:
192.168.0.17
127.0.0.1
Gateway check:
ok
#######################################
########## Versions Section ###########
#######################################
Pi-hole Version: v2.8.1
WebUI Version: v1.3
#######################################
######## Distribution Section #########
#######################################
Distribution Version: Failed to find release
#######################################
######## Whitelist Comparison #########
#######################################
#######################################
######## Blacklist Comparison #########
#######################################
#######################################
############ NSLookup Test ############
#######################################
NSLOOKUP of doubleclick.com from PiHole:
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: doubleclick.com
Address: 192.168.0.17
NSLOOKUP of doubleclick.com from 8.8.8.8:
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: doubleclick.com
Address: 70.186.10.53
Name: doubleclick.com
Address: 70.186.10.56
Name: doubleclick.com
Address: 70.186.10.55
Name: doubleclick.com
Address: 70.186.10.54
Name: doubleclick.com
Address: 70.186.10.52
Name: doubleclick.com
Address: 70.186.10.59
Name: doubleclick.com
Address: 70.186.10.57
Name: doubleclick.com
Address: 70.186.10.58
#######################################
########### Processes Check ###########
#######################################
lighttpd processes status:
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: active (running) since Thu 2016-08-04 23:34:09 PDT; 8min ago
Process: 567 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 614 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─614 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Aug 04 23:34:09 pi-hole lighttpd[567]: Syntax OK
dnsmasq processes status:
● 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: active (running) since Thu 2016-08-04 23:34:10 PDT; 8min ago
Process: 606 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 592 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 576 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 604 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─604 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
Aug 04 23:34:08 pi-hole dnsmasq[576]: dnsmasq: syntax check OK.
#######################################
############ lighttpd.conf ############
#######################################
server.modules = (
"mod_access",
"mod_accesslog",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "pihole/index.html"
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" )
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 "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
$HTTP["url"] =~ "^(?!/admin)/." {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
url.rewrite = ("(.).js" => "pihole/index.js")
}
#######################################
######### lighttpd error.log ##########
#######################################
2016-08-04 23:22:37: (log.c.164) server started
2016-08-04 23:23:32: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-04 23:23:54: (log.c.164) server started
2016-08-04 23:27:58: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-04 23:27:58: (log.c.164) server started
2016-08-04 23:33:29: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-04 23:34:09: (log.c.164) server started
#######################################
############### Dnsmasq ###############
#######################################
conf-dir=/etc/dnsmasq.d
#######################################
########### 01-pihole.conf ############
#######################################
addn-hosts=/etc/pihole/gravity.list
domain-needed
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
listen-address=127.0.0.1
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async
#######################################
############ gravity.list #############
#######################################
202898 /etc/pihole/gravity.list
Hostname of this pihole is:
pi-hole
#######################################
################ Hosts ################
#######################################
127.0.0.1 localhost
127.0.1.1 pi-hole
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#######################################
############## Whitelist ##############
#######################################
raw.githubusercontent.com
adblock.gjtech.net
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net
ransomwaretracker.abuse.ch
#######################################
############## Blacklist ##############
#######################################
#######################################
############ adlists.list #############
#######################################
No adlists.list file found... using adlists.default!
#######################################
############# pihole.log ##############
#######################################
Aug 4 23:42:16 dnsmasq[604]: query[A] p33-keyvalueservice-current.edge.icloud.apple-dns.net from 192.168.0.26
Aug 4 23:42:16 dnsmasq[604]: cached p33-keyvalueservice-current.edge.icloud.apple-dns.net is 17.248.128.176
Aug 4 23:42:16 dnsmasq[604]: query[AAAA] service.gc.apple.com.akadns.net from 192.168.0.24
Aug 4 23:42:16 dnsmasq[604]: cached service.gc.apple.com.akadns.net is NODATA-IPv6
Aug 4 23:42:16 dnsmasq[604]: query[A] service.gc.apple.com.akadns.net from 192.168.0.24
Aug 4 23:42:16 dnsmasq[604]: cached service.gc.apple.com.akadns.net is 17.173.254.38
Aug 4 23:42:16 dnsmasq[604]: query[AAAA] p33-keyvalueservice-current.edge.icloud.apple-dns.net from 192.168.0.26
Aug 4 23:42:16 dnsmasq[604]: cached p33-keyvalueservice-current.edge.icloud.apple-dns.net is NODATA-IPv6
Aug 4 23:42:18 dnsmasq[604]: query[A] doubleclick.com from 127.0.0.1
Aug 4 23:42:18 dnsmasq[604]: /etc/pihole/gravity.list doubleclick.com is 192.168.0.17
Aug 4 23:42:20 dnsmasq[604]: query[A] api-glb-lax.smoot.apple.com from 192.168.0.39
Aug 4 23:42:20 dnsmasq[604]: cached api-glb-lax.smoot.apple.com is 17.249.25.246
Aug 4 23:42:23 dnsmasq[604]: query[A] gs-loc.ls-apple.com.akadns.net from 192.168.0.21
Aug 4 23:42:23 dnsmasq[604]: forwarded gs-loc.ls-apple.com.akadns.net to 8.8.4.4
Aug 4 23:42:23 dnsmasq[604]: forwarded gs-loc.ls-apple.com.akadns.net to 8.8.8.8
Aug 4 23:42:23 dnsmasq[604]: reply gs-loc.ls-apple.com.akadns.net is 17.134.62.236
Aug 4 23:42:23 dnsmasq[604]: reply gs-loc.ls-apple.com.akadns.net is 17.134.126.213
Aug 4 23:42:23 dnsmasq[604]: reply gs-loc.ls-apple.com.akadns.net is 17.134.127.249
Aug 4 23:42:23 dnsmasq[604]: reply gs-loc.ls-apple.com.akadns.net is 17.134.127.250
I had the webserver working when I first installed Pi-hole, but since I upgraded to 2.9 the webserver does not respond. I may have done the upgrade incorrectly. I uninstalled Pi-hole then installed the new version. I hadn't seen the upgrade command line option. I don't know if that has anything to do with it.
Here's my debug log file:
IP Addresses of this Pi:
192.168.1.23
127.0.0.1
Gateway check:
ok
#######################################
########## Versions Section ###########
#######################################
Pi-hole Version: v2.9
WebUI Version: v1.4
#######################################
######## Distribution Section #########
#######################################
Distribution Version: PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
#######################################
######## Whitelist Comparison #########
#######################################
#######################################
######## Blacklist Comparison #########
#######################################
#######################################
############ NSLookup Test ############
#######################################
NSLOOKUP of doubleclick.com from PiHole:
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: doubleclick.com
Address: 192.168.1.23
NSLOOKUP of doubleclick.com from 8.8.8.8:
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: doubleclick.com
Address: 172.217.4.78
#######################################
########### Processes Check ###########
#######################################
lighttpd processes status:
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: active (running) since Wed 2016-08-31 19:32:56 GMT-5; 49min ago
Process: 570 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 671 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─671 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Aug 31 19:32:56 raspberrypi lighttpd[570]: Syntax OK
Aug 31 19:32:56 raspberrypi systemd[1]: Started Lighttpd Daemon.
dnsmasq processes status:
● 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: active (running) since Wed 2016-08-31 19:32:54 GMT-5; 49min ago
Process: 532 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 505 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 428 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 528 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─528 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
Aug 31 19:32:47 raspberrypi dnsmasq[428]: dnsmasq: syntax check OK.
Aug 31 19:32:54 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
#######################################
############ lighttpd.conf ############
#######################################
server.modules = (
"mod_access",
"mod_accesslog",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "pihole/index.html"
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" )
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 "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
$HTTP["url"] =~ "^(?!/admin)/." {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
url.rewrite = ("(.).js" => "pihole/index.js")
}
#######################################
######### lighttpd error.log ##########
#######################################
2016-08-28 04:28:50: (log.c.164) server started
2016-08-28 04:34:04: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-28 04:37:33: (log.c.164) server started
2016-08-28 04:37:33: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2016-08-28 04:41:11: www.bluejaysnation.com/ is not a valid domain
2016-08-28 06:03:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined variable: status in /var/www/html/admin/data.php on line 144
2016-08-28 19:13:00: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined variable: status in /var/www/html/admin/data.php on line 144
2016-08-29 02:02:50: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-29 02:03:15: (log.c.164) server started
2016-08-29 02:03:15: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2016-08-29 02:17:21: (log.c.164) server started
2016-08-29 02:17:21: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2016-08-30 17:34:16: *.bmo.com is not a valid domain
2016-08-30 17:34:42: ww1..bmo.com is not a valid domain
2016-08-30 17:34:50: ww21..bmo.com is not a valid domain
2016-08-31 18:53:09: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-31 18:57:32: (log.c.164) server started
2016-08-31 19:03:08: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-31 19:03:34: (log.c.164) server started
2016-08-31 19:08:29: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-31 19:09:56: (log.c.164) server started
2016-08-31 19:32:31: (server.c.1558) server stopped by UID = 0 PID = 1
2016-08-31 19:32:56: (log.c.164) server started
#######################################
############### Dnsmasq ###############
#######################################
conf-dir=/etc/dnsmasq.d
#######################################
########### 01-pihole.conf ############
#######################################
addn-hosts=/etc/pihole/gravity.list
domain-needed
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
listen-address=127.0.0.1
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async
#######################################
############ gravity.list #############
#######################################
193596 /etc/pihole/gravity.list
Hostname of this pihole is:
raspberrypi
#######################################
################ Hosts ################
#######################################
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
#######################################
############## Whitelist ##############
#######################################
raw.githubusercontent.com
adblock.gjtech.net
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net
ransomwaretracker.abuse.ch
#######################################
############## Blacklist ##############
#######################################
#######################################
############ adlists.list #############
#######################################
No adlists.list file found... using adlists.default!
#######################################
############# pihole.log ##############
#######################################
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.72
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.91
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.76
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.77
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.66
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.84
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.93
Aug 31 20:21:34 dnsmasq[528]: reply api.south.kontagent.net is 169.46.12.88
Aug 31 20:22:06 dnsmasq[528]: query[A] doubleclick.com from 127.0.0.1
Aug 31 20:22:06 dnsmasq[528]: /etc/pihole/gravity.list doubleclick.com is 192.168.1.23
Aug 31 20:22:15 dnsmasq[528]: query[AAAA] time-ios.g.aaplimg.com from 192.168.1.12
Aug 31 20:22:15 dnsmasq[528]: forwarded time-ios.g.aaplimg.com to 8.8.4.4
Aug 31 20:22:15 dnsmasq[528]: forwarded time-ios.g.aaplimg.com to 8.8.8.8
Aug 31 20:22:15 dnsmasq[528]: reply time-ios.g.aaplimg.com is NODATA-IPv6
Aug 31 20:22:16 dnsmasq[528]: query[A] time-ios.g.aaplimg.com from 192.168.1.12
Aug 31 20:22:16 dnsmasq[528]: forwarded time-ios.g.aaplimg.com to 8.8.4.4
Aug 31 20:22:16 dnsmasq[528]: reply time-ios.g.aaplimg.com is 17.253.24.125
Aug 31 20:22:16 dnsmasq[528]: reply time-ios.g.aaplimg.com is 17.253.24.253
Aug 31 20:22:16 dnsmasq[528]: reply time-ios.g.aaplimg.com is 17.253.14.125
Aug 31 20:22:35 dnsmasq[528]: query[A] mail.google.com from 192.168.1.3
Aug 31 20:22:35 dnsmasq[528]: cached mail.google.com is
Aug 31 20:22:35 dnsmasq[528]: forwarded mail.google.com to 8.8.4.4
Aug 31 20:22:35 dnsmasq[528]: reply mail.google.com is
Aug 31 20:22:35 dnsmasq[528]: reply googlemail.l.google.com is 172.217.1.101
Aug 31 20:22:38 dnsmasq[528]: query[A]
doubleclick.net from 192.168.1.3
Aug 31 20:22:38 dnsmasq[528]: /etc/pihole/gravity.list doubleclick.net is 192.168.1.23
Aug 31 20:22:45 dnsmasq[528]: query[A] clients4.google.com from 192.168.1.3
Aug 31 20:22:45 dnsmasq[528]: forwarded clients4.google.com to 8.8.4.4
Aug 31 20:22:45 dnsmasq[528]: forwarded clients4.google.com to 8.8.8.8
Aug 31 20:22:45 dnsmasq[528]: reply clients4.google.com is
Aug 31 20:22:45 dnsmasq[528]: reply clients.l.google.com is 172.217.2.14
Look at my post concerning lighttpd.
I have been working on some different configs and have reloaded this
many times. Try this below and see if this helps you
Here are the instructions.
To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command
sudo lighttpd-enable-mod fastcgi-php
Then reload the server using
sudo service lighttpd force-reload
Look at my post concerning lighttpd.
I have been working on some different configs and have reloaded this
many times. Try this below and see if this helps you
Here are the instructions.
sudo lighttpd-enable-mod fastcgi-php
Then reload the server using
sudo service lighttpd force-reload