[email protected]:~$ cloudflared tunnel run
2021-10-21T10:28:06Z INF Starting tunnel tunnelID=REDACTED
2021-10-21T10:28:06Z INF Version 2021.10.3
2021-10-21T10:28:06Z INF GOOS: linux, GOVersion: devel +a84af465cb Mon Aug 9 10:31:00 2021 -0700, GoArch: amd64
2021-10-21T10:28:06Z INF Settings: map[cred-file:/home/ben/.cloudflared/REDACTED.json credentials-file:/home/ben/.cloudflared/REDACTED.json]
2021-10-21T10:28:06Z INF Generated Connector ID: REDACTED
2021-10-21T10:28:06Z INF cloudflared will not automatically update when run from the shell. To enable auto-updates, run cloudflared as a service: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/run-tunnel/run-as-service
2021-10-21T10:28:06Z INF Initial protocol http2
2021-10-21T10:28:06Z ERR Error opening metrics server listener error="listen tcp 172.67.194.205:0: bind: cannot assign requested address"
Error opening metrics server listener: listen tcp 172.67.194.205:0: bind: cannot assign requested address
What’s going wrong? I couldn’t find any suitable resources on Google but apologies if my Google-foo is lacking (or if my lack of sleep last night is showing!).
Sorry, I meant to say that port 0 is leaving it up to the OS to pick it up, which is the default.
Maybe the problem is with the IP chosen?
Can you set up the property: “metrics: addr:port” to an address that cloudflared can bind to, and to a port that is available (or try 0 again, maybe the problem was with the addr)
[email protected]:~$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
Yet metrics: localhost:0 (which I believe is the default) fails and metrics: 127.0.0.1:0 (and metrics: "[::1]:0") succeeds. Am I being a muppet and missing something obvious?
I’m just a bit perplexed that a hostname is failing yet the two things it could resolve as both work OK. Are there any more verbose logs that I could generate and share? I’ve got four other tunnels working fine (two dual stack, two v4 only), hence my surprise that this one is misbehaving.