Pi-blocks ads as expected and access to websites is not impacted.
Current system information:
Raspbian GNU/Linux v10
Current Pi-hole version is v5.17.2
Current web version is v5.20.2
Current FTL version is v5.23
Actual Behaviour:
Ads are not blocked, and devices are unable to access websites.
Message in sidebar: "DNS service not running"
On dashboard: "Lost connection to API"
Nothing seemed to trigger this, it started happening seemingly out of the blue. I attempted to update Pi-hole, as well as reboot the system and even repair but none the less, the problem was not resolved.
I tried to restart FTL, which also did nothing. Sifting through the other related posts here, I wasn't able to find a solution based on the same problems of others.
I had the same issue this morning. I don't know why this helped but it worked for me:
sudo service pihole-FTL stop
sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL.db.old
sudo service pihole-FTL start
It's basically wiping out the pihole db. Not sure why/how it got full/corrupted. I didn't have any obvious error message or issues in the debug output.
All other commands return a newline. As a heads up, I have pointed my router DNS away from the pi IP to ensure I have working internet. I figure that likely will have an impact on what these commands are returning.
krackajak's solution did indeed solve the problem. I'm not entirely sure why but it is definitely an issue with FTL. It would be great to know the underlying issue in case it returns, but I am not complaining for the availability of a solution. If I encounter the problem again, I can create a new post to dig a bit deeper.