Docker problems agains: Pihole

Discussion about Docker
Locked
unixtall
Posts: 56
Joined: 31 Dec 2019, 19:02

Docker problems agains: Pihole

Post by unixtall »

I had the pihole configurated and it was working fine. And one day the container stopped and no more i can do for start it.

I see this error in the log.

Code: Select all

::: Testing pihole-FTL DNS: sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
Always that there is an update, something brokes...

I need help, please tell me what i can do.
unixtall
Posts: 56
Joined: 31 Dec 2019, 19:02

Re: Docker problems agains: Pihole

Post by unixtall »

I need help. Please!
User avatar
TMzethar
TerraMaster Team
Posts: 1127
Joined: 27 Oct 2020, 16:43

Re: Docker problems agains: Pihole

Post by TMzethar »

{L_BUTTON_AT}unixtall

Are you saying something was updated before this appeared?
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
unixtall
Posts: 56
Joined: 31 Dec 2019, 19:02

Re: Docker problems agains: Pihole

Post by unixtall »

i have just solved this. Uninstalling all dockers containers and creating news.

Thanks
User avatar
pkuzila
Posts: 2
Joined: 03 Aug 2021, 10:01

Re: Docker problems agains: Pihole

Post by pkuzila »

I experience the same issue every time my pihole container restarts no matter how it ended. I can get it up and running by doing the following:
su root
chmod 644 /usr/lib/sudo/sudoers.so
chown -R root /usr/lib/sudo
in the pihole container. It takes some doing as the container itself is in a restart loop so you have to catch it at the right time to run the commands. I also noticed that some of my environmental arguments do not get applied such as webpassword.

I also tried removing the container and starting fresh but the issue comes back as soon as it has to restart.

Is there a way to make these permissions persists or does the container need to start in a different way to make this stop happening?
User avatar
djonesuk
Posts: 23
Joined: 28 Jun 2021, 22:01

Re: Docker problems agains: Pihole

Post by djonesuk »

Appears to be some sort of issue with Pihole:

https://github.com/pi-hole/docker-pi-hole/issues/670
User avatar
pkuzila
Posts: 2
Joined: 03 Aug 2021, 10:01

Re: Docker problems agains: Pihole

Post by pkuzila »

djonesuk wrote: 03 Aug 2021, 23:51 Appears to be some sort of issue with Pihole:

https://github.com/pi-hole/docker-pi-hole/issues/670
Wow, not sure how that didn't come up in all my searching, thanks for the link. I'll monitor it over there.
Locked