Lighttpd is not starting after update Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
eddierm
Posts: 10
Joined: Mon Sep 21, 2020 12:32 am

Lighttpd is not starting after update

Post by eddierm »

Good day!

Last week I have updated my RasPi B+ to bullseye from buster. Everything went ok apparently.

This week I upgraded several packages, and today my webserver stop working. I went to dietpi-services and MariaDB and other services were missing, so I reinstalled MariaDb.

Code: Select all

 sudo apt --reinstall install mariadb-server-10.3 

Then all services missing reappeared but lighttpd failed.

I reinstalled Lighttpd with:

Code: Select all

sudo dietpi-software reinstall 84
After a reboot lighttpd still failing.

I don't know what information I should send here but I would thank any guide to help me resolve this issue

Thanks!
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Lighttpd is not starting after update

Post by Joulinar »

Hi

Bullseye is still a BETA version of Debian and not finally released. There could be some issues still. Let's check how your system is doing. Can you post following

Code: Select all

journalctl -u lighttpd.servic
cat /var/log/lighttpd/error.log
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eddierm
Posts: 10
Joined: Mon Sep 21, 2020 12:32 am

Re: Lighttpd is not starting after update

Post by eddierm »

Hello again and thank you for your reply!

This was the result:

Code: Select all

2021-02-25 20:43:13: configfile.c.316) Warning: please add "mod_authn_file" t
o server.modules list in lighttpd.conf.  A future release of lighttpd 1.4.x w
ill not automatically load mod_authn_file and lighttpd will fail to start up
since your lighttpd.conf uses auth.backend = "htpasswd".
2021-02-25 20:43:13: configfile.c.461) Warning: "mod_compress" is DEPRECATED
and has been replaced with "mod_deflate".  A future release of lighttpd 1.4.x
 will not contain mod_compress and lighttpd may fail to start up
2021-02-25 20:43:13: plugin.c.195) dlopen() failed for: /usr/lib/lighttpd/mod
_openssl.so /usr/lib/lighttpd/mod_openssl.so: cannot open shared object file:
 No such file or directory
2021-02-25 20:43:13: server.c.1233) loading plugins finally failed
I am not sure what does it means, but I could not find the file mod_openssl.so in /usr/lib/lighttpd/
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Lighttpd is not starting after update

Post by Joulinar »

I guess you are trying to activate SSL, correct?

Usually this mod is part on the normal lighttpd apt package on Dedian Buster. Seems is not the case on Bullseye and that's what the system is complaining about ;)

Code: Select all

/usr/lib/lighttpd/mod_openssl.so: cannot open shared object file: No such file or directory
I'm not sure if this is an issue on the Bullseye package or simply not yet developed by package owner. Keep in mind, Bullseye is not officially released yet and in a BETA status. Same applies for Bullseye software packages.

However there is own lighttpd-mod-openssl package available and can be installed as follow

Code: Select all

apt install lighttpd-mod-openssl
systemctl restart lighttpd.service


@MichaIng
There is a message on Bullseye about TLS settings being deprecated

Code: Select all

Feb 26 08:41:11 DietPiVM1 lighttpd[2747]: 2021-02-26 08:41:10: mod_openssl.c.2447) SSL: ssl.use-sslv2 is deprecated and will soon be removed.  It is disabled by default.  Many modern TLS libraries no longer support SSLv2.
Feb 26 08:41:11 DietPiVM1 lighttpd[2747]: 2021-02-26 08:41:10: mod_openssl.c.2454) SSL: ssl.use-sslv3 is deprecated and will soon be removed.  It is disabled by default.  Many modern TLS libraries no longer support SSLv3.
Probably we would need to remove following 2 lines on dietpi-letsencrypt sooner or later

Code: Select all

	ssl.use-sslv2 = "disable"
	ssl.use-sslv3 = "disable"
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eddierm
Posts: 10
Joined: Mon Sep 21, 2020 12:32 am

Re: Lighttpd is not starting after update

Post by eddierm »

Hello again @Joullinar and thanks for your answer!

I installed lighttpd-mod-openssl but the error remained... then I follow your instructions in your first message:
journalctl -u lighttpd.service
cat /var/log/lighttpd/error.log
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
and I found another package was missing: lighttpd-mod-deflate ... So I Installed that package and then restarted lighty service...

Finally everything works as usual! I have my weberver running now with no errors apparently...

Thanks for your help!
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Lighttpd is not starting after update

Post by Joulinar »

Yes,

actually using /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf is quite a good way to troubleshoot/ verify configuration without starting the lighttpd service. Basically same is done by the service itself.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eddierm
Posts: 10
Joined: Mon Sep 21, 2020 12:32 am

Re: Lighttpd is not starting after update

Post by eddierm »

Joulinar wrote: Fri Feb 26, 2021 1:34 pm Yes,

actually using /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf is quite a good way to troubleshoot/ verify configuration without starting the lighttpd service. Basically same is done by the service itself.
Thanks! I have learned a lot... :D

Now I feel someone less newbie instead a totally newbie :lol:
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Lighttpd is not starting after update

Post by Joulinar »

keep in mind you are not on a beta path using Bullseye now. Might some more thinks not working as expected.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply