PiHole - port 53 appears to be conflicting

Hi All,

I’ve been running my TrueNAS Scale instance for a few weeks without issue. After a powercut yesterday, all the apps came back up, apart from Pihole.

After looking into the /var/log/app_lifecycle.log for more details as advised, I found this.

11.12MB/11.12MB
9fe644bd1a92 Pull complete 
pihole Pulled 
Network ix-pihole_default  Creating
Network ix-pihole_default  Created
Container ix-pihole-pihole-1  Creating
Container ix-pihole-pihole-1  Created
Container ix-pihole-pihole-1  Starting
Error response from daemon: driver failed programming external connectivity on endpoint ix-pihole-pihole-1 (18a41e823f3a49e29c0b8243e65bae93119ae7405cf26f5cbcc9e563c89b3961): failed to bind port 0.0.0.0:53/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use\n

I can see that some other service is using port 53.

How can I stop this or alter the config of Pihole??

Its propably incus using port 53 for internal dns resolution.

you can try with

sudo incus network set incusbr0 raw.dnsmasq="port=5354"

to rebind the incus port and free up port 53

6 Likes

Amazing!! Thanks for the rapid and very useful response!
That worked a treat!

this helped me reinstall pihole !! hey development team are you taking notes!?

Took me forever to get here but this solved my problem thank you.

This also resolved container creation erroring on 25.04

Thanks

If I may ask, how did you knew/guess it was incus?
and how would I go about stumbling my way into finding it was incus?

I appreciate the help immensely, my question is simply my drive to understand something I do not.

When incus was first announced i played around with it extensively to see if it can be a 1:1 replacement for my jailmaker nspawn-container which hosts my docker stack. One of the docker container i run in there is blocky, a dns-sinkhole like pi-hole which also needs port 53. I then googled around and found the command i posted in this tread above in a post on the incus forum.

So basically i’ve been in the same position 6 months ago :sweat_smile:

1 Like