Admin console not working, lighttpd not starting

Expected Behaviour:

Admin Console should be reachable with "pi.hole" or the ip adress of the raspberry.

Actual Behaviour:

Admin Console is not reachable, lighttpd is not starting. OS is dietpi.

Debug Token:

https://tricorder.pi-hole.net/n97dekilhm

Any ideas? Tried some things from the other "admin console not working" threads, but nothing helps.

Well then, lets see why lighttpd is not starting.

What's the output of sudo systemctl status lighttpd ?

Hi,
thanks for your reply. The output is:

● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-10-20 16:39:04 CEST; 1 day 6h ago
  Process: 6258 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Control process exited, code=exited status=255
Okt 20 16:39:04 raspberry systemd[1]: Failed to start Lighttpd Daemon.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Unit entered failed state.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Okt 20 16:39:04 raspberry systemd[1]: Stopped Lighttpd Daemon.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Start request repeated too quickly.
Okt 20 16:39:04 raspberry systemd[1]: Failed to start Lighttpd Daemon.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Unit entered failed state.
Okt 20 16:39:04 raspberry systemd[1]: lighttpd.service: Failed with result 'exit-code'.

Can you try manually starting it with sudo systemctl start lighttpd ?

See if the sudo systemctl status lighttpd says anything different after that.

Seems to be the same:

sudo systemctl start lighttpd
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
sudo systemctl status lighttpd
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-10-21 23:13:09 CEST; 6s ago
  Process: 21948 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Control process exited, code=exited status=255
Okt 21 23:13:09 raspberry systemd[1]: Failed to start Lighttpd Daemon.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Unit entered failed state.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Okt 21 23:13:09 raspberry systemd[1]: Stopped Lighttpd Daemon.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Start request repeated too quickly.
Okt 21 23:13:09 raspberry systemd[1]: Failed to start Lighttpd Daemon.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Unit entered failed state.
Okt 21 23:13:09 raspberry systemd[1]: lighttpd.service: Failed with result 'exit-code'.

Try running a pihole -r as the lighttpd error is very generic and does not point to a specific (underlying) reason.

Tried to repair the installation with pihole -r, but it's aborting and the point where it restarts lighttpd:

  [✓] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.3.10-1+0~20191008.45+debian9~1.gbp365209
  [i] Repair option selected
  [✓] Disk space check
  [✓] Update local cache of available packages

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [✓] Checking for apt-utils
  [✓] Checking for dialog
  [✓] Checking for debconf
  [✓] Checking for dhcpcd5
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for whiptail

  [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 dnsutils
  [✓] 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 resolvconf
  [✓] Checking for libcap2
  [✓] Checking for lighttpd
  [✓] Checking for php7.3-common
  [✓] Checking for php7.3-cgi
  [✓] Checking for php7.3-sqlite3

  [✓] Enabling lighttpd service to start on reboot...

  [i] FTL Checks...

  [✓] Detected ARM-hf architecture (armv7+)
  [i] Checking for existing FTL binary...
  [i] Latest FTL Binary already installed (v4.3.1). Confirming Checksum...
  [i] Checksum correct. No need to download!
  [✓] Checking for user 'pihole'
  [✓] 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
  [✗] 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
  [i] man not installed
  [i] Testing if systemd-resolved is enabled
  [i] Systemd-resolved is not enabled
  [i] Restarting lighttpd service...

Error is the same. That's very weird. :confused:

See this:

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