PiHole Admin Home Page not loading

PiHole Admin Home Page is not loading. All the graphs have an animation indicating they are loading. See screenshot below of the home page:

Output of sudo systemctl -l status lighttpd is below:

pi@raspberrypi:~ $ sudo systemctl -l status lighttpd
ā— lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
   Active: active (running) since Tue 2017-05-16 19:17:08 UTC; 1 weeks 6 days ago
  Process: 492 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 735 (lighttpd)
   CGroup: /system.slice/lighttpd.service
           ā”œā”€735 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ā”œā”€756 /usr/bin/php-cgi
           ā”œā”€761 /usr/bin/php-cgi
           ā”œā”€762 /usr/bin/php-cgi
           ā”œā”€763 /usr/bin/php-cgi
           └─764 /usr/bin/php-cgi

May 30 18:24:51 raspberrypi sudo[1517]: pam_unix(sudo:session): session closed for user root
May 30 18:24:51 raspberrypi lighttpd[735]: sh: 1: pihole-FTL: not found
May 30 18:25:28 raspberrypi sudo[1545]: www-data : TTY=unknown ; PWD=/var/www/html/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web
May 30 18:25:28 raspberrypi sudo[1545]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 30 18:25:28 raspberrypi sudo[1545]: pam_unix(sudo:session): session closed for user root
May 30 18:25:28 raspberrypi lighttpd[735]: sh: 1: pihole-FTL: not found
May 30 18:38:32 raspberrypi sudo[1708]: www-data : TTY=unknown ; PWD=/var/www/html/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web
May 30 18:38:32 raspberrypi sudo[1708]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 30 18:38:33 raspberrypi sudo[1708]: pam_unix(sudo:session): session closed for user root
May 30 18:38:33 raspberrypi lighttpd[735]: sh: 1: pihole-FTL: not found
pi@raspberrypi:~ $

Some more useful information:

Pi-hole Version v3.0.1 Web Interface Version v3.0.1a FTL Version

Looks like pihole-FTL is not found.

pi@raspberrypi:~ $ pihole-FTL
-bash: pihole-FTL: command not found

Okay, this may as well be a library issue. Please provide further details about the operating system you are running and also the outputs of:

ls -lh /lib/ld*
uname -a
uname -m

Here's the output.

pi@raspberrypi:~ $ ls -lh /lib/ld*
lrwxrwxrwx 1 root root 30 Jan 15 06:18 /lib/ld-linux-armhf.so.3 -> arm-linux-gnueabihf/ld-2.19.so
lrwxrwxrwx 1 root root 24 Nov 25  2016 /lib/ld-linux.so.3 -> /lib/ld-linux-armhf.so.3
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
pi@raspberrypi:~ $ uname -m
armv7l
pi@raspberrypi:~ $

Okay, that all seems to be fine. Please run

pihole -r

and chose Repair. This should re-download the FTL binary for you.

Repair completed. The admin home page is loading now. However, this created a new issue. See below error.

pi@raspberrypi:~ $ pihole-FTL
FATAL: Opening of FTL log (/var/log/pihole-FTL.log) failed!
       Make sure it exists and is writeable by user pi

To resolve the above error, I changed the owner to "pi", but I am getting the following error now. When I rebooted my raspberry pi, the owner of /var/log/pihole-FTL.log changed back to "pihole".

pi@raspberrypi:~ $ sudo chown pi /var/log/pihole-FTL.log
pi@raspberrypi:~ $ pihole-FTL
Found pihole-FTL process with PID 758 (my PID 2130) - killing it ...
Killing failed (Operation not permitted) ... Exiting now ...

Hello,

Although I did not have the same issue, I suspect that this could not only some configuration problem but also of permissions and ownerships on some files and directories.

I my case, I have had a similar problem as seen here:

I have not received any suggestion on what to do next.

Should there be a user pi configured on the system at all or is it compulsory?

Hey @SunderRaj
so at first you can just type in sudo before you execute a command...
you can also put your login (pi) in the sudorers file so you are the same as the sudo before the command.
Although sudo is here fore a reason so that you don't execute an command as deleting important stuff...
(you can also use sudo su to be sudo)
hope that helps :raised_hands:

Okay, so let's do this in a coordinated fashion before you nuke anything on your device with messed up permissions - especially changing sudo's behavior is an enormous dangerous endeavor!

That is correct - you should not start pihole-FTL directly. Instead, you should be using

sudo service pihole-FTL start

or

sudo service pihole-FTL restart

as this will take care of the permissions and start FTL as user pihole (which has no sudo power at all so cannot destroy your system!).

This means that FTL is actually already running correctly (which is not surprising since the web frontend cannot work properly w/o FTL running on the device).

Yes, that is correct and it should be like this. I think your issue is already resolved and there was just this litte misinterpretation to be deskewed :slight_smile:

2 Likes

Hello pgattu,

I am investigating on this issue now. Just as I suspected, both of us has something similar here.

May I ask you to inform me please, if you have installed pi-Hole as root user, or did you install it from a sudo user?

@SunderRaj, I installed PiHole as root user (I think).

I think this issue is resolved. We can close it.

Hello pgattu,

I have found the problem area. Thanks for your support.