cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
9.1k stars 800 forks source link

🐛 Cloudflare Tunnel connection dropping with Unregistered tunnel connection #735

Open prvashisht opened 2 years ago

prvashisht commented 2 years ago

Describe the bug I'm trying to install Cloudflare tunnel on my raspberry pi 4b. I've tried using docker images, configuring from the zero trust dashboard, and installing via CLI. The tunnel starts, and I see four registered connections, however, the connections drop within minutes, if not seconds, and the cycle repeats over the course of a few minutes. I also created an issue (https://github.com/brenner-tobias/addon-cloudflared/issues/152) with an addon I'm using for Home Assistant, but it seems the issue is coming from Cloudflare.

To Reproduce Steps to reproduce the behavior: I mainly followed these steps last, after trying out official, and other methods pasted on the internet.

  1. Install cloudflare tunnel from CLI.
  2. Run the tunnel
  3. The connection works for a while, and then it drops.

If it's an issue with Cloudflare Tunnel:

  1. Tunnel ID : abef5b55-26e5-485e-88b0-e399c5af986e
  2. cloudflared config:
    
    tunnel: abef5b55-26e5-485e-88b0-e399c5af986e
    credentials-file: /home/pi/.cloudflared/abef5b55-26e5-485e-88b0-e399c5af986e.json

ingress:

Expected behavior A clear and concise description of what you expected to happen.

Environment and versions

Logs and errors

2022-08-21T00:15:47Z INF Starting tunnel tunnelID=abef5b55-26e5-485e-88b0-e399c5af986e
2022-08-21T00:15:47Z INF Version 2022.8.2
2022-08-21T00:15:47Z INF GOOS: linux, GOVersion: go1.18.5, GoArch: arm
2022-08-21T00:15:47Z INF Settings: map[cred-file:/home/pi/.cloudflared/abef5b55-26e5-485e-88b0-e399c5af986e.json credentials-file:/home/pi/.cloudflared/abef5b55-26e5-485e-88b0-e399c5af986e.json]
2022-08-21T00:15:47Z INF Generated Connector ID: 7043215a-acc5-46e6-b4df-c7476671acc7
2022-08-21T00:15:47Z INF cloudflared will not automatically update if installed by a package manager.
2022-08-21T00:15:47Z INF Initial protocol quic
2022-08-21T00:15:47Z INF Starting metrics server on 127.0.0.1:43445/metrics
2022/08/21 02:15:47 failed to sufficiently increase receive buffer size (was: 176 kiB, wanted: 2048 kiB, got: 352 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2022-08-21T00:15:48Z INF Connection 04d6faaa-1c4a-4579-82af-5fa2f8473405 registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:15:48Z INF Connection 72dade4b-4c48-42c5-bf28-d246d1c7f132 registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:15:49Z INF Connection e478cc89-54e5-4291-baf4-4e73c2202900 registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:15:50Z INF Connection 59584761-439f-4afd-886f-28f96fe8b9c9 registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:16:22Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:16:22Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:16:22Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:16:22Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:16:23Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:16:23Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:16:23Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:16:23Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:16:23Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:16:23Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:16:23Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:16:23Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:16:23Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:16:23Z ERR Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:16:23Z ERR Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:16:23Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:16:24Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2
2022-08-21T00:16:24Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1
2022-08-21T00:16:25Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3
2022-08-21T00:16:25Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0
2022-08-21T00:16:39Z INF Connection 4e92b5ef-e165-4d93-9bad-22e99e69304b registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:16:39Z INF Connection 7200afea-2fc8-4a67-b38e-d75d142f9272 registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:16:40Z INF Connection 4c593406-d7fc-4a5c-87ff-45272e8c8a2a registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:16:40Z INF Connection ff78fc3c-e5e8-453b-b6cb-75dab0da0a51 registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:17:07Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:17:07Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:17:07Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:17:07Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:17:08Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:17:08Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:17:08Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:17:08Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:17:08Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:17:08Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:17:08Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:17:08Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:17:08Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:17:08Z ERR Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:17:08Z ERR Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:17:08Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:17:08Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3
2022-08-21T00:17:08Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0
2022-08-21T00:17:09Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2
2022-08-21T00:17:09Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
2022-08-21T00:17:22Z INF Connection ee65c48e-4f5c-464e-b710-485688a62f3c registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:17:22Z INF Connection 6f11b167-feb8-4ba9-be2a-c99d7f326ac9 registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:17:22Z INF Connection 70f210db-dd07-4597-8309-7a1eeddfd99d registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:17:22Z INF Connection 24e96385-0f28-455f-8230-cba37d8ae9af registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:17:53Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:17:53Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:17:53Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:17:53Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:17:53Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:17:53Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:17:53Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:17:53Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:17:53Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:17:53Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:17:53Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:17:53Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:17:53Z WRN Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1
2022-08-21T00:17:54Z WRN Connection terminated error="timeout: no recent network activity" connIndex=0
2022-08-21T00:17:55Z WRN Connection terminated error="timeout: no recent network activity" connIndex=3
2022-08-21T00:18:26Z INF Connection ed81486e-8743-4c87-a004-9e28cb45927e registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:18:26Z INF Connection a53c588c-93d1-422a-a608-0a88cd3cfd6d registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:18:27Z INF Connection e59e0e60-a7e5-4b04-91c9-7646dfc01198 registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:18:38Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:18:38Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:18:38Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:18:38Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:18:39Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:18:39Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:18:39Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:18:39Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:18:39Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:18:39Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:18:39Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:18:39Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:18:39Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:18:39Z ERR Failed to serve quic connection error="timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:18:39Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:18:39Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:18:40Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
2022-08-21T00:18:40Z ERR Connection terminated error="timeout: no recent network activity" connIndex=3
2022-08-21T00:18:40Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1
2022-08-21T00:18:40Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0
2022-08-21T00:18:51Z INF Connection 9c6e12d5-d8df-4446-b251-d93228c613d2 registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:18:51Z INF Connection b71c8593-7501-4c21-88d3-b20acefc35dd registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:18:51Z INF Connection 9de81e02-9bfc-4aa1-b0dc-c81311ac1dbf registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:18:51Z INF Connection b4dddb57-2faf-44e8-85e4-8456a220130f registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:19:24Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:19:24Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:19:24Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:19:24Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:19:25Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:19:25Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:19:25Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:19:25Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:19:25Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:19:25Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:19:25Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:19:25Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:19:25Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:19:25Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:19:25Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:19:25Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:19:26Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3
2022-08-21T00:19:26Z ERR Connection terminated error="timeout: no recent network activity" connIndex=2
2022-08-21T00:19:27Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=1
2022-08-21T00:19:27Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0
2022-08-21T00:21:41Z INF Connection aa967989-d201-4228-9b53-c03bd4fb0b03 registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:21:41Z INF Connection 757fa821-1fb3-48e8-bce0-329da4319cfb registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:21:41Z INF Connection dae61dc8-f27b-4026-811b-bf0dd4470daf registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:21:41Z INF Connection 4229d509-88ae-4e17-ba6a-b592cb6cc5d5 registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:22:25Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:22:25Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:22:25Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:22:25Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:22:25Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:22:25Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:22:25Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:22:25Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:22:26Z WRN Connection terminated error="timeout: no recent network activity" connIndex=0
2022-08-21T00:22:26Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:22:26Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:22:26Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:22:26Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:22:26Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:22:26Z ERR Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:22:26Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:22:26Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:22:26Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2
2022-08-21T00:22:27Z ERR Connection terminated error="timeout: no recent network activity" connIndex=1
2022-08-21T00:22:27Z ERR Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3
2022-08-21T00:23:50Z INF Connection be3fa498-5ceb-4bb6-9221-4a6c823f87f1 registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:23:50Z INF Connection ded33473-b672-476f-a68f-66cb9261fbe2 registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:23:50Z INF Connection 7898b8d7-6674-4d5f-961b-da4371f52746 registered connIndex=2 ip=198.41.200.13 location=AMS
2022-08-21T00:23:50Z INF Connection a313225a-8c8b-4a9a-b183-7c500b5788d2 registered connIndex=3 ip=198.41.192.227 location=AMS
2022-08-21T00:23:56Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:23:56Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:23:56Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.107
2022-08-21T00:23:56Z INF Retrying connection in up to 1s seconds connIndex=1 ip=198.41.192.107
2022-08-21T00:23:56Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:23:56Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:23:56Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.13
2022-08-21T00:23:56Z INF Retrying connection in up to 1s seconds connIndex=2 ip=198.41.200.13
2022-08-21T00:23:56Z WRN Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2
2022-08-21T00:23:56Z WRN Connection terminated error="timeout: no recent network activity" connIndex=1
2022-08-21T00:24:41Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:24:41Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:24:41Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 ip=198.41.200.73
2022-08-21T00:24:41Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:24:43Z WRN Connection terminated error="timeout: no recent network activity" connIndex=0
2022-08-21T00:26:10Z INF Unregistered tunnel connection connIndex=3
2022-08-21T00:26:10Z ERR Failed to serve quic connection error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:26:10Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-08-21T00:26:10Z INF Retrying connection in up to 1s seconds connIndex=3 ip=198.41.192.227
2022-08-21T00:26:11Z ERR Connection terminated error="timeout: no recent network activity" connIndex=3
^C
2022-08-21T00:26:11Z INF Initiating graceful shutdown due to signal interrupt ...
2022-08-21T00:26:11Z INF Connection 2893dea5-5366-46f0-aad1-9101ea5b8e44 registered connIndex=2 ip=198.41.200.13 location=AMS

2022-08-21T00:26:12Z INF Connection 5960753c-27b7-4bbc-b91d-b3a9f6ea2389 registered connIndex=0 ip=198.41.200.73 location=AMS
2022-08-21T00:26:12Z INF Unregistered tunnel connection connIndex=2
2022-08-21T00:26:12Z WRN Failed to serve quic connection error="context canceled" connIndex=2 ip=198.41.200.13
2022-08-21T00:26:12Z INF Unregistered tunnel connection connIndex=0
2022-08-21T00:26:12Z ERR Failed to serve quic connection error="Application error 0x0" connIndex=0 ip=198.41.200.73
2022-08-21T00:26:12Z ERR Serve tunnel error error="Application error 0x0" connIndex=0 ip=198.41.200.73
2022-08-21T00:26:12Z INF Retrying connection in up to 1s seconds connIndex=0 ip=198.41.200.73
2022-08-21T00:26:12Z INF Connection d1da3c8f-c3c0-4520-adea-82870678a413 registered connIndex=1 ip=198.41.192.107 location=AMS
2022-08-21T00:26:12Z INF Unregistered tunnel connection connIndex=1
2022-08-21T00:26:12Z ERR Failed to serve quic connection error="context canceled" connIndex=1 ip=198.41.192.107
sudarshan-reddy commented 2 years ago

Hey @prvashisht ! Thanks for the detailed report.

Looking through your logs it does seem to me like cloudflared is reconnecting even if some of these connections were dropped. Is your internet connection stable? Are you losing connectivity to your tunnel?

prvashisht commented 2 years ago

@sudarshan-reddy yes, the connection is stable, I have 1Gbit connection and speedtest shows it's been working fine (at least in the last two days)

Screenshot 2022-08-21 at 09 26 40

Is there a way (and is it possible) to get more detailed logs? It's because I'm seeing this problem regardless of my installation method.

sudarshan-reddy commented 2 years ago

Connection drops are expected (thats why we have 4 and reconnect). However, the periodicity of your connection drop does seem rather high. Can you temporarily add protocol: http2 to your config.yaml and let me know what happens?

prvashisht commented 2 years ago

Now I'm having a different problem, I was getting this page on every subdomain I configured.

Screenshot 2022-08-21 at 13 49 16

So I migrated the tunnel from locally configured to remotely managed one, the same Unable to connect to origin problem persists. I'm really new to tinkering with my network and for now I feel lost. I just tried tailscale and I'm going to use that and will drop trying to make this work.

I couldn't make http2 protocol work long enough to get any useful logs.

don4of4 commented 2 years ago

Hey @sudarshan-reddy we are seeing similar (aggressive) connection drops going out of azure southcentraus AKS on quic. More eyeballs on these connection faults would be helpful. See #2535568.

iAmSaugata commented 2 years ago

@sudarshan-reddy yes, the connection is stable, I have 1Gbit connection and speedtest shows it's been working fine (at least in the last two days) Screenshot 2022-08-21 at 09 26 40

Is there a way (and is it possible) to get more detailed logs? It's because I'm seeing this problem regardless of my installation method.

Is this graph representing correctly? It looks like your upload speed it very low, and your CF tunnel is actually dependent on incoming speed and stability, and as per the graph, it looks like very unstable.

I assume, in the graph, every block representing 30 minutes, and if you looks closely, you will see there are multiple drop in download and upload speed, it could be possible that the actual connection getting dropped in between those 30 minutes. Please validated your CF logs with those timings.

prvashisht commented 2 years ago

@iAmSaugata I have stopped using Cloudflare for now, and I will in the near future look for a more granulated graph timed with CF logs. However, the speed shown is correct. My internet connection has a 1Gibps download and 50Mbps upload speed. Some drops to ~150Mbps are expected in the DL speed.

Kiran01bm commented 2 years ago

So we are hitting the same issue and the background is that we are migrating from a dynamic tunnel to named one's. The daemon version 2022.8.4.

2022-09-08 12:35:212022/09/08 02:35:21 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/09/08 02:35:21 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.
nmldiegues commented 2 years ago

So we are hitting the same issue and the background is that we are migrating from a dynamic tunnel to named one's. The daemon version 2022.8.4.

2022-09-08 12:35:212022/09/08 02:35:21 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/09/08 02:35:21 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.

That is just a warning to let you know you can improve the performance of the QUIC transport used by the tunnel by tweaking the UDP buffers allowed by the kernel

it does not compromise functionality at all; it will all still just work

morpig commented 1 year ago

Experiencing similar error messages on 2022.10.3, lost all 4 HAs within 10 seconds. Running in kubernetes setup.

2022-11-11T21:10:53Z ERR  error="Incoming request ended abruptly: context canceled" cfRay=768a04610c4fa089-SIN ingressRule=2 originService=http://kong-proxy.kong.svc.cluster.local:8080
2022-11-12T00:00:22Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-11-12T00:00:22Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3 ip=198.41.192.227
2022-11-12T00:00:22Z INF Retrying connection in up to 1s connIndex=3 ip=198.41.192.227
2022-11-12T00:00:23Z WRN Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=3
2022-11-12T00:00:27Z INF Unregistered tunnel connection connIndex=2
2022-11-12T00:00:27Z WRN Failed to serve quic connection error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.53
2022-11-12T00:00:27Z WRN Serve tunnel error error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2 ip=198.41.200.53
2022-11-12T00:00:27Z INF Retrying connection in up to 1s connIndex=2 ip=198.41.200.53
2022-11-12T00:00:28Z INF Unregistered tunnel connection connIndex=0
2022-11-12T00:00:28Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=0 ip=198.41.200.113
2022-11-12T00:00:28Z WRN Serve tunnel error error="timeout: no recent network activity" connIndex=0 ip=198.41.200.113
2022-11-12T00:00:28Z INF Retrying connection in up to 1s connIndex=0 ip=198.41.200.113
2022-11-12T00:00:28Z WRN Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=2
2022-11-12T00:00:28Z INF Unregistered tunnel connection connIndex=1
2022-11-12T00:00:28Z WRN Failed to serve quic connection error="timeout: no recent network activity" connIndex=1 ip=198.41.192.67
2022-11-12T00:00:28Z ERR Serve tunnel error error="timeout: no recent network activity" connIndex=1 ip=198.41.192.67
2022-11-12T00:00:28Z INF Retrying connection in up to 1s connIndex=1 ip=198.41.192.67
2022-11-12T00:00:28Z INF Connection 8c637052-3a44-4061-a55e-754cf0b9bef3 registered connIndex=2 ip=198.41.200.53 location=SIN
2022-11-12T00:00:29Z INF Connection d0460cc6-9de2-45fc-8b04-4963a24a0232 registered connIndex=3 ip=198.41.192.227 location=NRT
2022-11-12T00:00:29Z WRN Connection terminated error="timeout: no recent network activity" connIndex=1
2022-11-12T00:00:30Z INF Connection 42055beb-e80f-4523-a35c-fa8613698a9f registered connIndex=0 ip=198.41.200.113 location=SIN
2022-11-12T00:00:36Z INF Connection b8279b12-2b29-4e74-a549-d73dd721d4ca registered connIndex=1 ip=198.41.192.67 location=NRT
2022-11-12T00:21:24Z ERR Failed to handle QUIC stream error=EOF connIndex=0 ip=198.41.200.113
Screen Shot 2022-11-12 at 07 34 28

Thankfully the other replica immediately took over the traffic.

Should I send debug files over ticket?

joliveirinha commented 1 year ago

@morpig, that should be ok.