Pi-hole not working anymore after update

Hi everyone,

I updated my Pi this morning, and everything else seems to be working fine but Pi-hole has stopped blocking ads.

After trying some things out (like pihole -r, uninstalling and reinstalling, changing settings on the admin site, using both eth0 and wlan0) I seem to have made the issues worse because now I can't even access the admin site anymore.

I've kind of lost track of everything that I tested, but I am quite confident I tried all the things I could find on this forum related to my issue but so far with no success.

Expected Behaviour:

I expected ads to be blocked and the admin site to be accessible.

Actual Behaviour:

No ads are being blocked and the admin site is giving me a 403 error.

Debug Token:

https://tricorder.pi-hole.net/rlsg31wegs

I hope I made this post in the correct manner. I've been struggling with solving the issue for about 10 hours now and I am coming to the conclusion that I am not capable of solving it by myself. So any help is very much appreciated. Thanks in advance!

Edit: I forgot to mention that the Pi is working just fine. It's only connected to wifi but I can use Kodi for instance. I've rebooted my router and my Pi many times aswell. I haven't changed any router settings.

Kind regards.

Your Pi-hole seems to be working just fine.

Blocking works as expected and everything starts normally.

The thing i notice though, is that it's currently answering only queries originating from your wlan0 interface. That means that if you try to access something from a wired device, it will not work as it's not set to allow queries from anything else than queries on wlan0.

That (once we get your admin interface back) can be adjusted either via admin (easy, fast) or via editing the /etc/dnsmasq.d/01-pihole.conf file.

Let's get your admin back up and you can adjust that yourself.

The error seems to be related to permissions and maybe missing files.

What is the output of ls -l /var/www/html/ ?

Hi RamSet, thank you for the quick reply.

I guess it makes sense that the Pi-hole is only answering queries from my wlan0 interface, since nothing is wired except for the router to the box where my ISP brings the internet into my home so to speak. Although now that I think of it, maybe that in itself is an issue. I recall having a tun0 option at some point, but I don't remember if that worked.

Anyway, to answer your question, the output is:
totaal 8
drwxr-xr-x 13 www-data www-data 4096 nov 2 2018 openrsd
drwxr-xr-x 11 www-data www-data 4096 nov 2 2018 pivpn-gui

tun0 is for your VPN interface.

You are missing the required folder(s) for the admin interface and Pi-hole blocking page.

Please run a pihole -r and select repair.

Share any error(s) you might get, if any.

It should fix your issue ...

I had access to the admin site for a minute, but after I rebooted I had the same 403 error again. I ran the pihole -r repair again and I still can't access the admin site.

During the repair process, the only thing that doesn't seem to be correct is the following:
[βœ—] Backing up index.lighttpd.html
No default index.lighttpd.html file found... not backing up

This is weird I updated last night and my files were not missing. A sudo pihole -r fixed it for me

I have access to the admin site again now after another reboot. This is strange, but I'll take it. The status is 'active' but it's not blocking ads. So I guess it comes down to the DNS settings now. Do I need to put it on "listen on all interfaces"?

When I change my setting to eth0 I can't access the admin site again, so that seems to be taking me a step away from the solution. When I change it back to wlan0 through pihole -r (reconfigure), I still don't have access. Restarted my router, no change... I'll try reinstalling pihole again.

Do you have enough space on your SD card ?

what's the output of df -h ?

I've experienced 2 MicroSD cards that reached EOL and they were refusing to store new stuff on them.

They allowed writing but when removed/unplugged/reset, it was reverting to the saved "last" snapshot that didn't include any new changes ...

It looks like there is plenty of space:

Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
/dev/root 14G 4,5G 7,9G 37% /
devtmpfs 370M 0 370M 0% /dev
tmpfs 374M 52K 374M 1% /dev/shm
tmpfs 374M 9,9M 364M 3% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 374M 0 374M 0% /sys/fs/cgroup
/dev/mmcblk0p6 71M 23M 49M 32% /boot
tmpfs 75M 0 75M 0% /run/user/1000
/dev/mmcblk0p5 30M 454K 28M 2% /media/pi/SETTINGS
tmpfs 75M 0 75M 0% /run/user/999

That's strange.

Is it stable/available after reboot ?

Do you have /admin/ and /pihole/ under /var/www/html ?

The memory looks the same after a reboot.

And yes, I do have /admin and /pihole under /var/www/html

I don't know what is supposed to be in those folders, but the /admin one is quite full and the /pihole one only has two files in there.

That sounds about right ... Are you able to access it now ? Is everything up and running ?

I still can't access the admin site, but for some reason it does seem to be blocking ads now.

When I give the command: curl -I http://localhost/admin which I found in another thread, this is the output:

curl -I http://localhost/admin
HTTP/1.1 301 Moved Permanently
Location: http://localhost/admin/
Date: Wed, 26 Jun 2019 21:06:44 GMT
Server: lighttpd/1.4.45

Can you please upload a new debug token ?

Run a pihole -d

Here is the log:
https://tricorder.pi-hole.net/09t2x68pr4

I don't recognize that local host ip. Could that be the issue?

What about http://pi.hole/admin or http://192.168.2.252/admin ?

Same results, both a 403 - Forbidden error.

What about ls -l /var/www/html/ again ?

What's the output of that ?