I am running Nextcloud on port 80 and Pihole on 8888. I wanted to install "open office" document server for Nextcloud and followed a few tutorials on it. I think installing docker and docker-compose along with some other things caused lighttpd to stop working. I have since uninstalled docker and docker-compose. Nextcloud still loads fine, its just lighttpd won't run and thus I can't access the web interface for Pihole.
Yes I know so I edited the lighttpd.conf file and also the external.conf file and set the port to 8888. It's worked fine for weeks now until I tried to install the docker related things.
Here is some more details. If I try to restart lighttpd:
$ sudo service lighttpd restart
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
sudo systemctl status lighttpd -l
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-03-03 01:23:03 GMT; 1min 1s ago
Process: 6396 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
Mar 03 01:23:03 nextcloudpi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Mar 03 01:23:03 nextcloudpi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Mar 03 01:23:03 nextcloudpi systemd[1]: Stopped Lighttpd Daemon.
Mar 03 01:23:03 nextcloudpi systemd[1]: lighttpd.service: Start request repeated too quickly.
Mar 03 01:23:03 nextcloudpi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Mar 03 01:23:03 nextcloudpi systemd[1]: Failed to start Lighttpd Daemon.
I don't understand as I followed the below and it had worked this whole time. I ran a Pihole update today so I guess something in the new version. The second server port was in my external.conf file as instructed from the below:
###############################################################################
# FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
# #
# CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE: #
# /etc/lighttpd/external.conf #
###############################################################################
Our original lighttpd.conf file uses server.port = 80. Your lighttpd.conf file was modified in some way and either has been modified to be read-only or you haven't run a pihole -up since the file was modified.
Ah ok I get it, I had updated lighttpd.conf to 8888 and then later did the external.conf with the same. That makes sense it was conflicting then. Strange it didn't have this issue until today as I did this weeks ago. But thanks again for your help, have a great day!