cloudflare / cloudflare/cloudflared

🐛Cloudflared Windows Tunnel Setup Failing Due to Missing cert.pem and Inconsistent Service Installation How to Fully Clean Up and Reinstall

Open
#1,566 2 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to set up a dedicated Cloudflare Tunnel for a specific customer on Windows, but I'm running into several issues when installing and managing the cloudflared service. When I run cloudflared.exe service install , the log shows INF cloudflared agent service is installed windowsServiceName=Cloudflared followed by Cannot install event logger: SYSTEM\CurrentControlSet\Services\EventLog\Application\Cloudflared registry key already exists. After that, if I run sc query Cloudflared, Windows returns error 1060 saying the service does not exist. In addition, when I try cloudflared tunnel list, I get Cannot determine default origin certificate path. No file cert.pem in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp](pplx://action/translate). You need to specify the origin certificate path by specifying the origincert option in the configuration file, or set TUNNEL_ORIGIN_CERT environment variable and Error locating origin cert: client didn't specify origincert path. Because of this, I can’t obtain or use the origin certificate (cert.pem) for this customer’s tunnel

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.