Web Interface issues

Please follow the below template, it will help us to help you!

Expected Behaviour:
I make any change through the web interface and after I hit save the page refreshes and the change is shown.

Actual Behaviour:
I make a change, ie DNS upstream servers or click Whitelist box, hit Save after screen refreshes the change has not taken affect. No changes made.

As was requested in the post template, please make a debug log via pihole -d and share the token so we can debug the issue.

Done, https://tricorder.pi-hole.net/1g1ycp9j3l

I don't see any related issues in your debug log. Do you see any errors in the web interface developer console (F12)?

Not off hand, is there a specific tab I should be looking at?

Press F12 to open the dev tools and share any messages you see in the console after you trigger the bad behavior.

There are no message in the Console.

What is the output if you add the domain to the whitelist via CLI?

pihole -w your.domain.here

[i] Adding home-lab.com to whitelist...
[i] home-lab.com does not exist in blacklist, no need to remove!

[i] Pi-hole blocking is enabled
[i] Using cached Event Horizon list...
[i] 114654 unique domains trapped in the Event Horizon
[i] Number of whitelisted domains: 1
[i] Number of blacklisted domains: 0
[i] Number of regex filters: 0
[✓] Parsing domains into hosts format
[✓] Cleaning up stray matter

[✓] Force-reloading DNS service
[✓] DNS service is running
[✓] Pi-hole blocking is Enabled
[root@localhost ~]#

Does it show in the web interface under the whitelist now? Are you able to remove it and add it again (via the web interface)?

It was in the Web UI, I was able to delete it but not able to re-add it. Error message was:
Failure! Something went wrong, see output below.

But there is no output below to see.

After deleting it, if you refresh the page is it still there?

Yes, when I refresh the page it is still there. Sorry I missed that the first time. I deleted it but didn't refresh and thought it had worked.

You don't see any new lines in journalctl -u lighttpd --full --no-pager or /var/log/lighttpd/error.log after these failures?

No, from the first command I only have this in the log.

Aug 09 08:46:15 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo

From the second command /var/log/lighttpd/error.log I get message "Permission denied"

Please share the full log entries for those errors. Also share the contents of /etc/sudoers.d/pihole

The logs from Aug 13 are right after I tried to make a change thru web UI.

[root@localhost ~]# journalctl -u lighttpd --full --no-pager
Aug 09 08:46:06 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 09 08:46:15 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 09 08:46:15 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 09 08:46:15 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 13 09:32:23 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 13 09:32:23 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
Aug 13 09:32:23 localhost.localdomain lighttpd[4034]: sudo: sorry, you must have a tty to run sudo
[root@localhost ~]#

[root@localhost ~]# /var/log/lighttpd/error.log
bash: /var/log/lighttpd/error.log: Permission denied
[root@localhost ~]#

[root@localhost ~]# /etc/sudoers.d/pihole
bash: /etc/sudoers.d/pihole: Permission denied
[root@localhost ~]#

I haven't heard anything in a week. Did you give up on my case?

Sorry, I seemed to have missed your reply.

Try using visudo to edit the sudoers file and add this line:

Defaults!/usr/local/bin/pihole !requiretty