Cloudflare Tunnel getting unregistered after connecting

Device: Raspberry Pi 4B 8GB
Client: Docker - latest image (docker.io/cloudflare/cloudflared:[email protected]:4946b279c0cc8edf6663e899ec133f2d456663a78d735bc0ffcd5e7d5bffd7c5)
Controlled by UI (Zero Trust area)

The client’s connection to Cloudflare servers only works for a while after startup, and then tries to reconnect, but they all fail. (logs from the default connection mode quic, the effect is identical when using the http2 protocol)

2022-11-16T19:22:49Z INF Starting tunnel tunnelID=a7a28913-4ff7-4f27-88f5-7950c9f189f5
2022-11-16T19:22:49Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2022-11-16T19:22:49Z INF Version 2022.10.3
2022-11-16T19:22:49Z INF GOOS: linux, GOVersion: go1.19.2, GoArch: arm64
2022-11-16T19:22:49Z INF Settings: map[no-autoupdate:true token:*****]
2022-11-16T19:22:49Z INF Generated Connector ID: f7e277ec-a4af-4a46-9cf6-dd034c18d04d
2022-11-16T19:22:49Z INF Will be fetching remotely managed configuration from Cloudflare API. Defaulting to protocol: quic
2022-11-16T19:22:49Z INF Initial protocol quic
2022-11-16T19:22:49Z INF ICMP proxy will use 172.17.0.2 as source for IPv4
2022-11-16T19:22:49Z INF ICMP proxy will use :: as source for IPv6
2022-11-16T19:22:49Z INF Starting metrics server on 127.0.0.1:33277/metrics
2022/11/16 19:22:50 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2022-11-16T19:22:50Z INF Connection c6e9c1c2-c00d-4b57-9395-7e8df195d9fc registered connIndex=0 ip=198.41.200.193 location=VIE
2022-11-16T19:22:50Z INF Updated to new configuration config="{\"ingress\":REDACTED,\"warp-routing\":{\"enabled\":false}}" version=70
2022-11-16T19:22:51Z INF Connection 067eb046-f666-439d-a673-1d5fefeab7b4 registered connIndex=1 ip=198.41.192.47 location=PRG
2022-11-16T19:22:52Z INF Connection 2d9f4734-98b1-4476-bd33-55c240b62444 registered connIndex=2 ip=198.41.200.33 location=VIE
2022-11-16T19:22:53Z INF Connection e7eb8949-57c6-4751-bdc0-d0b8215e41a1 registered connIndex=3 ip=198.41.192.57 location=PRG
2022-11-16T19:23:14Z INF Unregistered tunnel connection connIndex=1
2022-11-16T19:23:14Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:23:14Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:23:14Z INF Retrying connection in up to 1s connIndex=1 ip=198.41.192.47
2022-11-16T19:23:14Z INF Unregistered tunnel connection connIndex=3
2022-11-16T19:23:14Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:23:14Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:23:14Z INF Retrying connection in up to 1s connIndex=3 ip=198.41.192.57
2022-11-16T19:23:15Z WRN Connection terminated error="timeout: no recent network activity" connIndex=3
2022-11-16T19:23:15Z INF Unregistered tunnel connection connIndex=2
2022-11-16T19:23:15Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:23:15Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:23:15Z INF Retrying connection in up to 1s connIndex=2 ip=198.41.200.33
2022-11-16T19:23:15Z INF Unregistered tunnel connection connIndex=0
2022-11-16T19:23:15Z ERR Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:23:15Z ERR Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:23:15Z INF Retrying connection in up to 1s connIndex=0 ip=198.41.200.193
2022-11-16T19:23:15Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
2022-11-16T19:23:15Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0
2022-11-16T19:23:16Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
2022-11-16T19:23:29Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:23:29Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:23:29Z INF Retrying connection in up to 4s connIndex=2 ip=198.41.200.33
2022-11-16T19:23:29Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:23:29Z INF Retrying connection in up to 4s connIndex=3 ip=198.41.192.57
2022-11-16T19:23:29Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:23:29Z INF Retrying connection in up to 4s connIndex=1 ip=198.41.192.47
2022-11-16T19:23:29Z INF Retrying connection in up to 4s connIndex=0 ip=198.41.200.193
2022-11-16T19:23:30Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
2022-11-16T19:23:30Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1
2022-11-16T19:23:30Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0
2022-11-16T19:23:31Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2
2022-11-16T19:24:10Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:24:10Z INF Retrying connection in up to 8s connIndex=0 ip=198.41.200.193
2022-11-16T19:24:10Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:24:10Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:24:10Z INF Retrying connection in up to 8s connIndex=2 ip=198.41.200.33
2022-11-16T19:24:10Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:24:10Z INF Retrying connection in up to 8s connIndex=1 ip=198.41.192.47
2022-11-16T19:24:10Z INF Retrying connection in up to 8s connIndex=3 ip=198.41.192.57
2022-11-16T19:24:11Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1
2022-11-16T19:24:13Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0
2022-11-16T19:24:16Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
2022-11-16T19:24:17Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2
2022-11-16T19:24:27Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:24:27Z INF Retrying connection in up to 16s connIndex=3 ip=198.41.192.57
2022-11-16T19:24:27Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:24:27Z INF Retrying connection in up to 16s connIndex=2 ip=198.41.200.33
2022-11-16T19:24:27Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:24:27Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:24:27Z INF Retrying connection in up to 16s connIndex=0 ip=198.41.200.193
2022-11-16T19:24:27Z INF Retrying connection in up to 16s connIndex=1 ip=198.41.192.47
2022-11-16T19:24:27Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2
2022-11-16T19:24:33Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
2022-11-16T19:24:38Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0
2022-11-16T19:24:43Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1
2022-11-16T19:24:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:24:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:24:47Z INF Retrying connection in up to 32s connIndex=2 ip=198.41.200.33
2022-11-16T19:24:47Z INF Retrying connection in up to 32s connIndex=0 ip=198.41.200.193
2022-11-16T19:24:47Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:24:47Z INF Retrying connection in up to 32s connIndex=3 ip=198.41.192.57
2022-11-16T19:24:51Z ERR Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:24:51Z INF Retrying connection in up to 32s connIndex=1 ip=198.41.192.47
2022-11-16T19:24:58Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=2
2022-11-16T19:25:04Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
2022-11-16T19:25:04Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0
2022-11-16T19:25:14Z ERR Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1
2022-11-16T19:30:09Z INF Connection fac478cb-e38d-4110-ac03-c84a18eb6e20 registered connIndex=2 ip=198.41.200.33 location=VIE
2022-11-16T19:30:10Z INF Connection b36d1e6a-60c7-457e-8daf-51bf7f49c6a1 registered connIndex=3 ip=198.41.192.57 location=PRG
2022-11-16T19:30:10Z INF Connection 2fb303d2-262d-4d57-a058-4c5107d44eec registered connIndex=1 ip=198.41.192.47 location=PRG
2022-11-16T19:30:10Z INF Connection fe9705b4-df87-487f-9a62-345568c2a0ab registered connIndex=0 ip=198.41.200.193 location=VIE
2022-11-16T19:30:23Z INF Unregistered tunnel connection connIndex=0
2022-11-16T19:30:23Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:30:23Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 ip=198.41.200.193
2022-11-16T19:30:23Z INF Retrying connection in up to 1s connIndex=0 ip=198.41.200.193
2022-11-16T19:30:23Z INF Unregistered tunnel connection connIndex=3
2022-11-16T19:30:23Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:30:23Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 ip=198.41.192.57
2022-11-16T19:30:23Z INF Retrying connection in up to 1s connIndex=3 ip=198.41.192.57
2022-11-16T19:30:24Z WRN Connection terminated error="timeout: no recent network activity" connIndex=3
2022-11-16T19:30:24Z INF Unregistered tunnel connection connIndex=2
2022-11-16T19:30:24Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:30:24Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=2 ip=198.41.200.33
2022-11-16T19:30:24Z INF Retrying connection in up to 1s connIndex=2 ip=198.41.200.33
2022-11-16T19:30:25Z WRN Connection terminated error="timeout: no recent network activity" connIndex=0
2022-11-16T19:30:26Z INF Unregistered tunnel connection connIndex=1
2022-11-16T19:30:26Z ERR Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:30:26Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.47
2022-11-16T19:30:26Z INF Retrying connection in up to 1s connIndex=1 ip=198.41.192.47
2022-11-16T19:30:26Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
2022-11-16T19:30:26Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1