hi itried to install pi hole on a synology nas using following manual:
i got the webinterface running and both tried installing dns of my nas to router and manually in windows but it does not work. seems like a port error of something . i do not have port 80 in use by any other app on the synology . i ran the debug log : token 51b1w38nuk
and will copy the log also under my queston . I know there is a docker solution too but i am so close it must be something simple any help ? thanks in advance.
Michael
*** [ INITIALIZING ]
[i] 2018-03-08:20:07:42 debug log has been initialized.
*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...
*** [ DIAGNOSING ]: Core version
[i] Core: v3.3 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v3.3-0-g1e87850
*** [ DIAGNOSING ]: Web version
[i] Web: v3.3 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v3.3-0-ge48aa29
*** [ DIAGNOSING ]: FTL version
[β] FTL: v3.0
*** [ DIAGNOSING ]: dnsmasq version
[i] 2.72
*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.35
*** [ DIAGNOSING ]: php version
[i] 5.6.33
*** [ DIAGNOSING ]: Operating system
[β] Debian GNU/Linux 8 (jessie)
*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected
*** [ DIAGNOSING ]: Processor
[i] armv5tel
*** [ DIAGNOSING ]: Networking
[β] IPv4 address(es) bound to the eth0 interface:
192.168.2.6/24 matches the IP found in /etc/pihole/setupVars.conf
[β] No IPv6 address(es) found on the eth0 interface.
[i] Default IPv4 gateway: 192.168.2.254
- Pinging 192.168.2.254...
[β] Gateway responded.
*** [ DIAGNOSING ]: Ports in use
[10] is in use by sshd
[111] is in use by rpcbind
[139] is in use by smbd
[2048] is in use by lighttpd
[21] is in use by ftpd
[30] is in use by sshd
[3306] is in use by mysqld
[443] is in use by nginx
[445] is in use by smbd
[5000] is in use by nginx
[5001] is in use by nginx
[5006] is in use by httpd
[50646] is in use by statd
[51024] is in use by statd
[53] is in use by dnsmasq
[6789] is in use by nzbget
[80] is in use by lighttpd
[892] is in use by mountd
[9007] is in use by python
is in use by
[4711] is in use by pihole-FTL
[5432] is in use by postgres
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[β] Failed to resolve ad.doubleclick.net.37810.9301.302br.net via localhost (127.0.0.1)
[β] Failed to resolve ad.doubleclick.net.37810.9301.302br.net via Pi-hole (192.168.2.6)
[β] doubleclick.com is 172.217.19.206 via a remote, public DNS server (8.8.8.8)
*** [ DIAGNOSING ]: Pi-hole processes
[β] dnsmasq daemon is
[β] lighttpd daemon is
[β] pihole-FTL daemon is
*** [ DIAGNOSING ]: Setup variables
DHCP_START=192.168.2.201
DHCP_END=192.168.2.251
DHCP_ROUTER=192.168.2.254
DHCP_LEASETIME=24
PIHOLE_DOMAIN=lan
DHCP_IPv6=true
DNSMASQ_LISTENING=local
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=false
DHCP_ACTIVE=false
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.2.6/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
*** [ DIAGNOSING ]: Dashboard and block page
[β] X-Header does not match or could not be retrieved.
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Thu, 08 Mar 2018 19:08:18 GMT
Content-Type: text/html
Content-Length: 154
Connection: keep-alive
Keep-Alive: timeout=20
Location: http://localhost:5000/
[β] X-Header does not match or could not be retrieved.
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Thu, 08 Mar 2018 19:08:18 GMT
Content-Type: text/html
Content-Length: 154
Location: http://localhost/
Connection: keep-alive
Keep-Alive: timeout=20
*** [ DIAGNOSING ]: Gravity list
-rw-r--r-- 1 root root 4228731 Mar 8 19:44 /etc/pihole/gravity.list
-----head of gravity.list------
192.168.2.6 0.0.0.0
192.168.2.6 0000mps.webpreview.dsl.net
192.168.2.6 0001.2waky.com
192.168.2.6 000dom.revenuedirect.com
-----tail of gravity.list------
192.168.2.6 zzsyw.com
192.168.2.6 zztxdown.com
192.168.2.6 zzz.clickbank.net
192.168.2.6 zz.zeroredirect1.com
*** [ DIAGNOSING ]: contents of /etc/pihole
-rw-r--r-- 1 root root 633 Mar 8 08:18 /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 44 Mar 8 19:44 /etc/pihole/local.list
192.168.2.6 Michaelsnas
192.168.2.6 pi.hole
-rw-r--r-- 1 root root 234 Mar 8 19:43 /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 117 Mar 8 08:18 /etc/pihole/whitelist.txt
raw.githubusercontent.com
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net
*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
-rw-r--r-- 1 root root 1546 Mar 8 19:43 /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
domain-needed
bogus-priv
local-service
*** [ DIAGNOSING ]: contents of /etc/lighttpd
-rw-r--r-- 1 root root 3027 Mar 8 19:43 /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 1496 Mar 8 19:43 /etc/cron.d/pihole
57 4 * * 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
10 18 * * * 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 6200 Mar 8 18:21 /var/log/lighttpd/error.log
2018-03-08 08:35:42: (log.c.164) server started
2018-03-08 08:37:44: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=192.168.2.6:1024&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136
2018-03-08 08:37:44: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 137
2018-03-08 08:37:44: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137
2018-03-08 08:37:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=192.168.2.6:1024&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136
2018-03-08 08:37:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 137
2018-03-08 08:37:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137
2018-03-08 08:47:07: (server.c.1558) server stopped by UID = 0 PID = 10098
2018-03-08 08:47:08: (log.c.164) server started
2018-03-08 08:47:58: (server.c.1558) server stopped by UID = 0 PID = 10212
2018-03-08 08:47:58: (log.c.164) server started
2018-03-08 08:49:17: (server.c.1558) server stopped by UID = 0 PID = 10396
2018-03-08 08:49:19: (log.c.164) server started
2018-03-08 08:52:13: (server.c.1558) server stopped by UID = 0 PID = 10865
2018-03-08 08:52:14: (log.c.164) server started
2018-03-08 09:03:50: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:04:49: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:29:54: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:30:23: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:31:59: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:35:31: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 09:36:21: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 15:42:39: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 15:47:30: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
2018-03-08 15:49:41: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: feof() expects parameter 1 to be resource, boolean given in /var/www/html/admin/settings.php on line 495
*** [ DIAGNOSING ]: contents of /var/log
-rw-r--r-- 1 pihole pihole 12298 Mar 8 19:44 /var/log/pihole-FTL.log
[2018-03-08 09:20:19.512]
[2018-03-08 09:20:19.512] FTL branch: v3.0
[2018-03-08 09:20:19.512] FTL version: v3.0
[2018-03-08 09:20:19.512] FTL commit: a1b2fa03f8f3e3713b57a26a4e9a062fec0573d7
[2018-03-08 09:20:19.512] FTL date: 2018-02-14 12:45:47 -0800
[2018-03-08 09:20:19.512] FTL user: pihole
[2018-03-08 09:20:19.513] Notice: Found no readable FTL config file
[2018-03-08 09:20:19.513] Using default settings
[2018-03-08 09:20:19.513] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2018-03-08 09:20:19.514] SOCKET_LISTENING: only local
[2018-03-08 09:20:19.514] QUERY_DISPLAY: Show queries
[2018-03-08 09:20:19.514] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2018-03-08 09:20:19.514] MAXDBDAYS: max age for stored queries is 365 days
[2018-03-08 09:20:19.515] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-03-08 09:20:19.515] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-03-08 09:20:19.515] DBINTERVAL: saving to DB file every minute
[2018-03-08 09:20:19.515] DBFILE: Using /etc/pihole/pihole-FTL.db
[2018-03-08 09:20:19.515] MAXLOGAGE: Importing up to 24.0 hours of log data
[2018-03-08 09:20:19.515] Finished config file parsing
[2018-03-08 09:20:19.535] Found no other running pihole-FTL process
[2018-03-08 09:20:19.546] PID of FTL process: 13527
[2018-03-08 09:20:20.120] Gravity list entries: 122699
[2018-03-08 09:20:20.120] No blacklist present
[2018-03-08 09:20:20.121] No wildcard blocking list present
[2018-03-08 09:20:20.134] db_init() - Cannot open database (14): unable to open database file
*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 dnsmasq root 0 Mar 8 09:20 /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.
[β] Your debug token is: 51b1w38nuk
- 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-sanitized.log