Page 1 of 1

Lighttpd stopped working

Posted: Sun May 03, 2020 6:40 pm
by Lelo
Hello.

I´m facing the problem that my webserver suddenly stopped working. Using a portscanner I found out that only
the port 22 is working. I rebooted the system, I have checked for updates, but I can´t start the webserver.

DietPi v6.28.0 on a RasPi 3
[*] 82 LLMP: lighttpd | mariadb | php
[*] 114 Nextcloud: File sync, sharing and collaboration platform

I searched with Google and I think the problem is a not starting Lighttpd:

Code: Select all

###
How can I fix this problem?


Cheers,
Lelo

Re: Lighttpd stopped working

Posted: Sun May 03, 2020 9:14 pm
by Joulinar
Hi,

many thanks for your report.

Usually there is no need to use a port scanner to check what ports are in use on your system. As well if you would know the open port, you still would not know which application is using the port ;)

A better view you will get on the system themselves. There are multiple ways to check ports in LISTEN status. The follwoing 2 commands could help on this.

Code: Select all

lsof -i -P -n | grep LISTEN 
ss -alnp | grep LISTEN
It could happen that lsof tool is not available, but can be installed quite easy

Code: Select all

apt update
apt install lsof
Back to your issue: yep lighttpd is failing to start, therefore your web server is not working. Pls can you restart web server and check error log as follow

Code: Select all

systemctl restart lighttpd.service
cat /var/log/lighttpd/error.log

Re: Lighttpd stopped working

Posted: Sun May 03, 2020 10:21 pm
by Lelo
Hi Joulinar, this is the result:

Code: Select all

root@DietPi-Raspi3:~# systemctl restart lighttpd.service
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
root@DietPi-Raspi3:~# cat /var/log/lighttpd/error.log
root@DietPi-Raspi3:~#
The filesize of /var/log/lighttpd/error.log is "0":

Code: Select all

root@DietPi-Raspi3:~# ls -l /var/log/lighttpd/error.log
-rw-r--r-- 1 www-data www-data 0 Mär  3 22:26 /var/log/lighttpd/error.log

Re: Lighttpd stopped working

Posted: Sun May 03, 2020 10:30 pm
by Joulinar
can you check

Code: Select all

journalctl -u lighttpd

Re: Lighttpd stopped working

Posted: Sun May 03, 2020 11:46 pm
by Lelo
That is the (repeating) result:

Code: Select all

###

Re: Lighttpd stopped working

Posted: Mon May 04, 2020 2:11 am
by Joulinar
first I updated your post because it contains your DDNS entry.

than it seems you have SSL configured and Lighttpd is not able to read the certificate anymore. Basically you would have 2 options. ensure the certificate file is still there could be access by Lighttpd or you remove SSL configuration from Lighttpd config file.

Code: Select all

SSL: couldn't read X509 certificate from '/etc/letsencrypt/live/<yourDDNS>/combined.pem'