Pihole+Cloudflare HTTPS - Address already in use

Hi,

I have a error when im checking my config pihole + cloudflare https. Im updating cloudflare from 2019 version…

[email protected]:~ $ cloudflared
INFO[2020-07-31T23:49:30+02:00] Version 2020.7.4
INFO[2020-07-31T23:49:30+02:00] GOOS: linux, GOVersion: go1.12.9, GoArch: arm
INFO[2020-07-31T23:49:30+02:00] Environment variables map[proxy-dns:true proxy-dns-port:5053 proxy-dns-upstream]
INFO[2020-07-31T23:49:30+02:00] Adding DNS upstream - url:
INFO[2020-07-31T23:49:30+02:00] Adding DNS upstream - url:
INFO[2020-07-31T23:49:30+02:00] Starting DNS over HTTPS proxy server on:
INFO[2020-07-31T23:49:30+02:00] Starting metrics server on 127.0.0.1:40473/metrics
INFO[2020-07-31T23:49:30+02:00] cloudflared will not automatically update when run from the shell. To enable auto-updates, run cloudflared as a service:

INFO[2020-07-31T23:49:30+02:00] terminating due to error: Cannot start the DNS over HTTPS proxy server: failed to create a UDP listener: listen udp 127.0.0.1:5053: bind: address already in use
ERROR[2020-07-31T23:49:30+02:00] Quitting due to error: Cannot start the DNS over HTTPS proxy server: failed to create a UDP listener: listen udp 127.0.0.1:5053: bind: address already in use

[email protected]:~ ps aux | grep "cloud" root 471 0.2 0.6 937684 25924 ? Ssl 23:42 0:01 /usr/local/bin/cloudflared --config /etc/cloudflared/config.yml --origincert /etc/cloudflared/cert.pem --no-autoupdate pi 1404 0.0 0.0 7348 528 pts/0 S+ 23:49 0:00 grep --color=auto cloud [email protected]:~ sudo netstat -anop | grep “53”
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 662/pihole-FTL off (0.00/0/0)
tcp 0 0 127.0.0.1:5053 0.0.0.0:* LISTEN 471/cloudflared off (0.00/0/0)
tcp6 0 0 :::53 :::* LISTEN 662/pihole-FTL off (0.00/0/0)
udp 0 0 0.0.0.0:5353 0.0.0.0:* 381/avahi-daemon: r off (0.00/0/0)
udp 0 0 127.0.0.1:5053 0.0.0.0:* 471/cloudflared off (0.00/0/0)
udp 0 0 0.0.0.0:53 0.0.0.0:* 662/pihole-FTL off (0.00/0/0)
udp6 0 0 :::5353 :::* 381/avahi-daemon: r off (0.00/0/0)
udp6 0 0 :::48530 :::* 381/avahi-daemon: r off (0.00/0/0)
udp6 0 0 :::53 :::* 662/pihole-FTL off (0.00/0/0)
unix 2 [ ACC ] STREAM LISTENING 21539 911/menu-cached /run/user/1000/menu-cached-:0
unix 2 DGRAM 17310 531/lightdm
unix 3 STREAM CONNECTED 20548 531/lightdm
unix 3 STREAM CONNECTED 21535 1/init /run/systemd/journal/stdout
unix 3 STREAM CONNECTED 22536 925/gvfs-goa-volume
unix 3 STREAM CONNECTED 17553 529/polkitd
unix 3 STREAM CONNECTED 17540 531/lightdm
unix 3 STREAM CONNECTED 17571 531/lightdm
unix 2 DGRAM 10353 105/systemd-journal
unix 3 STREAM CONNECTED 22537 738/dbus-daemon /run/user/1000/bus

Thanks!

Its seems that the process who take 127.0.0.1:5053 is cloudflared…

tcp 0 0 127.0.0.1:5053 0.0.0.0:* LISTEN 471/cloudflared off (0.00/0/0)

root 2189 0.1 0.6 929488 26512 ? Ssl 00:12 0:01 /usr/local/bin/cloudflared --config /etc/cloudflared/config.yml --origincert /etc/cloudflared/cert.pem --no-autoupdate

Hi,

Im trying to change to another port… if 5053 is busy for someelse but i get same error:

[email protected]:~ $ cat /etc/cloudflared/config.yml
proxy-dns: true
proxy-dns-port: 5054
proxy-dns-upstream:

ERROR[2020-08-01T13:28:51+02:00] Quitting due to error: Cannot start the DNS over HTTPS proxy server: failed to create a UDP listener: listen udp 127.0.0.1:5054: bind: address already in use