Please follow the below template, it will help us to help you!
Running Pihole with Unbound, OpenSSH, OpenVPN, Wazuh Agent, No other non-standard elements.
Expected Behaviour:
I had Pi-hole running nicely on a raspberrypi with private wildcard SSL certs installed. I would like to serve sites with my FQDN on VPN network only, tun0.
Actual Behaviour:
Tried moving the install to a Digitalocean instance, but I get errors. I set my /etc/lighttpd/external.conf exactly as it was on the raspberrypi, but when restart pihole with a "server lighttpd restart" command I get the following:
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xeu lighttpd.service" for details.
Chasing those debug messages gives the following:
systemctl status lighttpd.service:
× lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-10-16 19:35:08 UTC; 13s ago
Process: 11358 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
CPU: 17ms
Oct 16 19:35:08 pihole systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
Oct 16 19:35:08 pihole systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Oct 16 19:35:08 pihole systemd[1]: Failed to start Lighttpd Daemon.
Oct 16 19:35:08 pihole systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Oct 16 19:35:08 pihole systemd[1]: Stopped Lighttpd Daemon.
Oct 16 19:35:08 pihole systemd[1]: lighttpd.service: Start request repeated too quickly.
Oct 16 19:35:08 pihole systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Oct 16 19:35:08 pihole systemd[1]: Failed to start Lighttpd Daemon.
journalctl -xeu lighttpd.service:
░░ The process' exit code is 'exited' and its exit status is 255.
There are a bunch of restart messages, I'll post the whole thing if needed
Syslog has this seemingly related line:
pihole Process: 43529 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
OS: Ubuntu 22.04.1 LTS x86_64
Cloud Server with : 1 Intel vCPU, 1 GB memory
PiHole v5.12.2
lighttpd v14.63(ssl).
My external.conf was running with a reference to the ca.crt only on the pi, rather than the full chain pem. I'm just not sure how to put the full chain in order if that's the problem