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> then running 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 not sure if they would be helpful
2 Replies
Chaika
Chaika2w ago
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
Can you include more logs? The normal buffer thing you see is just a warning and not an error, unless you're seeing something else. Context canceled sounds like it can't reach out to Cloudflare/is timing out
notAsquare1
notAsquare1OP2w ago
It was a warning, but I fixed it shortly after. I was originally trying to port forward a minecraft server but I’m using playit.gg now

Did you find this page helpful?