No access to http://pi.hole/admin/

Just installed PI hole on my RaspberryPi4 buster lite

Expected Behaviour:

Should have acces to the adminpanel at http://pi.hole/admin/

Actual Behaviour:

I have only acces to the adminpanel at the following address: http://192.168.178.30/admin

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.

*** [ INITIALIZING ]
[i] 2019-11-28:21:56:48 debug log has been initialized.

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

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

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

*** [ DIAGNOSING ]: FTL version
[āœ“] FTL: v4.3.1

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

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

*** [ DIAGNOSING ]: Operating system
[āœ“] Raspbian GNU/Linux 10 (buster)

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

*** [ DIAGNOSING ]: Processor
[āœ“] armv7l

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

[āœ“] IPv6 address(es) bound to the eth0 interface:
   fe80::dba3:6ae8:3354:f058 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.178.1
   * Pinging 192.168.178.1...
[āœ“] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
*:3128 squid (IPv6)
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:3306 mysqld (IPv4)
[*:53] is in use by pihole-FTL
[*:53] is in use by pihole-FTL
[127.0.0.1:4711] is in use by pihole-FTL
[[::1]:4711] is in use by pihole-FTL
[*:80] is in use by lighttpd
*:445 smbd (IPv6)
*:139 smbd (IPv6)
*:445 smbd (IPv4)
*:139 smbd (IPv4)
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*:80] is in use by lighttpd
[*: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
[āœ“] a2yglass.com.my is 0.0.0.0 via localhost (127.0.0.1)
[āœ“] a2yglass.com.my is 0.0.0.0 via Pi-hole (192.168.178.30)
[āœ“] doubleclick.com is 172.217.22.78 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[āœ—] lighttpd daemon is failed
[āœ“] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
    BLOCKING_ENABLED=true
    PIHOLE_INTERFACE=eth0
    IPV4_ADDRESS=192.168.178.30/24
    IPV6_ADDRESS=
    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

*** [ DIAGNOSING ]: Dashboard and block page
[āœ—] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Date: Thu, 28 Nov 2019 20:56:55 GMT
Server: Apache/2.4.38 (Raspbian)
Last-Modified: Fri, 15 Nov 2019 06:24:05 GMT
ETag: "29d2-5975ca50f6859"
Accept-Ranges: bytes
Content-Length: 10706
Vary: Accept-Encoding
Content-Type: text/html

[āœ—] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Date: Thu, 28 Nov 2019 20:56:55 GMT
Server: Apache/2.4.38 (Raspbian)
Set-Cookie: PHPSESSID=n49mp0h062g5hv8flsao119mee; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


*** [ DIAGNOSING ]: Gravity list
-rw-r--r-- 1 root root 2720132 Nov 28 21:49 /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 313 Nov 28 21:48 /etc/pihole/adlists.list
   https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
   https://mirror1.malwaredomains.com/files/justdomains
   http://sysctl.org/cameleon/hosts
   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 45 Nov 28 21:49 /etc/pihole/local.list
   192.168.178.30 RasPi4
   192.168.178.30 pi.hole

-rw-r--r-- 1 root root 234 Nov 28 21:49 /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 1387 Nov 28 21:49 /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
   interface=eth0

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

-rw-r--r-- 1 root root 3499 Nov 28 21:49 /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" )
   mimetype.assign   = ( ".png"  => "image/png",
                         ".jpg"  => "image/jpeg",
                         ".jpeg" => "image/jpeg",
                         ".html" => "text/html",
                         ".css" => "text/css; charset=utf-8",
                         ".js" => "application/javascript",
                         ".json" => "application/json",
                         ".txt"  => "text/plain",
                         ".svg"  => "image/svg+xml" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   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 1703 Nov 28 21:49 /etc/cron.d/pihole
   1 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
   52 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

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

-rw-r--r-- 1 pihole pihole 13086 Nov 28 21:56 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2019-11-28 21:46:51.095 4768] Using log file /var/log/pihole-FTL.log
   [2019-11-28 21:46:51.095 4768] ########## FTL started! ##########
   [2019-11-28 21:46:51.095 4768] FTL branch: master
   [2019-11-28 21:46:51.095 4768] FTL version: v4.3.1
   [2019-11-28 21:46:51.095 4768] FTL commit: b60d63f
   [2019-11-28 21:46:51.095 4768] FTL date: 2019-05-25 21:37:26 +0200
   [2019-11-28 21:46:51.095 4768] FTL user: pihole
   [2019-11-28 21:46:51.095 4768] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2019-11-28 21:46:51.095 4768]    SOCKET_LISTENING: only local
   [2019-11-28 21:46:51.095 4768]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2019-11-28 21:46:51.095 4768]    MAXDBDAYS: max age for stored queries is 365 days
   [2019-11-28 21:46:51.095 4768]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2019-11-28 21:46:51.095 4768]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2019-11-28 21:46:51.095 4768]    DBINTERVAL: saving to DB file every minute
   [2019-11-28 21:46:51.096 4768]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2019-11-28 21:46:51.096 4768]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2019-11-28 21:46:51.096 4768]    PRIVACYLEVEL: Set to 0
   [2019-11-28 21:46:51.096 4768]    IGNORE_LOCALHOST: Show queries from localhost
   [2019-11-28 21:46:51.096 4768]    BLOCKINGMODE: Null IPs for blocked domains
   [2019-11-28 21:46:51.096 4768]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2019-11-28 21:46:51.096 4768]    DBIMPORT: Importing history from database
   [2019-11-28 21:46:51.096 4768]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-11-28 21:46:51.096 4768]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-11-28 21:46:51.096 4768]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-11-28 21:46:51.096 4768]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-11-28 21:46:51.096 4768]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-11-28 21:46:51.096 4768]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-11-28 21:46:51.096 4768]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-11-28 21:46:51.096 4768]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-11-28 21:46:51.096 4768]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-11-28 21:46:51.096 4768]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-11-28 21:46:51.096 4768]    PARSE_ARP_CACHE: Active
   [2019-11-28 21:46:51.096 4768] Finished config file parsing
   [2019-11-28 21:46:51.110 4768] SQLite3 message: cannot open file at line 38452 of [0eca3dd3d3] (14)
   [2019-11-28 21:46:51.110 4768] SQLite3 message: os_unix.c:38452: (2) open(/etc/pihole/pihole-FTL.db) -  (14)

   -----tail of pihole-FTL.log------
   [2019-11-28 21:55:41.563 740]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2019-11-28 21:55:41.563 740]    PORTFILE: Using /var/run/pihole-FTL.port
   [2019-11-28 21:55:41.563 740]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2019-11-28 21:55:41.563 740]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
   [2019-11-28 21:55:41.563 740]    BLACKLISTFILE: Using /etc/pihole/black.list
   [2019-11-28 21:55:41.563 740]    GRAVITYFILE: Using /etc/pihole/gravity.list
   [2019-11-28 21:55:41.563 740]    REGEXLISTFILE: Using /etc/pihole/regex.list
   [2019-11-28 21:55:41.563 740]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2019-11-28 21:55:41.563 740]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
   [2019-11-28 21:55:41.563 740]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2019-11-28 21:55:41.563 740]    PARSE_ARP_CACHE: Active
   [2019-11-28 21:55:41.563 740] Finished config file parsing
   [2019-11-28 21:55:41.607 740] Database version is 3
   [2019-11-28 21:55:41.607 740] Database successfully initialized
   [2019-11-28 21:55:41.609 740] New forward server: 8.8.4.4 (0/512)
   [2019-11-28 21:55:41.610 740] Imported 69 queries from the long-term database
   [2019-11-28 21:55:41.610 740]  -> Total DNS queries: 69
   [2019-11-28 21:55:41.610 740]  -> Cached DNS queries: 24
   [2019-11-28 21:55:41.610 740]  -> Forwarded DNS queries: 45
   [2019-11-28 21:55:41.610 740]  -> Exactly blocked DNS queries: 0
   [2019-11-28 21:55:41.611 740]  -> Unknown DNS queries: 0
   [2019-11-28 21:55:41.611 740]  -> Unique domains: 16
   [2019-11-28 21:55:41.611 740]  -> Unique clients: 1
   [2019-11-28 21:55:41.611 740]  -> Known forward destinations: 1
   [2019-11-28 21:55:41.611 740] Successfully accessed setupVars.conf
   [2019-11-28 21:55:41.634 743] PID of FTL process: 743
   [2019-11-28 21:55:41.635 743] Listening on port 4711 for incoming IPv4 telnet connections
   [2019-11-28 21:55:41.636 743] Listening on port 4711 for incoming IPv6 telnet connections
   [2019-11-28 21:55:41.637 743] Listening on Unix socket
   [2019-11-28 21:55:41.647 743] Received SIGHUP, reloading cache
   [2019-11-28 21:55:41.647 743] Blocking status is enabled
   [2019-11-28 21:55:41.647 743] INFO: No whitelist file found
   [2019-11-28 21:55:41.647 743] Compiled 0 Regex filters and 0 whitelisted domains in 0.3 msec (0 errors)
   [2019-11-28 21:55:42.632 743] /etc/pihole/gravity.list: parsed 116818 domains (took 975.8 ms)
   [2019-11-28 21:56:10.678 743] New forward server: 8.8.8.8 (1/512)

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 323584 Nov 28 21:55 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 108 Nov 28 21:55 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 65536 Nov 28 21:55 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 12288 Nov 28 21:55 /dev/shm/FTL-forwarded
-rw------- 1 pihole pihole 28 Nov 28 21:55 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 53248 Nov 28 21:55 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 196608 Nov 28 21:56 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Nov 28 21:55 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 Nov 28 21:55 /dev/shm/FTL-strings
-rw------- 1 proxy proxy 8 Nov 28 21:55 /dev/shm/squid-cf__metadata.shm
-rw------- 1 proxy proxy 8216 Nov 28 21:55 /dev/shm/squid-cf__queues.shm
-rw------- 1 proxy proxy 36 Nov 28 21:55 /dev/shm/squid-cf__readers.shm

*** [ DIAGNOSING ]: Locale
    LANG=C

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 27181 Nov 28 21:57 /var/log/pihole.log
   -----head of pihole.log------
   Nov 28 21:46:51 dnsmasq[4773]: started, version pi-hole-2.80 cachesize 10000
   Nov 28 21:46:51 dnsmasq[4773]: 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
   Nov 28 21:46:51 dnsmasq[4773]: using nameserver 8.8.4.4#53
   Nov 28 21:46:51 dnsmasq[4773]: using nameserver 8.8.8.8#53
   Nov 28 21:46:51 dnsmasq[4773]: read /etc/hosts - 5 addresses
   Nov 28 21:46:51 dnsmasq[4773]: failed to load names from /etc/pihole/local.list: No such file or directory
   Nov 28 21:46:51 dnsmasq[4773]: failed to load names from /etc/pihole/black.list: No such file or directory
   Nov 28 21:46:51 dnsmasq[4773]: failed to load names from /etc/pihole/gravity.list: No such file or directory
   Nov 28 21:46:51 dnsmasq[4773]: query[AAAA] raw.githubusercontent.com from 127.0.0.1
   Nov 28 21:46:51 dnsmasq[4773]: forwarded raw.githubusercontent.com to 8.8.4.4
   Nov 28 21:46:51 dnsmasq[4773]: forwarded raw.githubusercontent.com to 8.8.8.8
   Nov 28 21:46:51 dnsmasq[4773]: reply raw.githubusercontent.com is <CNAME>
   Nov 28 21:46:51 dnsmasq[4773]: reply github.map.fastly.net is NODATA-IPv6
   Nov 28 21:46:51 dnsmasq[4773]: query[A] raw.githubusercontent.com from 127.0.0.1
   Nov 28 21:46:51 dnsmasq[4773]: cached raw.githubusercontent.com is <CNAME>
   Nov 28 21:46:51 dnsmasq[4773]: forwarded raw.githubusercontent.com to 8.8.4.4
   Nov 28 21:46:51 dnsmasq[4773]: reply raw.githubusercontent.com is <CNAME>
   Nov 28 21:46:51 dnsmasq[4773]: reply github.map.fastly.net is 151.101.0.133
   Nov 28 21:46:51 dnsmasq[4773]: reply github.map.fastly.net is 151.101.64.133
   Nov 28 21:46:51 dnsmasq[4773]: reply github.map.fastly.net is 151.101.128.133


********************************************
********************************************
[āœ“] ** 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/b0bcegsc1t
***********************************
***********************************

   * 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

Apache is running and preventing lighttpd from binding to port 80.

Ah thanks. What shall I do? I can not remove Apache because I need it for MariaDB.
Does this affect the functionality of Pi-Hole?

Am I correct in assuming you are using something like phpmysqladmin to administer your MariaDB databases? If so, you could have either Apache or lighttpd listen on an alternative port. Port 8000 or 8080 are often-used alternatives.

You could try editing the /etc/lighttpd/lighttpd.conf file, changing the server.port parameter to one of the above suggestions, restart lighttp and see if that works for you. Of course, you will need to then access with the alternative port number as part of the URL.

1 Like

Or a bit more work and complicated, have lighttpd and apache2 run alongside each other but listening to two (or more) different IP's using IP aliasing:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.