Web page admin unable to load


#1

Please follow the below template, it will help us to help you!

Expected Behaviour:

Show the admin web page with statistics. 192.168.1.25/admin

Actual Behaviour:

the webpage is not loaded. The pi hole seems to work but the admin page is not shown. I have tried to install it several times but without luck. I am running ubuntu on a SD card connected to my minix x7. I have attached below the full report of the debug file. I hope someone can tell me how to resolve. I have searched the forum and although I found similar issues, the suggest solutions did not work for me. Thanks.

Debug Token:

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.

e[95m*** [ INITIALIZING ]e[0m
[i] 2018-01-26:06:30:31 debug log has been initiated.

e[95m*** [ INITIALIZING ]e[0m Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf…

e[95m*** [ DIAGNOSING ]:e[0m Core version
[i] Core: e[33mv3.2.1e[0m (e[96mhttps://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249e[0m)
[i] Branch: e[32mmastere[0m
[i] Commit: v3.2.1-0-ge602008

e[95m*** [ DIAGNOSING ]:e[0m Web version
[i] Web: e[33mv3.2.1e[0m (e[96mhttps://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249e[0m)
[i] Branch: e[32mmastere[0m
[i] Commit: v3.2.1-0-g31dddd8

e[95m*** [ DIAGNOSING ]:e[0m FTL version
[e[32m✓e[0m] FTL: e[32mv2.13.2e[0m

e[95m*** [ DIAGNOSING ]:e[0m dnsmasq version
[i] 2.59

e[95m*** [ DIAGNOSING ]:e[0m lighttpd version
[i] 1.4.28

e[95m*** [ DIAGNOSING ]:e[0m php version
[i] line

e[95m*** [ DIAGNOSING ]:e[0m Operating system
[e[32m✓e[0m] e[32mUbuntu precise (12.04.5 LTS)e[0m

e[95m*** [ DIAGNOSING ]:e[0m SELinux
[i] e[32mSELinux not detectede[0m

e[95m*** [ DIAGNOSING ]:e[0m Processor

e[95m*** [ DIAGNOSING ]:e[0m Networking
[e[32m✓e[0m] IPv4 address(es) bound to the eth0 interface:
e[32m192.168.1.25/24e[0m matches the IP found in /etc/pihole/setupVars.conf

[e[32m✓e[0m] IPv6 address(es) bound to the eth0 interface:
e[91mfd7c:48c7:237:0:ed4a:7b19:75b9:7297e[0m does not match the IP found in /etc/pihole/setupVars.conf (e[96mhttps://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127e[0m)
e[32mfd7c:48c7:237:0:1200:ff:fe31:a428e[0m matches the IP found in /etc/pihole/setupVars.conf
e[91mfe80::1200:ff:fe31:a428e[0m does not match the IP found in /etc/pihole/setupVars.conf (e[96mhttps://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127e[0m)

^ 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
192.168.1.1

  • Pinging 192.168.1.1
    192.168.1.1…
    [e[91m✗e[0m] e[91mGateway did not respond.e[0m (e[96mhttps://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546e[0m)

e[95m*** [ DIAGNOSING ]:e[0m Ports in use
[22] is in use by sshd
[e[32m53e[0m] is in use by e[32mdnsmasqe[0m
[] is in use by
[e[32m4711e[0m] is in use by e[32mpihole-FTLe[0m
[631] is in use by cupsd
[9000] is in use by php5-fpm

e[95m*** [ DIAGNOSING ]:e[0m Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[e[32m✓e[0m] zonaseguraviatbcp.com e[32mis 192.168.1.25e[0m via e[96mlocalhoste[0m (127.0.0.1)
[e[32m✓e[0m] zonaseguraviatbcp.com e[32mis 192.168.1.25e[0m via e[96mPi-holee[0m (192.168.1.25)
[e[32m✓e[0m] doubleclick.com e[32mis 216.58.212.142e[0m via e[96ma remote, public DNS servere[0m (8.8.8.8)

e[95m*** [ DIAGNOSING ]:e[0m Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[e[32m✓e[0m] ad.doubleclick.net.67300.9336.302br.net e[32mis fd7c:48c7:237:0:1200:ff:fe31:a428e[0m via e[96mlocalhoste[0m (::1)
[e[32m✓e[0m] ad.doubleclick.net.67300.9336.302br.net e[32mis fd7c:48c7:237:0:1200:ff:fe31:a428e[0m via e[96mPi-holee[0m (fd7c:48c7:237:0:1200:ff:fe31:a428)
[e[91m✗e[0m] e[91mFailed to resolvee[0m doubleclick.com via e[91ma remote, public DNS servere[0m (2001:4860:4860::8888)

e[95m*** [ DIAGNOSING ]:e[0m Pi-hole processes
[e[91m✗e[0m] e[91mdnsmasqe[0m daemon is e[91me[0m
[e[91m✗e[0m] e[91mlighttpde[0m daemon is e[91me[0m
[e[91m✗e[0m] e[91mpihole-FTLe[0m daemon is e[91me[0m

e[95m*** [ DIAGNOSING ]:e[0m Setup variables
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.25/24
IPV6_ADDRESS=fd7c:48c7:237:0:1200:ff:fe31:a428
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB=true
LIGHTTPD_ENABLED=0

e[95m*** [ DIAGNOSING ]:e[0m Dashboard and block page
[e[91m✗e[0m] e[91mX-Header does not match or could not be retrieved.e[0m
e[91me[0m
[e[91m✗e[0m] e[91mX-Header does not match or could not be retrieved.e[0m
e[91me[0m

e[95m*** [ DIAGNOSING ]:e[0m Gravity list
e[32m-rw-r–r-- 1 root root 10168784 Jan 26 06:27 /etc/pihole/gravity.liste[0m
e[96m-----head of gravity.list------e[0m
192.168.1.25 0.0.0.0
fd7c:48c7:237:0:1200:ff:fe31:a428 0.0.0.0
192.168.1.25 0.r.msn.com
fd7c:48c7:237:0:1200:ff:fe31:a428 0.r.msn.com

e[96m-----tail of gravity.list------e[0m
192.168.1.25 zzz.clickbank.net
fd7c:48c7:237:0:1200:ff:fe31:a428 zzz.clickbank.net
192.168.1.25 ɢoogle.com
fd7c:48c7:237:0:1200:ff:fe31:a428 ɢoogle.com

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/etc/piholee[0m

e[32m-rw-r–r-- 1 root root 633 Jan 26 06:26 /etc/pihole/adlists.defaulte[0m
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

e[32m-rw-r–r-- 1 root root 633 Jan 26 06:26 /etc/pihole/adlists.liste[0m
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

e[32m-rw-r–r-- 1 root root 134 Jan 26 06:27 /etc/pihole/local.liste[0m
192.168.1.25 LINUXIUMONE
fd7c:48c7:237:0:1200:ff:fe31:a428 LINUXIUMONE
192.168.1.25 pi.hole
fd7c:48c7:237:0:1200:ff:fe31:a428 pi.hole

e[32m-rw-r–r-- 1 root root 234 Jan 26 06:26 /etc/pihole/logrotatee[0m
/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
}

e[32m-rw-r–r-- 1 root root 117 Jan 26 06:27 /etc/pihole/whitelist.txte[0m
raw.githubusercontent.com
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/etc/dnsmasq.de[0m

e[32m-rw-r–r-- 1 root root 1502 Jan 26 06:26 /etc/dnsmasq.d/01-pihole.confe[0m
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
interface=eth0

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/etc/lighttpde[0m

e[32m-rw-r–r-- 1 root root 3027 Jan 26 06:26 /etc/lighttpd/lighttpd.confe[0m
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”

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/etc/cron.de[0m

e[32m-rw-r–r-- 1 root root 1630 Jan 26 06:26 /etc/cron.d/piholee[0m
39 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
11 18 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/var/log/lighttpde[0m

e[32m-rw-r–r-- 1 www-data www-data 6184 Jan 26 06:22 /var/log/lighttpd/error.loge[0m
2018-01-25 10:12:03: (log.c.166) server started
2018-01-25 10:13:00: (server.c.1396) [note] graceful shutdown started
2018-01-25 10:13:00: (log.c.166) server started
2018-01-25 10:13:00: (server.c.1512) server stopped by UID = 0 PID = 4224
2018-01-25 10:19:01: (server.c.1512) server stopped by UID = 0 PID = 4277
2018-01-25 10:19:02: (log.c.166) server started
2018-01-25 10:45:39: (server.c.1512) server stopped by UID = 0 PID = 4505
2018-01-25 11:01:17: (log.c.166) server started
2018-01-25 11:01:27: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 11:01:40: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 11:02:15: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/pihole/index.php on line 25

2018-01-25 11:02:15: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 11:02:15: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/pihole/index.php on line 25

2018-01-25 11:02:15: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 11:02:28: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 11:02:37: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

2018-01-25 17:43:26: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/admin/scripts/pi-hole/php/auth.php on line 26

e[95m*** [ DIAGNOSING ]:e[0m contents of e[96m/var/loge[0m

e[32m-rw-r–r-- 1 pihole pihole 4229 Jan 26 06:30 /var/log/pihole-FTL.loge[0m
[2018-01-26 06:26:53.969]
[2018-01-26 06:26:53.969] FTL branch: v2.13.2
[2018-01-26 06:26:53.969] FTL version: v2.13.2
[2018-01-26 06:26:53.970] FTL commit: 1de2b99c8a812d4d2dbe6b1e4644e20a4b14bb1e
[2018-01-26 06:26:53.970] FTL date: 2018-01-07 17:34:24 -0800
[2018-01-26 06:26:53.970] FTL user: pihole
[2018-01-26 06:26:53.971] Notice: Found no readable FTL config file
[2018-01-26 06:26:53.971] Using default settings
[2018-01-26 06:26:53.971] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2018-01-26 06:26:53.971] SOCKET_LISTENING: only local
[2018-01-26 06:26:53.972] TIMEFRAME: Rolling 24h
[2018-01-26 06:26:53.972] QUERY_DISPLAY: Show queries
[2018-01-26 06:26:53.972] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2018-01-26 06:26:53.972] MAXDBDAYS: max age for stored queries is 365 days
[2018-01-26 06:26:53.973] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-01-26 06:26:53.973] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-01-26 06:26:53.973] DBINTERVAL: saving to DB file every minute
[2018-01-26 06:26:53.973] DBFILE: Using /etc/pihole/pihole-FTL.db
[2018-01-26 06:26:53.974] Finished config file parsing
[2018-01-26 06:26:54.000] Found no other running pihole-FTL process
[2018-01-26 06:26:54.002] PID of FTL process: 2118
[2018-01-26 06:26:54.002] Error: failed to read /etc/pihole/list.preEventHorizon
[2018-01-26 06:26:54.002] Gravity list entries: -1
[2018-01-26 06:26:54.002] No blacklist present
[2018-01-26 06:26:54.003] No wildcard blocking list present

e[95m*** [ DIAGNOSING ]:e[0m Pi-hole log
e[32m-rw-r–r-- 1 dnsmasq root 239498 Jan 26 06:30 /var/log/pihole.loge[0m
e[96m-----head of pihole.log------e[0m
Jan 26 04:48:21 dnsmasq[588]: started, version 2.59 cachesize 10000
Jan 26 04:48:21 dnsmasq[588]: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP conntrack IDN
Jan 26 04:48:21 dnsmasq[588]: warning: interface sit0 does not currently exist
Jan 26 04:48:21 dnsmasq[588]: warning: ignoring resolv-file flag because no-resolv is set
Jan 26 04:48:21 dnsmasq[588]: using nameserver 8.8.4.4#53
Jan 26 04:48:21 dnsmasq[588]: using nameserver 8.8.8.8#53
Jan 26 04:48:21 dnsmasq[588]: read /etc/hosts - 7 addresses
Jan 26 04:48:21 dnsmasq[588]: failed to load names from /etc/pihole/local.list: No such file or directory
Jan 26 04:48:21 dnsmasq[588]: failed to load names from /etc/pihole/black.list: No such file or directory
Jan 26 04:48:21 dnsmasq[588]: failed to load names from /etc/pihole/gravity.list: No such file or directory
Jan 26 04:48:21 dnsmasq[588]: query[SOA] local from 127.0.0.1
Jan 26 04:48:21 dnsmasq[588]: query[SOA] local from 127.0.0.1
Jan 26 04:48:22 dnsmasq[588]: query[AAAA] daisy.ubuntu.com from 127.0.0.1
Jan 26 04:48:22 dnsmasq[588]: forwarded daisy.ubuntu.com to 8.8.8.8
Jan 26 04:48:22 dnsmasq[588]: forwarded daisy.ubuntu.com to 8.8.4.4
Jan 26 04:48:27 dnsmasq[588]: query[AAAA] daisy.ubuntu.com from 127.0.0.1
Jan 26 04:48:27 dnsmasq[588]: query[AAAA] daisy.ubuntu.com from 127.0.0.1
Jan 26 04:48:27 dnsmasq[588]: query[AAAA] daisy.ubuntu.com from 127.0.0.1
Jan 26 04:48:27 dnsmasq[588]: query[A] daisy.ubuntu.com from 127.0.0.1
Jan 26 04:48:27 dnsmasq[588]: query[A] daisy.ubuntu.com from 127.0.0.1


#2

Ubuntu precise (12.04.5 LTS)

Ubuntu 12.04 is EOL and unsupported:
https://www.ubuntu.com/info/release-end-of-life