cloudflare / cloudflare/cloudflared

🐛After update to 12.2 the tunnel gets dropped constantly

Open
#1,386 1 comment 10 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**
I was running stable version for almost 2 moths in my server, I updated cloudflared to 12.2 and now the tunnel connection comes up and then gets degraded, finally dropped. I cannot access any of my tunnels.

**To Reproduce**
Steps to reproduce the behavior:
1. Using CasaOS, I selected the docker container, select update to latest 2024.12.2
2. The container starts running, I check on cloudflare and the tunnel is healthy
3. Try to access the tunnel and I get a 502 error.
4. Check cloudflare and the Tunnel is now Degraded, a few seconds later it says Down.

If it's an issue with Cloudflare Tunnel:
5. Tunnel ID :
6. cloudflared config:

**Expected behavior**
I expect the tunnel to be up 100% of the time.

**Environment and versions**
- OS: ubuntu
- Architecture: amd64
- Version: 2024.12.2

**Logs and errors**
`cloudflared | WebUI running on port ****
cloudflared | Starting cloudflared
cloudflared | Cloudflare tunnel started.
cloudflared | Using token: ***
cloudflared | 2025-01-01T17:52:07Z INF Starting tunnel tunnelID=842e9b5f-b31b-4617-9575-b9aca33499bf
cloudflared | 2025-01-01T17:52:07Z INF Version 2024.12.2 (Checksum ***)
cloudflared | 2025-01-01T17:52:07Z INF GOOS: linux, GOVersion: go1.22.5, GoArch: amd64
cloudflared | 2025-01-01T17:52:07Z INF Settings: map[no-autoupdate:true token:*****]
cloudflared | 2025-01-01T17:52:07Z INF Generated Connector ID: 58cc3df9-a8f2-41e7-831a-8e699240eb25
cloudflared | 2025-01-01T17:52:07Z INF cloudflared will not automatically update if installed by a package manager.
cloudflared | 2025-01-01T17:52:08Z INF Initial protocol quic
cloudflared | 2025-01-01T17:52:08Z INF ICMP proxy will use *** as source for IPv4
cloudflared | 2025-01-01T17:52:08Z INF ICMP proxy will use :: as source for IPv6
cloudflared | 2025-01-01T17:52:08Z INF ICMP proxy will use *** as source for IPv4
cloudflared | 2025-01-01T17:52:08Z INF ICMP proxy will use :: as source for IPv6
cloudflared | 2025-01-01T17:52:08Z INF Starting metrics server on 127.0.0.1:20241/metrics
cloudflared | 2025/01/01 17:52:08 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 4882 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
cloudflared | 2025-01-01T17:52:08Z INF Registered tunnel connection connIndex=0 connection=fadc231c-2344-48e7-8d5a-d8eac925e3a0 event=0 ip=198.41.200.23 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:52:09Z INF Registered tunnel connection connIndex=1 connection=92a0d6c7-1773-49f1-8677-353b67534109 event=0 ip=198.41.192.107 location=qro02 protocol=quic
cloudflared | 2025-01-01T17:52:10Z INF Registered tunnel connection connIndex=2 connection=db781782-5a8f-4980-89f3-2ed590cbdd57 event=0 ip=198.41.200.13 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:52:15Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.107
cloudflared | 2025-01-01T17:52:15Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.107
cloudflared | 2025-01-01T17:52:15Z INF Retrying connection in up to 1s connIndex=1 event=0 ip=198.41.192.107
cloudflared | 2025-01-01T17:52:15Z WRN Failed to dial a quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 event=0 ip=198.41.192.67
cloudflared | 2025-01-01T17:52:15Z INF Retrying connection in up to 2s connIndex=3 event=0 ip=198.41.192.67
cloudflared | 2025-01-01T17:52:15Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:15Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:15Z INF Retrying connection in up to 1s connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:16Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.13
cloudflared | 2025-01-01T17:52:16Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.13
cloudflared | 2025-01-01T17:52:16Z INF Retrying connection in up to 1s connIndex=2 event=0 ip=198.41.200.13
cloudflared | 2025-01-01T17:52:17Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
cloudflared | 2025-01-01T17:52:17Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
cloudflared | 2025-01-01T17:52:17Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
cloudflared | 2025-01-01T17:52:22Z ERR Failed to dial a quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.113
cloudflared | 2025-01-01T17:52:22Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.200.113
cloudflared | 2025-01-01T17:52:27Z INF Registered tunnel connection connIndex=0 connection=6f4cd49e-4953-4799-90b9-42b5c88b04bc event=0 ip=198.41.200.233 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:52:29Z INF Registered tunnel connection connIndex=2 connection=ecd270a5-4595-4bb8-aaf6-75c61420c37a event=0 ip=198.41.200.23 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:52:29Z INF Registered tunnel connection connIndex=1 connection=5753da5c-e6db-48d9-ada0-1309b4467dd8 event=0 ip=198.41.192.27 location=qro02 protocol=quic
cloudflared | 2025-01-01T17:52:29Z INF Registered tunnel connection connIndex=3 connection=6658a465-6f83-4206-b189-09f6b68c7be6 event=0 ip=198.41.192.227 location=qro02 protocol=quic
cloudflared | 2025-01-01T17:52:32Z INF Updated to new configuration config="*** Services ***"
cloudflared | 2025-01-01T17:52:46Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.233
cloudflared | 2025-01-01T17:52:46Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.233
cloudflared | 2025-01-01T17:52:46Z INF Retrying connection in up to 1s connIndex=0 event=0 ip=198.41.200.233
cloudflared | 2025-01-01T17:52:46Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:46Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:46Z INF Retrying connection in up to 1s connIndex=2 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:52:47Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=3 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:52:47Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:52:47Z INF Retrying connection in up to 1s connIndex=3 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:52:47Z ERR Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.27
cloudflared | 2025-01-01T17:52:47Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.27
cloudflared | 2025-01-01T17:52:47Z INF Retrying connection in up to 1s connIndex=1 event=0 ip=198.41.192.27
cloudflared | 2025-01-01T17:52:47Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
cloudflared | 2025-01-01T17:52:47Z ERR Connection terminated error="timeout: no recent network activity" connIndex=3
cloudflared | 2025-01-01T17:52:48Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
cloudflared | 2025-01-01T17:52:51Z ERR Failed to dial a quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.53
cloudflared | 2025-01-01T17:52:51Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.200.53
cloudflared | 2025-01-01T17:52:58Z INF Registered tunnel connection connIndex=0 connection=71301ae4-5f2b-44ef-bfe4-760150479172 event=0 ip=198.41.200.23 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:53:09Z INF Registered tunnel connection connIndex=1 connection=5f97f5e5-b428-42b6-994b-3d0263d351af event=0 ip=198.41.192.227 location=qro02 protocol=quic
cloudflared | 2025-01-01T17:53:10Z INF Registered tunnel connection connIndex=3 connection=8209c937-201d-4b9a-b2b2-3f607650ac6b event=0 ip=198.41.192.47 location=qro02 protocol=quic
cloudflared | 2025-01-01T17:53:10Z INF Registered tunnel connection connIndex=2 connection=50e3d985-4879-4278-a9eb-6e6c5b9887a9 event=0 ip=198.41.200.113 location=mfe01 protocol=quic
cloudflared | 2025-01-01T17:53:17Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=3 event=0 ip=198.41.192.47
cloudflared | 2025-01-01T17:53:17Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 event=0 ip=198.41.192.47
cloudflared | 2025-01-01T17:53:17Z INF Retrying connection in up to 1s connIndex=3 event=0 ip=198.41.192.47
cloudflared | 2025-01-01T17:53:17Z WRN Connection terminated error="timeout: no recent network activity" connIndex=3
cloudflared | 2025-01-01T17:53:17Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.113
cloudflared | 2025-01-01T17:53:17Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=2 event=0 ip=198.41.200.113
cloudflared | 2025-01-01T17:53:17Z INF Retrying connection in up to 1s connIndex=2 event=0 ip=198.41.200.113
cloudflared | 2025-01-01T17:53:18Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:53:18Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:53:18Z INF Retrying connection in up to 1s connIndex=0 event=0 ip=198.41.200.23
cloudflared | 2025-01-01T17:53:18Z WRN Failed to serve tunnel connection error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:53:18Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=1 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:53:18Z INF Retrying connection in up to 1s connIndex=1 event=0 ip=198.41.192.227
cloudflared | 2025-01-01T17:53:19Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
cloudflared | 2025-01-01T17:53:19Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
cloudflared | 2025-01-01T17:53:25Z ERR Failed to dial a quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.73
`

**Additional context**
No additional context. I can't make it work neither in CasaOS nor Docker through terminal.

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.