Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Could not start Cloudflare tunnel: max retries reached

Could not start Cloudflare tunnel: max retries reached

gautam9176
Shopify Partner
4 0 3

 

I'm currently developing a public app on my local system, and everything was running smoothly. However, I recently encountered an error, which is illustrated in this screenshot: https://prnt.sc/tq_qCVNfm5AT. I've attempted various troubleshooting approaches, including updating both Node and the Shopify CLI to their latest versions, as indicated in the screenshot. Unfortunately, these efforts have not resolved the issue. I've also changed my ngrok account, but the problem persists. I would greatly appreciate a prompt solution to this matter.

 
Replies 8 (8)

fpdev
Shopify Partner
7 0 3

Same here, it looks like Cloudflare's having an incident right now: https://www.cloudflarestatus.com/incidents/hm7491k53ppg

Harelk1015
Shopify Partner
40 1 6

Any solution for that? We just cant work on our apps now?

fpdev
Shopify Partner
7 0 3

Best we escalate through Shopify Partner support.

Harelk1015
Shopify Partner
40 1 6

I found this : https://github.com/Shopify/cli/issues/3060#issuecomment-1792161672

I think im close to makining it work, i will update, you should try as well, terns out you can map ports with vscode

fpdev
Shopify Partner
7 0 3

I'm just going to take the day off 🤣

Screenshot_20231104_005920.png

 

Cloudflare calls this "operational"

DylanVann
Shopify Partner
3 0 1

This seems like some kind of a rate limit issue to me, on Cloudflare's end, because it'll be working fine, and then all of the sudden will stop working. Generally seems to happen after restarting the dev server several times. I've been trying to debug an issue with the dev server not connecting to the store, so I've been restarting it a lot.

 

- Used `shopify run dev` in multiple projects, and each time would get `Could not start Cloudflare tunnel: max retries reached.`

- Switched on a VPN, `shopify run dev` would work correctly

- Switched off VPN, `Could not start Cloudflare tunnel: max retries reached.`

 

I am using this workaround: https://community.shopify.com/c/shopify-apps/cloudflare-tunnel-error-quot-could-not-start-cloudflare...

EssDeeJay
Shopify Partner
6 0 3

Agreed, we have had the same issue and upon a lot of retry, it still gives the same error. Could not understand the issue as it just tells you to retry the command or use a custom tunnel, a more detailed message would be much more helpful. 

 

However, I could not find the rate limits anywhere. So, still, ngrok would be the only option to alternatively work on this.

Founder | Lead Developer @The SJ Development
Contact Us
Website | Email
DylanVann
Shopify Partner
3 0 1

There's also Cloudflare's tunnel (https://developers.cloudflare.com/pages/how-to/preview-with-cloudflare-tunnel/). Shopify's CLI does some kind of auth to create a tunnel, which can then end up in this rate limited state.

If you create a Cloudflare tunnel yourself and then use it manually like you would `ngrok` that works though.