Nextcloud Update & my current Webserver (Lighttpd)

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

let's check configuration

Code: Select all

/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
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Code: Select all

dietpi@DietPi:~$ /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
2021-11-04 22:44:51: (mod_openssl.c.445) SSL: BIO_read_filename('/etc/letsencrypt/live/MYDOMAIN/combined.pem') failed
2021-11-04 22:44:51: (server.c.1183) Initialization of plugins failed. Going down. 
dietpi@DietPi:~$ 
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

this is pointing to issue with SSL configuration. could you share content of

Code: Select all

ls -la /etc/letsencrypt/live/MYDOMAIN/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Code: Select all

dietpi@DietPi:~$ sudo ls -la /etc/letsencrypt/live/MYDOMAIN
total 20
drwxr-xr-x 2 root root 4096 Oct  7 17:58 .
drwx------ 4 root root 4096 Sep 28  2020 ..
-rw-r--r-- 1 root root  692 Sep 28  2020 README
lrwxrwxrwx 1 root root   49 Oct  7 17:58 cert.pem -> ../../archive/MYDOMAIN/cert9.pem
lrwxrwxrwx 1 root root   50 Oct  7 17:58 chain.pem -> ../../archive/MYDOMAIN/chain9.pem
-rw-r--r-- 1 root root 5488 Nov  4 15:58 combined.pem
lrwxrwxrwx 1 root root   54 Oct  7 17:58 fullchain.pem -> ../../archive/MYDOMAIN/fullchain9.pem
lrwxrwxrwx 1 root root   52 Oct  7 17:58 privkey.pem -> ../../archive/MYDOMAIN/privkey9.pem
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

could you try running dietpi-letsencrypt again to recreate the certificate?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

I did, but nothing has changed. Certificate Duration is until third of February.

Furthermore I have noticed, that there is another Folder at /etc/letsencrypt/live.
As far as I remember it has been created during another DynDNS attempt of mine (ddns.de). Should I delete that folder?
I am using the upper one.
Attachments
2021-11-05_14-37.png
2021-11-05_14-37.png (25.48 KiB) Viewed 67 times
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

DDNS has nothing to do with certificate creation. It doesn't matter how many DDNS you have. Inside /etc/letsencrypt/live you see all your certificate created. The last one was created back in September 2020 and certificate should be expired already. You should be able to remove all related folder/files inside /etc/letsencrypt/

Once cleaned up, using dietpi-letsencrypt 1 should force recreation of your current certificate.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Just to make sure that I do no mistake.
Inside /etc/letsencrypt I shall now delete all files/folders with (sudo) rm -rf and afterwards then dietpi-letsencrypt 1?

What I dont understand is, why this is a concern now, but not with Version 20.xx before.
Attachments
2021-11-05_17-24.png
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

Issue with web server is not related to NC as this is just a web app. Basically go inside each sub folder and remove stuff not needed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Hmm.. I don´t really get it.
This is what I have planned to do:

sudo rm -rf /etc/letsencrypt/ and afterwards sudo dietpi-letsencrypt 1

Can you confirm this? Do I risk losing my SSH-Connection this way?
I am asking, because it is an Raspberry, which is not located at my house.
Post Reply