Hi everyone,
I'll try to give you as much info as possible, but bear with me. I'm a noob and I'm stuck on this problem the whole day so far.
I have been using pihole so far as a dockerimage in Openmediavault. Everything was fine so far, but I noticed to getting into the GUI today. I have tried a lot of different stuff but I can't figure out, how to solve this problem.
Stuff included:
Deleting the volumes
Deleting and recreating the docker image in different versions
deleting and recreating the macvlan network and using other networks like "host"
and more...
Expected Behaviour
lighttpd starting correctly up
Actual Behaviour:
portainer gives out this in the log for all eternity:
Stopping lighttpd
lighttpd: no process found
As far as I can see he even seems to start the service and even stopping it, when I'm stopping the container.
But I cannot access the webui
The most interesting Part I have found so far would be this part out of the errorlog of lighttpd
total 16
drwxr-xr-x+ 1 www-data www-data 4096 Mar 25 19:19 .
drwxr-x---+ 1 root root 4096 May 7 21:18 ..
Unfortunately I cannot provide the compose file oder docker command since I usually use the portainer interface. But never the less: I have tried a lot of different builds with the same outcome.
At this point I'm convinced it's something on the host system, since I have basically changed everything arround the container with the same result
I see a few differences, e.g. my docker-autocompose output does not even contain that cap_drop section, and my environment has an explicit reference to "PHP_ENV_CONFIG=/etc/lighttpd/conf-enabled/15-fastcgi-php.conf".
But then, I am running a plain Docker Pi-hole container, so I can't really tell if that would be normal for Portainer installations.
At least, the dropped CAPs are not noted as required.
I could not find out what the problem is.
Now I removed the packages, deleted everything left over and started from scratch. It works again.
Thank you all for your help, I learned a lot!
Now, that triggers a note:
Portainer has a tendency to hold on to environment values from previous containers even on container restart.
In the past, this has ocassionally stopped unlucky users from starting their Pi-hole container in Portainer after image upgrades, see e.g. Pihole Portainer/Docker 5.8.1 startup error?.
Would you also have been upgrading your Pi-hole to a new image, or was this a fresh installation?
No, it was not after the latest update in march. But the tendency of Portainer would explain why tf even after I removed everything (in Portainer) it still wouldn't work. And I tried several other images than the latest...
How and why the problem came to be is still a mystery.