Hi.
I installed a pihole some days ago for the first time, and everything went fine directly from the start. No problems, blocking works, everything was good.
But then I updated the raspberry from the actual repository deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
.
The system wanted to upgrade the linux-libc-dev
, raspberrypi-kernel
and raspberrypi-bootloader
.
After installation and reboot I updated the pihole with -up
, and the system showed me that everything was ok.
But it wasn't. The lighttpd will not start since then. I got multiple errors, which I could follow to:
Mar 24 19:49:30 pihole lighttpd[7703]: Duplicate config variable in conditional 2 global / $HTTP["url"] =~ "^/admin/": server.document-root
Mar 24 19:49:30 pihole lighttpd[7703]: 2023-03-24 19:49:28: configfile.c.1970) source: /etc/lighttpd/conf.d/pihole-admin.conf line: 19 pos: 32 parser failed somehow near here: (EOL)
Mar 24 19:49:30 pihole lighttpd[7703]: 2023-03-24 19:49:28: configfile.c.1970) source: /etc/lighttpd/lighttpd.conf line: 56 pos: 1 parser failed somehow near here: (EOL)
Mar 24 19:49:30 pihole systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
I checked the pihole-admin.conf and the lighttpd.conf. They look like they should be. The pihole-admin.conf's line 19, pos 32 is directly behind "body" in server.stream-response-body = 1
:
server.errorlog := "/var/log/lighttpd/error-pihole.log"
$HTTP["url"] =~ "^/admin/" {
server.document-root = "/var/www/html"
server.stream-response-body = 1
accesslog.filename = "/var/log/lighttpd/access-pihole.log"
accesslog.format = "%{%s}t|%h|%V|%r|%s|%b"
It looks like lighttpd cannot work with the actual pihole-admin.conf. Or did I miss something?
Regards,
Lalle