cloudflare / cloudflare/cloudflared

🐛 there are no free edge addresses left to resolve to

Open
#1,060 10 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Tunnel connector start failed with error: "there are no free edge addresses left to resolve to"

**To Reproduce**
Steps to reproduce the behavior:
1. Configure 'Follow the official website guide to create tunnel'
2. Run 'docker run cloudflare/cloudflared:latest tunnel --no-autoupdate run --token xxx'
3. See error: there are no free edge addresses left to resolve to

If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : f045ed83-0fcb-4c7d-8c75-9fc74d6bd0d8
5. cloudflared config:

**Expected behavior**

I tried install the cloudflared with dpkg / docker / synology package.
I tried create tunnel with dashboard / cli command
I tried reboot the synology / router
I tried different version of cloudflared package.

But, I get this error every time.

The firewall on the synology is closed. I don't know what else I can do now.

I just hope it can normally run.

**Environment and versions**
- OS: Synology Nas, Linux
- Architecture: AMD64
- Version: 2023.8.1

**Logs and errors**
```
root@OraAnt-Ds920p:~# docker run cloudflare/cloudflared:latest tunnel --loglevel debug --no-autoupdate run --token xxxxxxxx
2023-08-31T15:32:03Z INF Starting tunnel tunnelID=f045ed83-0fcb-4c7d-8c75-9fc74d6bd0d8
2023-08-31T15:32:03Z INF Version 2023.8.1
2023-08-31T15:32:03Z INF GOOS: linux, GOVersion: go1.20.6, GoArch: amd64
2023-08-31T15:32:03Z INF Settings: map[loglevel:debug no-autoupdate:true token:*****]
2023-08-31T15:32:03Z INF Generated Connector ID: 079a44d4-092a-488c-9235-cf7165f9b9b1
2023-08-31T15:32:03Z DBG Fetched protocol: quic
2023-08-31T15:32:03Z INF Initial protocol quic
2023-08-31T15:32:03Z INF ICMP proxy will use 172.17.0.4 as source for IPv4
2023-08-31T15:32:03Z DBG Failed to determine the IPv6 for this machine. It will use :: to send/listen for ICMPv6 echo
2023-08-31T15:32:03Z INF ICMP proxy will use :: as source for IPv6
2023-08-31T15:32:03Z WRN The user running cloudflared process has a GID (group ID) that is not within ping_group_range. You might need to add that user to a group within that range, or instead update the range to encompass a group the user is already in by modifying /proc/sys/net/ipv4/ping_group_range. Otherwise cloudflared will not be able to ping this network error="Group ID 65532 is not between ping group 1 to 0"
2023-08-31T15:32:03Z DBG ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 65532 is not between ping group 1 to 0 nor ICMPv6 proxy: socket: permission denied"
2023-08-31T15:32:03Z WRN ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 65532 is not between ping group 1 to 0 nor ICMPv6 proxy: socket: permission denied"
2023-08-31T15:32:03Z DBG edge discovery: looking up edge SRV record domain=_v2-origintunneld._tcp.argotunnel.com event=0
2023-08-31T15:32:03Z DBG edge discovery: resolved edge addresses addresses=["2606:4700:a0::10","2606:4700:a0::9","2606:4700:a0::8","2606:4700:a0::3","2606:4700:a0::2","2606:4700:a0::5","2606:4700:a0::1","2606:4700:a0::7","2606:4700:a0::4","2606:4700:a0::6"] event=0
2023-08-31T15:32:03Z DBG edge discovery: resolved edge addresses addresses=["2606:4700:a8::6","2606:4700:a8::9","2606:4700:a8::10","2606:4700:a8::2","2606:4700:a8::1","2606:4700:a8::8","2606:4700:a8::4","2606:4700:a8::5","2606:4700:a8::3","2606:4700:a8::7"] event=0
2023-08-31T15:32:03Z INF Starting metrics server on 127.0.0.1:35160/metrics
2023-08-31T15:32:03Z DBG edge discovery: looking up edge SRV record domain=_v2-origintunneld._tcp.argotunnel.com event=0
2023-08-31T15:32:03Z DBG edge discovery: resolved edge addresses addresses=["2606:4700:a0::5","2606:4700:a0::1","2606:4700:a0::7","2606:4700:a0::4","2606:4700:a0::6","2606:4700:a0::10","2606:4700:a0::9","2606:4700:a0::8","2606:4700:a0::3","2606:4700:a0::2"] event=0
2023-08-31T15:32:03Z DBG edge discovery: resolved edge addresses addresses=["2606:4700:a8::5","2606:4700:a8::3","2606:4700:a8::7","2606:4700:a8::6","2606:4700:a8::9","2606:4700:a8::10","2606:4700:a8::2","2606:4700:a8::1","2606:4700:a8::8","2606:4700:a8::4"] event=0
2023-08-31T15:32:03Z INF You requested 4 HA connections but I can give you at most 0.
2023-08-31T15:32:03Z DBG edge discovery: no addresses left in pool to give proxy connection connIndex=0 event=0
2023-08-31T15:32:03Z INF Tunnel server stopped
2023-08-31T15:32:03Z ERR Initiating shutdown error="there are no free edge addresses left to resolve to"
2023-08-31T15:32:04Z WRN Your version 2023.8.1 is outdated. We recommend upgrading it to 2023.8.2
2023-08-31T15:32:04Z INF Metrics server stopped
there are no free edge addresses left to resolve to
root@OraAnt-Ds920p:~#
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.