Details:
- Date | Thu Apr 27 20:24:19 BST 2023
- DietPi version | v8.16.2 (MichaIng/master)
- Image creator |
- Pre-image |
- Hardware | RPi 3 Model B (aarch64) (ID=3)
- Kernel version |
Linux tubzpi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
- Distro | bullseye (ID=6,RASPBIAN=0)
- Command |
systemctl start lighttpd
- Exit code | 1
- Software title | DietPi-LetsEncrypt
Steps to reproduce:
- Try to delete SSL certificate because you’ve messed something up, using certbot delete.
- doesn’t work so delete the location manually
- think it would remake the directory, (It did)
- run certbot certonly to get a new certificate,
- for some reason it says I’ve made more than five in the last hundred hours.
- check /etc/letsencrypt/live/
- see there’s another called tubzpi.xyz-0001
- confused.
- systemctl start lighttpd
-
Job for lighttpd.service failed because the control process exited with error code. See systemctl status lighttpd.service and journalctl -xe for details.
-
lighttpd -tt -f /etc/lighttpd/lighttpd.conf
2023-04-27 20:24:57: fdevent.c.1150) fdevent_load_file() /etc/letsencrypt/live/tubzpi.xyz/fullchain.pem: No such file or directory
2023-04-27 20:24:57: server.c.1244) Initialization of plugins failed. Going down. - check that directory
-
/etc/letsencrypt/live/tubzpi.xyz# ls
README cert.pem chain.pem fullchain.pem privkey.pem - nano into any of them and they all say new file for some reason, like they don’t exist.
- start to panic.
Expected behaviour:
-Well what should’ve happened was the server was meant to boot, and the website work, but it didn’t, and I’m pretty sure it was something to do with the https code in the config file being wrong, however I checked syntax and it said OK. So I need help to fix the problem of this not working, and how to get https.
And I delete the -0001 file, there’s still an hour left until I can get a new certificate, but I’m afraid that if I try to make a new one, it will make me wait another few days. I didn’t know there was the dietpi-letsencrypt command otherwise I wold not have messed with the config file and all that in the first place, but I did not see it, and the internet didn’t tell me, and I didn’t look properly as well. Any help appreciated.
Here is output from both journalctl -xe, and systemctl status lighttpd.service
I’m not sure how to paste everything from journalctl -xe as it doesn’t show all on my screen, and scrolling up is not useful.
systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/lighttpd.service.d
└─dietpi.conf
Active: failed (Result: exit-code) since Thu 2023-04-27 20:46:02 BST; 1min 42s ago
Process: 18682 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
CPU: 894ms
Apr 27 20:46:02 tubzpi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Apr 27 20:46:02 tubzpi systemd[1]: Stopped Lighttpd Daemon.
Apr 27 20:46:02 tubzpi systemd[1]: lighttpd.service: Start request repeated too quickly.
Apr 27 20:46:02 tubzpi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
Apr 27 20:46:02 tubzpi systemd[1]: Failed to start Lighttpd Daemon.
Additional logs:
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.