root@DNS-Stack:~# head -n 10 /etc/lighttpd/lighttpd.conf
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Lighttpd config for Pi-hole
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
###############################################################################
###############################################################################
# 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 #
###############################################################################
I've just rolled back to the snapshot before the update and this is the info you requested:
root@DNS-Stack:~# pihole version
Pi-hole version is v5.14.2 (Latest: v5.15.4)
AdminLTE version is v5.18 (Latest: v5.18.4)
FTL version is v5.20 (Latest: v5.21)
Thanks, the check for kernel runs uname -r to get the currently running kernel and then checks to see if /lib/modules/ has a subdirectory that matches the running kernel version. If they are different then the currently running kernel is missing libraries. That often means the libraries were updated via apt yet the kernel has not restarted to match the libraries.
Can you do uname -r and then check if there is the proper /lib/modules/(uname -r)?
In the meantime, I've rolled back the core update that I think is making this an issue.
The /etc/lighttpd/lighttpd.conf file needs to be changed, will update the detection function to make sure that people that update from a version prior to v5.15 will make it to where they need to be.
There is no /lib/modules, but I think it is normal being an LXC container running on proxmox, which is effectively running on the Proxmox VE kernel. Iโve just shutdown everything, updated packages on Proxmox VE, rebooted Proxmox VE and restarted the LXC container with pi-hole: nothing changed, there is still the message about the kernel (which is fine if you say that it is checking /lib/modules/$(uname -r)) and then the install fails as before. So, I think that the message about the kernel has always been there but Iโve never noticed it
Ah yeah, that would explain it. The kernel check was a very early addition when everything was primarily Raspberry Pi OS/Raspbian and was a way to tell users that a reboot would be a smart thing to do. Not sure it does anything useful anymore. I think Raspberry Pi OS even does in-place kernel upgrades now anyways.
sudo systemctl status lighttpd.service
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Start request repeated too quickly.
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 10 20:43:37 grimawormtongue systemd[1]: Failed to start Lighttpd Daemon.
sudo journalctl -u lighttpd
10 20:43:37 grimawormtongue lighttpd[16431]: Duplicate config variable in conditional 0 global: accesslog.filename
Feb 10 20:43:37 grimawormtongue lighttpd[16431]: 2023-02-10 20:43:37: (configfile.c.2158) source: /etc/lighttpd/conf-enabled/10-accesslog.conf line: 4 pos: 1 parser failed>
Feb 10 20:43:37 grimawormtongue lighttpd[16431]: 2023-02-10 20:43:37: (configfile.c.2158) source: find /etc/lighttpd/conf-enabled -name '.conf' -a ! -name 'letsencrypt.co>
Feb 10 20:43:37 grimawormtongue lighttpd[16431]: 2023-02-10 20:43:37: (configfile.c.2158) source: /etc/lighttpd/lighttpd.conf line: 82 pos: 1 parser failed somehow near he>
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 10 20:43:37 grimawormtongue systemd[1]: Failed to start Lighttpd Daemon.
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 4.
Feb 10 20:43:37 grimawormtongue systemd[1]: Stopped Lighttpd Daemon.
Feb 10 20:43:37 grimawormtongue systemd[1]: Starting Lighttpd Daemon...
Feb 10 20:43:37 grimawormtongue lighttpd[16438]: Duplicate config variable in conditional 0 global: accesslog.filename
Feb 10 20:43:37 grimawormtongue lighttpd[16438]: 2023-02-10 20:43:37: (configfile.c.2158) source: /etc/lighttpd/conf-enabled/10-accesslog.conf line: 4 pos: 1 parser failed>
Feb 10 20:43:37 grimawormtongue lighttpd[16438]: 2023-02-10 20:43:37: (configfile.c.2158) source: find /etc/lighttpd/conf-enabled -name '.conf' -a ! -name 'letsencrypt.co>
Feb 10 20:43:37 grimawormtongue lighttpd[16438]: 2023-02-10 20:43:37: (configfile.c.2158) source: /etc/lighttpd/lighttpd.conf line: 82 pos: 1 parser failed somehow near he>
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 10 20:43:37 grimawormtongue systemd[1]: Failed to start Lighttpd Daemon.
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Feb 10 20:43:37 grimawormtongue systemd[1]: Stopped Lighttpd Daemon.
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Start request repeated too quickly.
Feb 10 20:43:37 grimawormtongue systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 10 20:43:37 grimawormtongue systemd[1]: Failed to start Lighttpd Daemon.