PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47

Expected Behaviour:

Pi-Hole booting without Error
Sinology Nas DSM 7.0 Running In Docker

Actual Behaviour:

PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47

& Under Diagnosis I See:

Time Type Message
2023-06-03 21:20:21 DNSMASQ_CONFIG FTL failed to start due to failed to create listening socket for port 53: Address already in use

Things to know:
I had Pi-hole running perfectly on a Rasbperry Pi uninstalled it then created this one now the error is happening. I am pretty sure I removed everything from port 53. I am somewhat of a noob so explanations or tutorials on how to help with detail are appreciated!

Debug Token:

https://tricorder.pi-hole.net/PALkn3M7/

Please, post the compose file or docker run command used to start your container (just remember to remove the password, if set).

Where would I find this? I am using the docker GUI on my Synology.

is this what you are looking for?

This is just part of the information.

  • Are you mounting volumes on your container? describe it.
  • What network mode are you using? bridge, host, macvlan?

Thanks for being patient with me!


And the network is host.

On the host machine, what is the output of ss -tulnp | grep 53?

I used a different command because that one was not working I feel like there is a lot going on here.
spressman@SP_Plex:/$ netstat -tuln | grep 53
tcp 0 0 0.0.0.0:45386 0.0.0.0:* LISTEN
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.46:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.46:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.46:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.46:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.47:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.47:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.47:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.47:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:49153 0.0.0.0:* LISTEN
tcp6 0 0 fe80::b47f:ff:fe8e:1:53 :::* LISTEN
tcp6 0 0 fe80::b47f:ff:fe8e:1:53 :::* LISTEN
tcp6 0 0 fe80::b47f:ff:fe8e:1:53 :::* LISTEN
tcp6 0 0 fe80::b47f:ff:fe8e:1:53 :::* LISTEN
tcp6 0 0 fe80::b05c:89ff:feab:53 :::* LISTEN
tcp6 0 0 fe80::b05c:89ff:feab:53 :::* LISTEN
tcp6 0 0 fe80::b05c:89ff:feab:53 :::* LISTEN
tcp6 0 0 fe80::b05c:89ff:feab:53 :::* LISTEN
tcp6 0 0 fe80::301a:adff:fe78:53 :::* LISTEN
tcp6 0 0 fe80::301a:adff:fe78:53 :::* LISTEN
tcp6 0 0 fe80::301a:adff:fe78:53 :::* LISTEN
tcp6 0 0 fe80::301a:adff:fe78:53 :::* LISTEN
tcp6 0 0 fe80::42:18ff:fefb:8:53 :::* LISTEN
tcp6 0 0 fe80::42:18ff:fefb:8:53 :::* LISTEN
tcp6 0 0 fe80::42:18ff:fefb:8:53 :::* LISTEN
tcp6 0 0 fe80::42:18ff:fefb:8:53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fe80::211:32ff:fef3::53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 fd53:c07:d0e0:48ea:2:53 :::* LISTEN
tcp6 0 0 ::1:53 :::* LISTEN
tcp6 0 0 ::1:53 :::* LISTEN
tcp6 0 0 ::1:53 :::* LISTEN
tcp6 0 0 ::1:53 :::* LISTEN
tcp6 0 0 :::45321 :::* LISTEN
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 172.17.0.1:53 0.0.0.0:*
udp 0 0 172.17.0.1:53 0.0.0.0:*
udp 0 0 172.17.0.1:53 0.0.0.0:*
udp 0 0 172.17.0.1:53 0.0.0.0:*
udp 0 0 192.168.2.46:53 0.0.0.0:*
udp 0 0 192.168.2.46:53 0.0.0.0:*
udp 0 0 192.168.2.46:53 0.0.0.0:*
udp 0 0 192.168.2.46:53 0.0.0.0:*
udp 0 0 192.168.2.47:53 0.0.0.0:*
udp 0 0 192.168.2.47:53 0.0.0.0:*
udp 0 0 192.168.2.47:53 0.0.0.0:*
udp 0 0 192.168.2.47:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:33533 0.0.0.0:*
udp6 0 0 :::5353 :::*
udp6 0 0 fe80::b47f:ff:fe8e:1:53 :::*
udp6 0 0 fe80::b47f:ff:fe8e:1:53 :::*
udp6 0 0 fe80::b47f:ff:fe8e:1:53 :::*
udp6 0 0 fe80::b47f:ff:fe8e:1:53 :::*
udp6 0 0 fe80::b05c:89ff:feab:53 :::*
udp6 0 0 fe80::b05c:89ff:feab:53 :::*
udp6 0 0 fe80::b05c:89ff:feab:53 :::*
udp6 0 0 fe80::b05c:89ff:feab:53 :::*
udp6 0 0 fe80::301a:adff:fe78:53 :::*
udp6 0 0 fe80::301a:adff:fe78:53 :::*
udp6 0 0 fe80::301a:adff:fe78:53 :::*
udp6 0 0 fe80::301a:adff:fe78:53 :::*
udp6 0 0 fe80::42:18ff:fefb:8:53 :::*
udp6 0 0 fe80::42:18ff:fefb:8:53 :::*
udp6 0 0 fe80::42:18ff:fefb:8:53 :::*
udp6 0 0 fe80::42:18ff:fefb:8:53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fe80::211:32ff:fef3::53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea:2:53 :::*
udp6 0 0 ::1:53 :::*
udp6 0 0 ::1:53 :::*
udp6 0 0 ::1:53 :::*
udp6 0 0 ::1:53 :::*
udp6 0 0 fd53:c07:d0e0:48ea::123 :::*
udp6 0 0 fd53:c07:d0e0:48ea::123 :::*

Well... apparently there are a lot of things using port 53.

If you want to use host network mode you need to disable everything using port 53.

How would I go about disabling those. I feel like there shouldn't be anything using that port!

Running the command with option -p and using sudo will allow you to identify each process using port 53:

sudo netstat -tulnp | grep ":53\s"

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.