Tunnel become unusable after a few hours

What is the name of the domain?

lucashealth.ai

What is the error message?

2024-07-23T12:12:20Z DBG Failed to handle QUIC stream error=“stream 373 canceled by remote with error code 0” connIndex=0 event=0 ip=198.41.192.77

What is the issue you’re encountering

My application is unusable through the tunnel after a few hours. If I connect directly to my application through http port it works. The tunnel stop working after a few hours. Sometimes is fine for 24h, but lately my clients can’t connect in the morning, even if I restart cloudflared (docker compose) at midnight.

What steps have you taken to resolve the issue?

Restarting my docker compose (so cloudflared) works, but this issue happened 5 times out of last 7 days.

What are the steps to reproduce the issue?

Nothing special just running cloudflared in my docker compose. This is my docker compose for cloudflared:

version: '3'

services:
  cloudflared:
    container_name: cloudflared-arcadebrain
    # Restart on crashes and on reboots
    restart: unless-stopped
    image: cloudflare/cloudflared:latest
    command: tunnel --loglevel debug --no-autoupdate run
    environment:
      - TZ=America/New_York
      - TUNNEL_TOKEN=<MYTOKEN>
    volumes:
      - ~/arcadebrain/devops/hera:/etc/cloudflared
    security_opt:
      - apparmor=unconfined

I found other topics relative to the same QUIC error that suggest the issue is QUIC, so I disabled it from the Cloudflare dashboard and added --protocol http2 to cloudflared command to force using http2.

Waiting for some feedback I’ll go with these settings for now.

How are these settings working our for you? I seem to have similar problem and it is also associated with high CPU use

It’s too early to say, but so far it’s working and it has been 2 full days of zero issues. Let’s talk again in a week or so :wink:

1 Like

I’m having a bit of a hard time locating this setting in the dashboard. Care to share where you found it please? Thanks!!!

CF buried this setting in Speed/Optimization:

  1. Log into the Cloudflare dashboard
  2. Select your account and zone
  3. Go to Speed > Optimization
  4. Go to Protocol Optimization
  5. For HTTP/3, switch the toggle to Off.

For more information: HTTP/3 (with QUIC) · Cloudflare Speed docs

2 Likes

This appeared to fix it for me. Thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.