After messing around with certificates the Web GUI unceremoniously crashed and couldn’t be persuaded to come back to life. After using
sudo systemctl restart lighttpd
sudo systemctl status lighttpd
* lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-06-06 22:37:34 CEST; 20s ago
Process: 20876 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 20873 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 20876 (code=exited, status=255)
The last thing I did was to add a certificate for the Web Gui, cf_origin.cert. This errored out and the gui failed because I probably clicked the wrong thing. GTFO.
Check if the error is still present in the configuration. First run configure mode, then:
run show configuration |grep cert
description "certbottest 80"
cert-file /home/bas/cf_origin.cert <------------
[edit]
‘T is.
GUI is a service in EdgeOS or whatever it’s called so:
show service gui
cert-file /home/bas/cf_origin.cert
http-port 80
https-port 443
listen-address 192.168.2.1
older-ciphers enable
[edit]
The specific line has to be deleted. Just use the value the specific line starts with (cert-file in this case)
delete service gui cert-file
show service gui
-cert-file /home/bas/cf_origin.cert <--- note the hyphen
http-port 80
https-port 443
listen-address 192.168.2.1
older-ciphers enable
[edit]
It’s deletion confirmed:
commit
Le double check: show service gui
http-port 80
https-port 443
listen-address 192.168.2.1
older-ciphers enable
[edit]
Restart lighttpd:
sudo systemctl restart lighttpd
sudo systemctl status lighttpd
* lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; static; vendor preset: enabled)
Active: active (running) since Sun 2021-06-06 22:50:28 CEST; 30s ago
Process: 21730 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 21733 (lighttpd)
CGroup: /system.slice/lighttpd.service
|-21733 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
`-21737 python /var/www/python/gui.py
[edit]
Joy to the world, the GUI can be accessed again. Basically the whole thing revolves around grepping the thing you messed up or looking it up old-school in the configuration: run show configuration. This will narrow it down.