FTL version is v5.22 (Latest: v5.22)
Container tag is: 2023.03.0
Stopping pihole-FTL
Stopping pihole-FTL
Stopping pihole-FTL
and
FTL Information
The FTL service is offline!
Actual Behaviour:
I can log into PH on address 192.16.178.201 and using Unbound on IP 192.168.178.203.
(Raspi is on IP 192.168.178.5 for OMV & Portainer).
PiHole appears to be working and I can resolve DNS and get to web sites.
When I 'Restart DNS reslover' from the Settings/sytems PiHole web page I then get this messsage at the top of the page:-
### FTL Information
*******The FTL service is offline!***
Thanks. I have this also on another Pi and get the same;
I deleted the container and recreated - no change
I have reloaded all from a fresh Pi OS install - no change.
So, After 59 views (in the Pihole forum???) nobody has any idea on how to fix this?
Am I the only person that has installed PiHole in a container? Any searching I have done has not been able to resolve this issue although there are plenty of instances where the FtL has been stopped and /or the FTL is offline.
When I 'Restart DNS reslover ' from the Settings/sytems PiHole web page I then get this messsage at the top of the page:-
I can reproduce this. It seems that the Restart DNS Resolver button from the web interface just doesn't work on the container. I've not got time to debug this fully at the moment, but looking at the code behind it, it is just calling pihole -a restartdns - which I can run on the CLI of the container with no issues - so it is probably a permissions thing. Always a fun one with Docker
That said again... Why are you pressing this button? I've never had to use it in all my years of running a Pi-hole container....
I apologise as I may have sounded grumpy..... But my concern is that the thread will be closed after 3 weeks.... Anyway, moving on.
Thank you for the reply and the great PiHole - I have made several donations to help development; real life does get in the way of many things..
Why are you mounting docker named volumes as though they are host mounts?
I am no expert (just an enthusiastic amateur) by any means and that was the Docker / Container .yaml file I found somewhere on the web (there is a lot of crap and mis-information on the web and it is a matter of getting the correct information if you can).
I have since found on github under the PiHole logo as part of my testing (playing), that has the volumes as you have shown but I still have the DNS refresh issue I am sorry I do not understand how it all hangs together. I also see in the container log (from the .yaml file I just referenced) :-
Stopping pihole-FTL
Several times - I do not know whether or not that this is an issue. (I do not see any message saying FTL has restarted after applying pihole -a restartdns in the docker CLI
Thankyou for the volumes correction; I will change that...
I noticed there are 2 different things happening when you click on "Restart DNS resolver" button: (tested using Portainer)
you see a message on Portainer logs saying "Stopping pihole-FTL".
Explanation:
When you click on the button, the page executes pihole -a restartdns, which in turn executes service pihole-FTL restart internally.
This second command always sends "Stopping pihole-FTL" message to the docker log.
The service is stopped and then restarted, but no message is shown confirming the successful restart (only the stop message is logged). I agree this might cause confusion.
As a test, you can runpihole -a restartdnsorservice pihole-FTL restarton the command line and you will see the same message on the log.
you see "The FTL service is offline!" message on the web interface.
Explanation:
As explained above the FTL service is really restarted when you click on the button.
The problem you reported happens because, in some cases, PHP executes and reloads the page faster than FTL service is restarted.
When this happens the page is created before FTL is fully restarted and the "Offline" information is shown.
A few milliseconds later the service is restarted, but the page was already sent to the browser.
You don't need to worry. FTL is running (the problem here is cosmetic).
To be sure, just click on the Settings menu item again.
The page should load with the new information, showing FTL is running.
Since I now have a better understanding of the (erroneous) messages being displayed with my docker install, PiHole + Unbound has been working very well on a RasPi 4 with an M.2 drive (Argon Case).