cloudflare / cloudflare/cloudflared
🐛'cloudflared tunnel login' does not complete
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
'cloudflared tunnel login' does not complete
**To Reproduce**
I am trying to follow these instructions to create a tunnel from my localhost to a static domain created by cloudflare. Create a locally-managed tunnel (CLI) · Cloudflare Zero Trust docs I am stalled at the second step: ‘cloudflared tunnel login’ redirects me to ‘https://dash.cloudflare.com/argotunnel?aud=&callback=https%3A%2F%2Flogin.cloudflareaccess.org%2F_-asOzk-STJjLc3gdY23fYKlQ2LTM3PnsyDj2PGZsX8%3D’ But even after logging in on cloudflare from the browser, I still get ten messages like this: ‘Timestamp INF Waiting for login…’ Followed by ‘Failed to write the certificate due to the following error: Failed to fetch resource Your browser will download the certificate instead. You will have to manually copy it to the following path:’
However, the browser does not download the certificate. I have tried troubleshooting steps such as updating my browser or logging in with a different browser, to no avail. How do I solve this error?
If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : none. failing before that step.
5. cloudflared config: none. failing before that step.
**Expected behavior**
I was expecting for cloudflared to get a certificate that would help me with the next step, 'cloudflared tunnel create', but every tunnel management command is blocked because I cannot complete the 'cloudflared tunnel login' step.
**Environment and versions**
Apple M2 MacBook Air, macOS 14.5
cloudflared version 2024.5.0 (built 2024-05-16T14:20:06Z)
**Logs and errors**
Other than the logs noted above there are no errors.
Contributor guide
Assessment
This issue has not been assessed yet.