wiki/docs/Debian/port-53-in-use.md
2023-10-20 11:27:00 -05:00

912 B

Port in use (connman)

Problem

When trying to run DNS thing, connman is already using port 53.

docker compose up --detach --build --remove-orphans
[+] Running 0/1
 ⠿ Container pihole  Starting                                                       0.2s
Error response from daemon: driver failed programming external connectivity on endpoint pihole (bc535387671f0d471f11f8ade5eedc4771126c057e2099931e8ef49461111149): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use

Solution

  • Find the connman.service file:
grep -Ril "connman" /etc/systemd/
  • Add --nodnsproxy to the ExecStart line:
ExecStart=/usr/sbin/connmand -n --nodnsproxy
  • Reload and restart stuff:
systemctl daemon-reload
systemctl restart connman.service
  • Try your thing again. For example:
docker compose up -d --remove-orphans