Dietpi-letsencrypt issue while updating certificate

Updated to DietPi v8.20.1 (beta)

executed dietpi-letsencrypt

This command messed up config file “50-dietpi-https.conf”:
sed -i s/, “Options” => “-SessionTicket”// /etc/lighttpd/conf-available/50-dietpi-https.conf

making lighttpd unable to start and script to get stucked.

This is the part I grabbed from the console output:

[ INFO ] DietPi-LetsEncrypt | Checking for required APT packages: lighttpd-mod-openssl
[ OK ] DietPi-LetsEncrypt | sed -i s/, “Options” => “-SessionTicket”// /etc/lighttpd/conf-available/50-dietpi-https.conf
[ OK ] DietPi-LetsEncrypt | Desired setting in /etc/lighttpd/lighttpd.conf was already set: “mod_redirect”,
[ INFO ] DietPi-LetsEncrypt | Applying HTTPS domain to known web application configs
[FAILED] DietPi-LetsEncrypt | systemctl restart lighttpd
root@KAR02SRV01:/tmp/DietPi-LetsEncrypt# sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf
Error: duplicate array-key: Options. Please get rid of the duplicate entry.
2023-08-18 14:12:36: configfile.c.1970) source: /etc/lighttpd/conf-enabled/50-dietpi-https.conf line: 18 pos: 17 parser failed somehow near here: (COMMA)
2023-08-18 14:12:36: configfile.c.1970) source: /etc/lighttpd/lighttpd.conf line: 52 pos: 15 parser failed somehow near here: (EOL)

I fixed it manually by opening subshell, copying content of 50-dietpi-https.conf file from another server and modifying certificate paths, checking syntax and manually restarting lighttpd service.

Pls update to master branch. There the issue should be fixed.


I issued commands:




rebooted, but it still displays DietPi v8.20.1 (beta) when console window is opened.

 DietPi v8.20.1 (beta) : 17:00 - Fri 08/18/23

This is the output of dietpi-update:

 Phase: Checking for available DietPi update

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from:
[  OK  ] DietPi-Update | Got valid latest version: 8.20.1
[  OK  ] DietPi-Update | No update required, your DietPi installation is already up to date:
[ INFO ] DietPi-Update | Current version : v8.20.1 (branch: MichaIng/beta)
[ INFO ] DietPi-Update | Latest version  : v8.20.1 (branch: MichaIng/master)
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 bullseye InRelease
Hit:2 bullseye-updates InRelease
Hit:3 bullseye-security InRelease
Hit:4 bullseye-backports InRelease
Ign:5 xenial/mongodb-org/3.6 InRelease
Hit:6 bullseye InRelease
Hit:7 xenial/mongodb-org/3.6 Release
Hit:8 bullseye InRelease
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | No APT upgrades were found, not creating file: /run/dietpi/.apt_updates
dietpi-update -1
1 Like