Upgrade to Bullseye fails on Pi-hole reinstall Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Niaz
Posts: 25
Joined: Mon Jan 11, 2021 8:28 pm

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Niaz »

Code: Select all

root@DietPi:~# /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
2021-11-17 16:37:07: fdevent.c.1150) fdevent_load_file() /etc/lighttpd/server.pem: No such file or directory
2021-11-17 16:37:07: server.c.1244) Initialization of plugins failed. Going down.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Joulinar »

ok looks like it's trying to activate ssl. Can you share active configs

Code: Select all

ls -la /etc/lighttpd/conf-enabled/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Niaz
Posts: 25
Joined: Mon Jan 11, 2021 8:28 pm

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Niaz »

Code: Select all

root@DietPi:~# ls -la /etc/lighttpd/conf-enabled/
total 8
drwxr-xr-x 2 root root 4096 Nov 17 12:29 .
drwxr-xr-x 4 root root 4096 Nov 17 16:20 ..
lrwxrwxrwx 1 root root   33 May 20  2020 10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root   33 May 20  2020 10-rewrite.conf -> ../conf-available/10-rewrite.conf
lrwxrwxrwx 1 root root   29 Nov 17 12:29 10-ssl.conf -> ../conf-available/10-ssl.conf
lrwxrwxrwx 1 root root   37 May 20  2020 15-fastcgi-php.conf -> ../conf-available/15-fastcgi-php.conf
lrwxrwxrwx 1 root root   33 Nov 17 12:29 20-deflate.conf -> ../conf-available/20-deflate.conf
lrwxrwxrwx 1 root root   38 Sep  3  2020 50-dietpi-https.conf -> ../conf-available/50-dietpi-https.conf
lrwxrwxrwx 1 root root   47 Sep  3  2020 98-dietpi-https_redirect.conf -> ../conf-available/98-dietpi-https_redirect.conf
lrwxrwxrwx 1 root root   45 May 20  2020 99-dietpi-dav_redirect.conf -> ../conf-available/99-dietpi-dav_redirect.conf
lrwxrwxrwx 1 root root   42 May 20  2020 99-dietpi-nextcloud.conf -> ../conf-available/99-dietpi-nextcloud.conf
lrwxrwxrwx 1 root root   58 May 20  2020 99-dietpi-pihole-block_public_admin.conf -> ../conf-available/99-dietpi-pihole-block_public_admin.conf
lrwxrwxrwx 1 root root   39 May 20  2020 99-dietpi-pihole.conf -> ../conf-available/99-dietpi-pihole.conf
lrwxrwxrwx 1 root root   38 May 20  2020 99-unconfigured.conf -> ../conf-available/99-unconfigured.conf
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Joulinar »

pls do following

Code: Select all

rm /etc/lighttpd/conf-enabled/10-ssl.conf
systemctl restart lighttpd.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Niaz
Posts: 25
Joined: Mon Jan 11, 2021 8:28 pm

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Niaz »

Perfect. Lighttpd is running now.

Pi-hole is accessible, Nextcloud is throwing 403 Forbidden, tho. Guess something with ssl/certificates?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Joulinar »

not necessarily. Can you share following config file. Maybe PiHole has overwritten our config

Code: Select all

cat /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
Niaz
Posts: 25
Joined: Mon Jan 11, 2021 8:28 pm

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Niaz »

Yep, it did. Already fixed it.

Seems like everything is working now, if I find something else, will report.

This is just my Nextcloud updates testing PDC and secondary Pi-hole. Tomorrow I'll try to upgrade my another one, where my "production" is. That one is running on Apache, tho.

Thank you for all your help, I'm amazed by your knowledge.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Joulinar »

I'm amazed by your knowledge.
It's all about forum and GitHub search ;)

Yeah Apache2 might be different. Do a backup before, just in case 8)

btw: how did you fixed it? Might be interesting for other users
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Niaz
Posts: 25
Joined: Mon Jan 11, 2021 8:28 pm

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Niaz »

Nothing special. Just copied my changes to the file back.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye fails on Pi-hole reinstall

Post by Joulinar »

any specific changes done? Any custom entries? If yes you should use drop-in configuration files to avoid your personal changes get overwritten on next web server update again. By default Lighttpd will include files located at /etc/lighttpd/conf-enabled/*.conf

Code: Select all

include "/etc/lighttpd/conf-enabled/*.conf"
Some examples are available at /etc/lighttpd/conf-available/. To activate, they are simply sym linked to conf-enabled
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply