What is the name of the domain?
n/a
What is the error number?
No error
What is the error message?
No error
What is the issue you’re encountering
When cloudflared is ran as a service, the config.yaml file is not fully respected. I can see a log file entry for the installed service that shows some of the configuration is read, however, the tunnel is not used on startup. Instead, the service always creates a quick tunnel to my configured url. It’s as if the service is ignoring the “tunnel” key in the configuration.
What steps have you taken to resolve the issue?
I have closely followed the steps in the documentation located here: Locally-managed tunnel · Cloudflare Zero Trust docs
I have debugged via log entries. Here is an example log entry showing that the service is parsing the configuration file:
2024-07-25T15:17:00Z INF Settings: map[cred-file:/Users/[email protected]/.cloudflared/82ad4f45-149a-41e9-b026-90ab432c8804.json credentials-file:/Users/[email protected]/.cloudflared/82ad4f45-149a-41e9-b026-90ab432c8804.json ha-connections:1 protocol:quic url:http://localhost:8081]
Here is an example config.yaml
logDirectory: /var/log/cloudflared
url: http://localhost:8081
tunnel: 82ad4f45-149a-41e9-b026-90ab432c8804
credentials-file: /Users/[email protected]/.cloudflared/82ad4f45-149a-41e9-b026-90ab432c8804.json
In the log file, before the configuration output, the service always shows the creation of a quick tunnel:
2024-07-25T15:17:00Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): |
2024-07-25T15:17:00Z INF | https://today-folder-detected-criteria.trycloudflare.com
What are the steps to reproduce the issue?
Authenticate cloudflared with your cloudflare account and follow the instructions to install cloudflared as a service, setup a tunnel and configuration file.