01. März 2020
Lighttpd not starting
Zu Versuchszwecken habe ich auf meinem X1 Carbon ein Lighttpd installiert. Der lief auch zufriedenstellend bis er irgendwann nicht mehr lief. Die Seite war nicht mehr erreichbar. Jeder Versuch den Dienst zu starten, schlug fehl.
$ sudo systemctl start lighttpd $ sudo systemctl status lighttpd ● lighttpd.service - Lightning Fast Webserver With Light System Requirements Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2020-03-01 09:18:42 CET; 9s ago Process: 17922 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION) Main PID: 17922 (code=exited, status=255/EXCEPTION) CPU: 4ms Mär 01 09:18:42 [$hostname] systemd[1]: Started Lightning Fast Webserver With Light System Requirements. Mär 01 09:18:42 [$hostname] lighttpd[17922]: Duplicate config variable in conditional 0 global: server.modules Mär 01 09:18:42 [$hostname] lighttpd[17922]: 2020-03-01 09:18:42: (configfile.c.1309) source: /etc/lighttpd/lighttpd.conf line: 509 p> Mär 01 09:18:42 [$hostname] systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/EXCEPTION Mär 01 09:18:42 [$hostname] systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jede Suche nach einer Lösung war erfolglos. Die meisten Hinweise beziehen sich auf PiHole-Installationen. Es gab auch Bugreports und vor allem alte Beiträge, die nicht auf aktuelle Installationen anwendbar sind. Also hab ich mal auf Verdacht die /etc/lighttpd/lighttpd.conf gesucht und da war noch eine zweite lighttpd.conf.rpmnew. Also habe ich
$ sudo mv lighttpd.conf lighttpd.conf.bak $ sudo mv lighttpd.conf.rpmnew lighttpd.conf $ sudo systemctl start lighttpd $ sudo systemctl status lighttpd ● lighttpd.service - Lightning Fast Webserver With Light System Requirements Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2020-03-01 09:21:18 CET; 4s ago Main PID: 18563 (lighttpd) Tasks: 1 (limit: 18991) Memory: 1.0M CPU: 7ms CGroup: /system.slice/lighttpd.service └─18563 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf Mär 01 09:21:18 [$hostname] systemd[1]: Started Lightning Fast Webserver With Light System Requirements. Mär 01 09:21:18 [$hostname] lighttpd[18563]: 2020-03-01 09:21:18: (network.c.162) warning: please use server.use-ipv6 only for hostna> Mär 01 09:21:18 [$hostname] lighttpd[18563]: 2020-03-01 09:21:18: (server.c.1437) can't have more connections than fds/2: 1024 1024 lines 1-13/13 (END)
ausgeführt. Problem gelöst. Die Seite wird wieder angezeigt.