API token for homepage integration

I have 6 pi-holes that I manage between two houesholds, each with multiple networks (regular, cloud devices, guest). I wanted to setup homepage and I went through the instructions and voila, right away, it just worked. I'm on version v6.

My problem then started shortly afterwards. 2 of the 6 piHoles are on the same network (class C) as the homepage VM and these two, probably 90% of the time, homepage tells me: * API Error: Pi-Hole API Error

I've googled around for help but everyone that seems to ask basic usage questions gets the same response from the same guy basically saying rtfm. Well, in my case, I did read the manual and successfully set up the integration only to see it stop working almost immediately. It seems to not be a functional issue but rather an intermittent issue. Oddly, the two piHoles at my Mom's house (across a VPN to another class C network), these two seem to work fine 100% of the time, but my two local ones (configured identically other than their relevant IP addressing), seem to fail ~90% of the time. I have no network issues regardless if the integration is working properly or not. I also have "ping" enabled on homepage and it is shows 0ms on the local piHoles and ~20-30ms on the ones to my Mom's network.

I even tried re-deploying one locally from scratch but I seem to get the same behavior.

All my PiHoles are running in LXC containers with Ubuntu 22.04 as the template OS

I ran pihole -d on the instance that passed/worked most recently but is failing again (without anything changing as far as I can tell).

My expectation is that if the API works, it should consistently work or consistently fail. It is frustrating when nothing changes and it flips back and forth between working and not while another instance of piHole is working just fine. I've set and re-set the API password, never seems to make any difference.

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

Expected Behaviour:

I do have unbound installed but I am not sure that is relevant in terms of the data that the integrations is trying to obtain. All of my piHole instances are configured the same way, the ones that are working and the ones that are intermittently failing.

  • Ubuntu 22.04 in an LXC container
  • Intel n100

Actual Behaviour:

~90% of the time, the homepage integration fails while 10% of the time is works fine (seemingly without changing anything). All of the piHoles have the same amount of system resources and the CPU is barely touched at all. Nothing appears even remotely close to being overloaded.

Debug Token:

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