Not able to restart lighttpd

Expected Behaviour:

PiHole interface should work if this works

Actual Behaviour:

Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.

Debug Token:

4v34a6f2fc!

And what is the output from sudo systemctl status lighttpd.service or sudo journalctl -xe ?

1 Like
root@linaro-alip:/etc/lighttpd# sudo systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Mon 2019-03-25 01:02:33 UTC; 2min 43
  Process: 6890 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.co

Mar 25 01:02:33 linaro-alip systemd[1]: lighttpd.service: Start request repeated
Mar 25 01:02:33 linaro-alip systemd[1]: lighttpd.service: Failed with result 'ex
Mar 25 01:02:33 linaro-alip systemd[1]: Failed to start Lighttpd Daemon.


 Support: https://www.debian.org/support

 The unit lighttpd.service has entered the 'failed' state with result 'exit-co
Mar 25 01:02:33 linaro-alip systemd[1]: Failed to start Lighttpd Daemon.
 Subject: A start job for unit lighttpd.service has failed
Defined-By: systemd
 Support: https://www.debian.org/support

 A start job for unit lighttpd.service has finished with a failure.
--
-- The job identifier is 5532 and the job result is failed.
Mar 25 01:03:24 linaro-alip sudo[6896]:   linaro : TTY=pts/0 ; PWD=/etc/lighttpd
Mar 25 01:03:24 linaro-alip sudo[6896]: pam_unix(sudo:session): session opened f
Mar 25 01:03:26 linaro-alip sudo[6896]: pam_unix(sudo:session): session closed f
Mar 25 01:03:55 linaro-alip sudo[6921]:   linaro : TTY=pts/0 ; PWD=/etc/lighttpd
Mar 25 01:03:55 linaro-alip sudo[6921]: pam_unix(sudo:session): session opened f
Mar 25 01:03:55 linaro-alip su[6922]: (to root) linaro on pts/0
Mar 25 01:03:55 linaro-alip su[6922]: pam_unix(su:session): session opened for u
Mar 25 01:05:17 linaro-alip sudo[6927]:     root : TTY=pts/0 ; PWD=/etc/lighttpd
Mar 25 01:05:17 linaro-alip sudo[6927]: pam_unix(sudo:session): session opened f
Mar 25 01:05:29 linaro-alip sudo[6927]: pam_unix(sudo:session): session closed f
Mar 25 01:05:43 linaro-alip sudo[6930]:     root : TTY=pts/0 ; PWD=/etc/lighttpd
Mar 25 01:05:43 linaro-alip sudo[6930]: pam_unix(sudo:session): session opened f
lines 2383-2405/2405 (END)
 Support: https://www.debian.org/support

 The unit lighttpd.service has entered the 'failed' state with result 'exit-code'.
Mar 25 01:02:33 linaro-alip systemd[1]: Failed to start Lighttpd Daemon.
 Subject: A start job for unit lighttpd.service has failed
 Defined-By: systemd
 Support: https://www.debian.org/support

 A start job for unit lighttpd.service has finished with a failure.

 The job identifier is 5532 and the job result is failed.
Mar 25 01:03:24 linaro-alip sudo[6896]:   linaro : TTY=pts/0 ; PWD=/etc/lighttpd ; USER=root ; COMMAND=/usr/sbin/service lighttpd stop
Mar 25 01:03:24 linaro-alip sudo[6896]: pam_unix(sudo:session): session opened for user root by linaro(uid=0)
Mar 25 01:03:26 linaro-alip sudo[6896]: pam_unix(sudo:session): session closed for user root
Mar 25 01:03:55 linaro-alip sudo[6921]:   linaro : TTY=pts/0 ; PWD=/etc/lighttpd ; USER=root ; COMMAND=/bin/su
Mar 25 01:03:55 linaro-alip sudo[6921]: pam_unix(sudo:session): session opened for user root by linaro(uid=0)
Mar 25 01:03:55 linaro-alip su[6922]: (to root) linaro on pts/0
Mar 25 01:03:55 linaro-alip su[6922]: pam_unix(su:session): session opened for user root by linaro(uid=0)
Mar 25 01:05:17 linaro-alip sudo[6927]:     root : TTY=pts/0 ; PWD=/etc/lighttpd ; USER=root ; COMMAND=/bin/systemctl status lighttpd.service
Mar 25 01:05:17 linaro-alip sudo[6927]: pam_unix(sudo:session): session opened for user root by linaro(uid=0)
Mar 25 01:05:29 linaro-alip sudo[6927]: pam_unix(sudo:session): session closed for user root
Mar 25 01:05:43 linaro-alip sudo[6930]:     root : TTY=pts/0 ; PWD=/etc/lighttpd ; USER=root ; COMMAND=/bin/journalctl -xe
Mar 25 01:05:43 linaro-alip sudo[6930]: pam_unix(sudo:session): session opened for user root by linaro(uid=0)

And the results of sudo /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf please?

/bin/bash: /usr/share/lighttpd/create-mime.assign.pl: No such file or directory
2019-03-25 01:07:52: (configfile.c.1461) command "/usr/share/lighttpd/create-mime.assign.pl" exited non-zero: 127
2019-03-25 01:07:52: (configfile.c.1289) source: /etc/lighttpd/lighttpd.conf line: 53 pos: 14 parser failed somehow near here: (EOL)

Ah, you're on Debian Buster, that's not a supported release as it hasn't been actually released yet.

can I fix it by downgrading it?

I don't believe you can downgrade Buster to Stretch, or at least do it and have a running system.

If I go to stretch will it fix it and will ubuntu core work?

Ubuntu 18 / Debian Stretch are both supported. Ubuntu Core is not a platform we have tested on.

2 Likes

ok thank you so much really appreciate your help!

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