Failed to create tunnel: Create Tunnel API call failed: Failed to create tunnel

What is the name of the domain?

gultekinsmarthome.com.tr

What is the error number?

10000

What is the error message?

failed to create tunnel: Create Tunnel API call failed: Failed to create tunnel: code: 10000, reason: Authentication error

What is the issue you’re encountering

Hello Cloudflare I have a domain called Gulteinsmarthome.com.tr. For this domain, I also made 2 DNS Nameserver guidance. These orientations were active. I get the following error on the home assistant. Help me? [22:24:47] Info: Checking Add-on Config … [22:24:47] Info: Checking for Existing Certificate … [22:24:48] Info: Existing Certificate Found [22:24:48] Info: Checking for Existing Tunnel … [22:24:48] Nottice: No Tunnel File Found [22:24:48] Info: Creating New Tunnel … Failed to Create Tunnel: Create Tunnel API Call Failed: Failed to Create Tunnel: Code: 10000, Reason: Authentication ERROR [22:24:48] Fatal: Failed to Create Tunnel. Please check the cloudflare zero trust dashboard for an existing tunnel with the name homeassist and delete it: Visit https://one.dash.cloudflare.com, Then Click on Access/Tunnels S6-RC: Warning: Unable to Start Service Init-Cloudflared-Config: Command Exited 1 /run/s6/basedir/scripts/rc.init: Warning: s6-rc failed to properly bring all the service up! Check Your Logs (in/Run/Uncaught-Logs/Current if You Have In-Container Logging) for More Information. /run/s6/basedir/scripts/rc.init: fatal: stopping the container. Live

What steps have you taken to resolve the issue?

I delete and recreate tunnel

Hello, the error seems like a standard message for authentication failure, which could be due to several possible issues:

  1. Incorrect Account/Zone ID: Double-check that the IDs are correct.
  2. API Token Issues: Ensure that the token has the correct permissions for the intended actions.
  3. Missing X-Auth-Email Header: If using the X-Auth-Key header, make sure X-Auth-Email is included.
  4. Insufficient Privileges: Verify that your token has adequate privileges for the action.

I recommend testing with a direct API call (e.g., using curl or Postman) to confirm that your credentials are set up properly.

https://developers.cloudflare.com/api-next/resources/zero_trust/subresources/tunnels/methods/create/

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.