lighttpd not starting

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

Expected Behaviour:

lighttpd starts, I can browse to the web admin

Actual Behaviour:

Cannot browse to the web admin interface. Cannot telnet to port 80, 53 returns a response though. DNS is working as expected. I've run all updates and upgrades.

Debug Token:

qzv1m585yg

*** [ DIAGNOSING ]: Pi-hole processes [✗] lighttpd daemon is failed

Please run pihole -r and repair your installation it appears as though the webserver was not correctly installed

Thanks, still no luck. I've uploaded the latest round of logs. If this doesn't do it, I'll just do a re-install of the OS.

lhx8rzbak4

you can try a manual install using sudo apt install lighttpd then one more pihole -r

otherwise a fresh install is not a bad idea dont forget to backup you whitelist black list and adlists

What is the output of sudo service lighttpd status and sudo journalctl -u lighttpd?

    pi@pi:~ $ sudo service lighttpd status

● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Sun 2018-12-30 22:10:34 PST; 2 days
  Process: 810 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (c
  Process: 789 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.con
 Main PID: 810 (code=exited, status=255)

Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:34 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Start request repeated too quic
Dec 30 22:10:34 pi systemd[1]: Failed to start Lighttpd Daemon.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.

and:

pi@pi:~ $ sudo journalctl -u lighttpd

-- Logs begin at Thu 2016-11-03 10:16:42 PDT, end at Wed 2019-01-02 09:39:04 PST

Dec 30 22:10:30 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:31 pi lighttpd[580]: 2018-12-30 22:10:30: (server.c.1295) WARNING:
Dec 30 22:10:31 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:31 pi lighttpd[654]: 2018-12-30 22:10:31: (log.c.171) opening error
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:32 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:32 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:32 pi lighttpd[675]: 2018-12-30 22:10:32: (server.c.1295) WARNING:
Dec 30 22:10:32 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:32 pi lighttpd[698]: 2018-12-30 22:10:32: (log.c.171) opening error
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:32 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:32 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:32 pi lighttpd[737]: 2018-12-30 22:10:32: (server.c.1295) WARNING:
Dec 30 22:10:32 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:33 pi lighttpd[747]: 2018-12-30 22:10:32: (log.c.171) opening error
lines 1-23...skipping...
-- Logs begin at Thu 2016-11-03 10:16:42 PDT, end at Wed 2019-01-02 09:39:04 PST
Dec 30 22:10:30 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:31 pi lighttpd[580]: 2018-12-30 22:10:30: (server.c.1295) WARNING:
Dec 30 22:10:31 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:31 pi lighttpd[654]: 2018-12-30 22:10:31: (log.c.171) opening error
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:31 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:32 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:32 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:32 pi lighttpd[675]: 2018-12-30 22:10:32: (server.c.1295) WARNING:
Dec 30 22:10:32 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:32 pi lighttpd[698]: 2018-12-30 22:10:32: (log.c.171) opening error
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:32 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:32 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:32 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:32 pi lighttpd[737]: 2018-12-30 22:10:32: (server.c.1295) WARNING:
Dec 30 22:10:32 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:33 pi lighttpd[747]: 2018-12-30 22:10:32: (log.c.171) opening error
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:33 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:33 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:33 pi lighttpd[758]: 2018-12-30 22:10:33: (server.c.1295) WARNING:
Dec 30 22:10:33 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:33 pi lighttpd[768]: 2018-12-30 22:10:33: (log.c.171) opening error
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:33 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:33 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:33 pi systemd[1]: Starting Lighttpd Daemon...
Dec 30 22:10:34 pi lighttpd[789]: 2018-12-30 22:10:34: (server.c.1295) WARNING:
Dec 30 22:10:34 pi systemd[1]: Started Lighttpd Daemon.
Dec 30 22:10:34 pi lighttpd[810]: 2018-12-30 22:10:34: (log.c.171) opening error
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Main process exited, code=exite
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Service hold-off time over, sch
Dec 30 22:10:34 pi systemd[1]: Stopped Lighttpd Daemon.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Start request repeated too quic
Dec 30 22:10:34 pi systemd[1]: Failed to start Lighttpd Daemon.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Unit entered failed state.
Dec 30 22:10:34 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.

Some lines got cut off with the second command. Try adding the -l flag to show the full lines.

-- Logs begin at Thu 2016-11-03 10:16:42 PDT, end at Wed 2019-01-02 14:09:52 PST. --

Jan 02 09:41:22 pi systemd[1]: Starting Lighttpd Daemon...
Jan 02 09:41:22 pi lighttpd[603]: 2019-01-02 09:41:22: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
Jan 02 09:41:22 pi systemd[1]: Started Lighttpd Daemon.
Jan 02 09:41:23 pi lighttpd[675]: 2019-01-02 09:41:22: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Unit entered failed state.
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Jan 02 09:41:23 pi systemd[1]: Stopped Lighttpd Daemon.
Jan 02 09:41:23 pi systemd[1]: Starting Lighttpd Daemon...
Jan 02 09:41:23 pi lighttpd[692]: 2019-01-02 09:41:23: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
Jan 02 09:41:23 pi systemd[1]: Started Lighttpd Daemon.
Jan 02 09:41:23 pi lighttpd[702]: 2019-01-02 09:41:23: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Unit entered failed state.
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Jan 02 09:41:23 pi systemd[1]: Stopped Lighttpd Daemon.
Jan 02 09:41:23 pi systemd[1]: Starting Lighttpd Daemon...
Jan 02 09:41:23 pi lighttpd[713]: 2019-01-02 09:41:23: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
Jan 02 09:41:23 pi systemd[1]: Started Lighttpd Daemon.
Jan 02 09:41:23 pi lighttpd[723]: 2019-01-02 09:41:23: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Unit entered failed state.
Jan 02 09:41:23 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 02 09:41:24 pi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Jan 02 09:41:24 pi systemd[1]: Stopped Lighttpd Daemon.
Jan 02 09:41:24 pi systemd[1]: Starting Lighttpd Daemon...
Jan 02 09:41:24 pi lighttpd[734]: 2019-01-02 09:41:24: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
Jan 02 09:41:24 pi systemd[1]: Started Lighttpd Daemon.
Jan 02 09:41:24 pi lighttpd[745]: 2019-01-02 09:41:24: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
Jan 02 09:41:24 pi systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Jan 02 09:41:24 pi systemd[1]: lighttpd.service: Unit entered failed state.
Jan 02 09:41:24 pi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 02 09:41:24 pi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Jan 02 09:41:24 pi systemd[1]: Stopped Lighttpd Daemon.
Jan 02 09:41:24 pi systemd[1]: Starting Lighttpd Daemon...
Jan 02 09:41:24 pi lighttpd[761]: 2019-01-02 09:41:24: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
Jan 02 09:41:24 pi systemd[1]: Started Lighttpd Daemon.
Jan 02 09:41:25 pi lighttpd[771]: 2019-01-02 09:41:24: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
@

Sorry for the delay, the error is here:

Jan 02 09:41:23 pi lighttpd[675]: 2019-01-02 09:41:22: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory

You will need to make sure that directory exists and can be accessed by the www-data user.

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