Web Interface not reachable, pi-hole itself is working

Sorry for coming up with this topic again.
My Pi stops working every 2 week (nearly). Since yesterday after restarting, I cannot connect to the Web Interface.
I've scanned all existing discussion about the problem but actually no of them could provide me a solution.

I've update the system over night, but without any effect.
Problem is, the process lighttpd is not running.
sysctl says:

pi@Pi-Hole:~ $ sudo service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Sat 2020-12-05 08:15:26 CET; 14min ago
  Process: 581 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=killed, signa

Dez 05 08:15:26 Pi-Hole systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling re
Dez 05 08:15:26 Pi-Hole systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Dez 05 08:15:26 Pi-Hole systemd[1]: Stopped Lighttpd Daemon.
Dez 05 08:15:26 Pi-Hole systemd[1]: lighttpd.service: Start request repeated too quickly.
Dez 05 08:15:26 Pi-Hole systemd[1]: lighttpd.service: Failed with result 'signal'.
Dez 05 08:15:26 Pi-Hole systemd[1]: Failed to start Lighttpd Daemon.

and journalctl says:

pi@Pi-Hole:~ $ sudo journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Automatic restarting of the unit lighttpd.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Dez 05 08:30:58 Pi-Hole systemd[1]: Stopped Lighttpd Daemon.
-- Subject: A stop job for unit lighttpd.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A stop job for unit lighttpd.service has finished.
-- 
-- The job identifier is 1733 and the job result is done.
Dez 05 08:30:58 Pi-Hole systemd[1]: lighttpd.service: Start request repeated too quickly.
Dez 05 08:30:58 Pi-Hole systemd[1]: lighttpd.service: Failed with result 'signal'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit lighttpd.service has entered the 'failed' state with result 'signal'.
Dez 05 08:30:58 Pi-Hole systemd[1]: Failed to start Lighttpd Daemon.
-- Subject: A start job for unit lighttpd.service has failed
-- Defined-By: systemd
pi@Pi-Hole:~ $

sudo cat /sys/firmware/devicetree/base/model says:

Raspberry Pi 3 Model B Plus Rev 1.3

and sudo cat /etc/os-release says:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
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"

finally pi@Pi-Hole:~ $ pihole -up says:

  [i] Checking for updates...
  [i] Pi-hole Core:	up to date
  [i] Web Interface:	up to date
  [i] FTL:		up to date

  [✓] Everything is up to date!

Debug token: dff923mu2n

Does anyone have an idea, Any help is apprechiated

Anything stick out in /var/log/lighttpd/error.log?

There seems to be a problem with php in your configuration (which is needed for Pi-hole's web interface):

*** [ DIAGNOSING ]: php version
[✗] php version could not be detected.

Run

pihole -r

and try to Repair your installation.

Thanks for the hint, unfortunately it down not change anything. I performed pinhole -r several times, no changes. I reinstalled pinhole, no changes. I deinstalled php and installed it again, now the php is working proper again but still the web server is not.

I run pinhole -d again, token: wb13n0vjvt is available and shows PHP7.3 is available.

Would it be worth to reinstall lighted again?
Would nginx an alternative to try out?

Thanks for further help.

Yes.
Its not a big thing if nothing else depends on lighttpd.
Purge it with below:

sudo apt purge lighttpd

And post output for above one here if it says it didnt remove files or folders for some reason.
Those files not being removed could cause issues if proceed.

To have it reinstalled and configured, run below one and select repair:

pihole -r

Thats the output:

sudo apt purge lighttpd
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  libfam0
Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
Die folgenden Pakete werden ENTFERNT:
  lighttpd*
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 29 nicht aktualisiert.
Nach dieser Operation werden 950 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] J
(Lese Datenbank ... 127291 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von lighttpd (1.4.53-4+deb10u1) ...
Trigger für man-db (2.8.5-2) werden verarbeitet ...
(Lese Datenbank ... 127229 Dateien und Verzeichnisse sind derzeit installiert.)
Löschen der Konfigurationsdateien von lighttpd (1.4.53-4+deb10u1) ...
removing dangling symlink /etc/lighttpd/conf-enabled/10-fastcgi.conf ...
removing dangling symlink /etc/lighttpd/conf-enabled/15-fastcgi-php.conf ...
dpkg: Warnung: Während Entfernens von lighttpd ist Verzeichnis »/var/www/html« nicht leer, wird daher nicht gelöscht
dpkg: Warnung: Während Entfernens von lighttpd ist Verzeichnis »/etc/lighttpd/conf-enabled« nicht leer, wird daher nicht gelöscht
Trigger für systemd (241-7~deb10u4+rpi1) werden verarbeitet ...

pi@Pi-Hole:~ $

Now I am going to conduct "pihole -r"

Whats in it ?

LC_ALL=C sudo ls -al /etc/lighttpd/conf-enabled

Output for pihole -r

pihole -r

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.3.19-1~deb10u1
  [i] Repair option selected

  [✓] Checking apt-get for upgraded packages... 40 updates available
  [i] It is recommended to update your OS after installing the Pi-hole!

  [i] Installer Dependency checks...
  [✓] Checking for dhcpcd5
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for whiptail
  [✓] Checking for dnsutils

  [✓] Supported OS detected
  [i] SELinux not detected
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [i] Main Dependency checks...
  [✓] Checking for cron
  [✓] Checking for curl
  [✓] Checking for iputils-ping
  [✓] Checking for lsof
  [✓] Checking for netcat
  [✓] Checking for psmisc
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for wget
  [✓] Checking for idn2
  [✓] Checking for sqlite3
  [✓] Checking for libcap2-bin
  [✓] Checking for dns-root-data
  [✓] Checking for libcap2
  [i] Checking for lighttpd (will be installed)
  [✓] Checking for php7.3-common
  [✓] Checking for php7.3-cgi
  [✓] Checking for php7.3-sqlite3
  [✓] Checking for php7.3-xml
  [✓] Checking for php7.3-json
  [✓] Checking for php7.3-intl
  [i] Processing apt-get install(s) for: lighttpd, please wait...
-------------------------------------------------------------------------------
Vormals nicht ausgewähltes Paket lighttpd wird gewählt.
(Lese Datenbank ... 127195 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../lighttpd_1.4.53-4+deb10u1_armhf.deb ...
Entpacken von lighttpd (1.4.53-4+deb10u1) ...
lighttpd (1.4.53-4+deb10u1) wird eingerichtet ...
Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service → /lib/systemd/system/lighttpd.service.
Trigger für man-db (2.8.5-2) werden verarbeitet ...
Trigger für systemd (241-7~deb10u4+rpi1) werden verarbeitet ...
-------------------------------------------------------------------------------
  [✓] Enabling lighttpd service to start on reboot...
  [✓] Checking for user 'pihole'

  [i] FTL Checks...

  [✓] Detected ARMv7 processor (with hard-float support)
  [i] Checking for existing FTL binary...
  [i] Latest FTL Binary already installed (v5.3.2). Confirming Checksum...
  [i] Checksum correct. No need to download!
  [✓] Installing scripts from /etc/.pihole

  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

  [i] Installing blocking page...
  [✓] Creating directory for blocking page, and copying files
  [i] Backing up index.lighttpd.html
      No default index.lighttpd.html file found... not backing up

  [✓] Installing sudoer file

  [✓] Installing latest Cron script

  [✓] Installing latest logrotate script
  [i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old
  [✓] man pages installed and database updated
  [i] Testing if systemd-resolved is enabled
  [i] Systemd-resolved is not enabled
  [✓] Restarting lighttpd service...
  [✓] Enabling lighttpd service to start on reboot...
  [i] Restarting services...
  [✓] Enabling pihole-FTL service to start on reboot...
  [✓] Restarting pihole-FTL service...
  [✓] Deleting existing list cache
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [✓] Preparing new gravity database
  [i] Using libz compression

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: Retrieval successful
  [i] Received 58230 domains

  [i] Target: https://mirror1.malwaredomains.com/files/justdomains
  [✓] Status: Retrieval successful
  [i] Received 26854 domains

  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [i] Number of gravity domains: 85084 (85053 unique domains)
  [i] Number of exact blacklisted domains: 3
  [i] Number of regex blacklist filters: 1
  [i] Number of exact whitelisted domains: 1
  [i] Number of regex whitelist filters: 0
  [✓] Flushing DNS cache
  [✓] Cleaning up stray matter

  [✓] DNS service is listening
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled

  [i] The install log is located at: /etc/pihole/install.log
Update Complete! 

  Current Pi-hole version is v5.2.1.
  Current AdminLTE version is v5.2.1.
  Current FTL version is v5.3.2.
pi@Pi-Hole:~ $

No idea.
Let me check

Hehehehehe :smiley:

Thats the result of
sudo ls -al /etc/lighttpd/conf-enabled
insgesamt 8
drwxr-xr-x 2 root root 4096 Dez 7 18:55 .
drwxr-xr-x 4 root root 4096 Dez 7 18:55 ..
lrwxrwxrwx 1 root root 33 Dez 7 18:55 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root 37 Dez 7 18:55 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
lrwxrwxrwx 1 root root 42 Aug 20 12:38 90-javascript-alias.conf -> ../conf-available/90-javascript-alias.conf

:wave: :grinning: :grinning:

Now it works. After purging lighttpd and pihole -r the web interface is up and running.

Thanks so much for your help. Really appreciated.
:+1:

1 Like

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