cloudflare / cloudflare/cloudflared

🐛 Incoming request ended abruptly: context canceled - http type

Open
#1,360 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**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Running cloudflared in Kubernetes (DOcean)

If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : 37c23069-2c21-413b-917e-3c618d4e05ef
5. Configuration is here: https://github.com/Five-Borough-Fedi-Project/masto.nyc-docean/blob/main/kubernetes/dependencies/cloudflared.yaml and here: https://github.com/Five-Borough-Fedi-Project/masto.nyc-docean/blob/main/kubernetes/services/configmap-cloudflared.yaml

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

I'm tracking down some issues in our proxy, and am addressing strange errors in the chain. This keeps coming up. It's not so much that I expect them to not happen, but I expect the error message to explain more what is going on- `Incoming request ended abruptly: context canceled` doesn't really tell me anything. *What does this mean? How do I address it?*

**Environment and versions**
- OS: official docker image
- Architecture: DOcean k8s
- Version: 2024.11.1

**Logs and errors**
```
2024-11-21T14:40:33Z INF Starting tunnel tunnelID=37c23069-2c21-413b-917e-3c618d4e05ef
2024-11-21T14:40:33Z INF Version 2024.11.1 (Checksum 2737bd3967532125fd5b3dd3a066ba19a90513fb302521442c3f8fda81b59e9f)
2024-11-21T14:40:33Z INF GOOS: linux, GOVersion: go1.22.5-devel-cf, GoArch: amd64
2024-11-21T14:40:33Z INF Settings: map[config:/etc/cloudflared/config/config.yaml cred-file:/etc/cloudflared/creds/credentials.json credentials-file:/etc/cloudflared/creds/credentials.json metrics:0.0.0.0:2000 no-autoupdate:true]
2024-11-21T14:40:33Z INF Environmental variables map[STUNNEL_PORT:tcp://10.245.58.160:6379 STUNNEL_PORT_6379_TCP:tcp://10.245.58.160:6379 STUNNEL_PORT_6379_TCP_ADDR:10.245.58.160 STUNNEL_PORT_6379_TCP_PORT:6379 STUNNEL_PORT_6379_TCP_PROTO:tcp STUNNEL_SERVICE_HOST:10.245.58.160 STUNNEL_SERVICE_PORT:6379 STUNNEL_SERVICE_PORT_STUNNEL:6379]
2024-11-21T14:40:33Z INF Generated Connector ID: 68095439-0a95-4c0f-82f8-91203f90c9df
2024-11-21T14:40:33Z INF Initial protocol quic
2024-11-21T14:40:33Z INF ICMP proxy will use 10.244.0.68 as source for IPv4
2024-11-21T14:40:33Z INF ICMP proxy will use fe80::2467:98ff:fe27:a1a6 in zone eth0 as source for IPv6
2024-11-21T14:40:33Z INF Starting Hello World server at 127.0.0.1:40067
2024-11-21T14:40:33Z INF Starting metrics server on [::]:2000/metrics
2024-11-21T14:40:34Z INF Registered tunnel connection connIndex=0 connection=xxx event=0 ip=198.41.200.43 location=ewr07 protocol=quic
2024-11-21T14:40:34Z INF Registered tunnel connection connIndex=1 connection=xxx event=0 ip=198.41.192.107 location=ewr11 protocol=quic
2024-11-21T14:40:35Z INF Registered tunnel connection connIndex=2 connection=xxx event=0 ip=198.41.200.73 location=ewr08 protocol=quic
2024-11-21T14:40:36Z INF Registered tunnel connection connIndex=3 connection=xxx event=0 ip=198.41.192.47 location=ewr01 protocol=quic
2024-11-21T14:45:52Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T14:45:52Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/accounts/verify_credentials event=0 ip=198.41.192.107 type=http
2024-11-21T14:53:22Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T14:53:22Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v2/instance event=0 ip=198.41.192.107 type=http
2024-11-21T14:53:22Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T14:53:22Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/statuses/107043229643297115 event=0 ip=198.41.192.107 type=http
2024-11-21T14:53:22Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T14:53:22Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/accounts/verify_credentials event=0 ip=198.41.192.107 type=http
2024-11-21T14:53:22Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T14:53:22Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/accounts/112074437915000549 event=0 ip=198.41.192.107 type=http
2024-11-21T15:01:15Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T15:01:15Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/followed_tags?limit=200 event=0 ip=198.41.192.107 type=http
2024-11-21T15:01:15Z ERR error="Incoming request ended abruptly: context canceled" connIndex=1 event=1 ingressRule=0 originService=http://mastodon-nginx.mastodon:80
2024-11-21T15:01:15Z ERR Request failed error="Incoming request ended abruptly: context canceled" connIndex=1 dest=https://masto.nyc/api/v1/statuses/107043229643297115 event=0 ip=198.41.192.107 type=http
```

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.