It works fine for a couple of hours but when I check a couple of hours later its unavailable.
I changed the raspberry for a new one and even made a new sd card from scratch but the same happens.
Things look okay in the debug log. When you see that things are disconnected can you check /var/log/pihole-FTL.log and see if there are any entries that say the daemon was shut down or killed?
I think it lasts like 6 hours aprox and then it goes off.
Today I disabled the query logging to see if that would change things but still goes down sadly.
Filesystem Size Used Avail Use% Mounted on
tmpfs 464M 40K 463M 1% /dev/shm
Crash:
Filesystem Size Used Avail Use% Mounted on
tmpfs 464M 464M 0 100% /dev/shm
Pi-hole stores FTL files in shm or Shared Memory. You have no more room in there so it crashes. Is this a Zero? Less than 512M of shm, which uses RAM, is not going to be enough for you.
Nice catch detective!
But its so weird. Its a raspberry pi 3 b+.
I even tried with a brand new raspberry pi 3 b+ I had when I was troubleshooting this.
Indeed a nice catch!
But why... I too am seeing this issue all of a sudden, but in my case after updating Linux a few days ago (after having ignored updating for months and pi-hole running smoothly..).
Running Ubuntu on a VM.
How much memory are you allocating for the VM? SHM only has 366M available and that's near a quarter of what a Pi has. Bump your RAM allocation to 1G or so.