ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข13mo agoโ€ข
2 replies
notAsquare1

ERR Failed to serve tunnel connection error="context canceled"

Whenever I try to run my tunnel, the error above appears in the terminal. I did not cancel the tunnel, it just does this immediately after starting it. I have seen many issues opened on github and the cloudflare community but none of them were either solved or relevant. I set this up by creating a tunnel through the dashboard and installing cloudflared on the server, then running
cloudflared service install <token>
cloudflared service install <token>
then running
cloudflared tunnel run <tunnel-name>
cloudflared tunnel run <tunnel-name>


I saw that it had an insufficient buffer size so I tried increasing it with the commands in the link provided with the error but none of them worked. It stopped showing the buffer error but still crashed on this "context canceled" error. Does anyone know what this error means, and how to fix it?

I got these:
connIndex=0 event=0
connIndex=0 event=0
not sure if they would be helpful
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ERR_CONNECTION_FAILED:
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
ERR_CONNECTION_REFUSED error
Cloudflare DevelopersCDCloudflare Developers / general-help
9mo ago
error err_connection_refused
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago
ERR_CONNECTION_REFUSED
Cloudflare DevelopersCDCloudflare Developers / general-help
6mo ago