Hi,
since a couple of weeks I've noticed, that the "Status" of Pi-hole on the web interface is "Unknown". This isn't a serious problem for me, since Pi-hole is blocking ads properly and according to pihole -d there seems to be no serious problem. But yesterday I tried to switch the privacy level from "Show everything and record everything" to a higher privacy level and after clicking "Apply" the changes haven't been saved.
Expected Behaviour:
The privacy level should be set according to the applied changes.
Actual Behaviour:
After clicking "Apply", the web interface gives the notification "The privacy level has been increased" but the wrong setting - in my case the lowest privacy level "Show everything and record everything" - remains set. No matter which privacy level I choose, it doesn't change after applying.
Additional Information:
The problem is pretty similar to this one. There seem to be a problem with lighttpd or www-data, but I wasn't able to solve it.
Outputs of some related commands:
$ which pihole
/usr/local/bin/pihole
$ sudo service lighttpd status -
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-07-04 23:13:11 CEST; 30min ago
Process: 524 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 798 (lighttpd)
CGroup: /system.slice/lighttpd.service
├─798 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
├─844 /usr/bin/php-cgi
├─923 /usr/bin/php-cgi
├─924 /usr/bin/php-cgi
├─925 /usr/bin/php-cgi
└─926 /usr/bin/php-cgiJul 04 23:42:51 raspberrypi sudo[10924]: pam_unix(sudo:auth): conversation failed
Jul 04 23:42:51 raspberrypi sudo[10924]: pam_unix(sudo:auth): auth could not identify password for [www-data]
Jul 04 23:42:57 raspberrypi lighttpd[798]: We trust you have received the usual lecture from the local System
Jul 04 23:42:57 raspberrypi lighttpd[798]: Administrator. It usually boils down to these three things:
Jul 04 23:42:57 raspberrypi lighttpd[798]: #1) Respect the privacy of others.
Jul 04 23:42:57 raspberrypi lighttpd[798]: #2) Think before you type.
Jul 04 23:42:57 raspberrypi lighttpd[798]: #3) With great power comes great responsibility.
Jul 04 23:42:57 raspberrypi lighttpd[798]: sudo: no tty present and no askpass program specified
Jul 04 23:42:57 raspberrypi sudo[10954]: pam_unix(sudo:auth): conversation failed
Jul 04 23:42:57 raspberrypi sudo[10954]: pam_unix(sudo:auth): auth could not identify password for [www-data]
Content of the file at /etc/sudoers.d/pihole :
// 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.
//
// Allows the WebUI to use Pi-hole commands
//
// This file is copyright under the latest version of the EUPL.
// Please see LICENSE file for your rights under this license.
//
www-data ALL=NOPASSWD: /usr/local/bin/pihole
(Think of "#" instead of "//", didn't know how to write "#" as is, instead of making a caption)
In the output of pihole -d I noticed one error related to lighttpd:
*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Date: Fri, 05 Jul 2019 09:57:32 GMT
Server: lighttpd/1.4.45
but this seems to be normal behaviour according to this post.
I hope someone can help me.
Thanks in advance and best regards