cloudflare / cloudflare/cloudflared

🐛Unable to install/activate cloudflared service on Windows Server 2025

Open
#1,366 0 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

**Describe the bug**
I'm seeing the following error message when I I attempt to install/activate the cloudflared service on Windows Server 2025. The application successfully installs, yet running _cloudflared.exe service install ####_ produces:

_2024-12-06T00:19:57Z INF Installing cloudflared Windows service
2024-12-06T00: 19:57Z ERR Unable to determine extra arguments for windows service error="Provided tunnel token
is not valid (unexpected end of JSON input)." windowsServiceName=Cloudflared
Unable to determine extra arguments for windows service: Provided tunnel token is not valid (unexpected end of
JSON_

I've tried using several different tokens and all produce the same error.

Screenshot 2024-12-05 at 16 22 16

**To Reproduce**
Steps to reproduce the behavior:
1. Install the cloudflared 64-bit connector on Windows Server 2025
2. Run _cloudflared.exe service install ####_
3. See error:
_2024-12-06T00:19:57Z INF Installing cloudflared Windows service
2024-12-06T00: 19:57Z ERR Unable to determine extra arguments for windows service error="Provided tunnel token
is not valid (unexpected end of JSON input)." windowsServiceName=Cloudflared
Unable to determine extra arguments for windows service: Provided tunnel token is not valid (unexpected end of
JSON_

**Expected behavior**
The service should activate and the endpoint should join the Tunnel.

**Environment and versions**
- OS: Windows Server 2025
- Architecture: Intel
- Version: 24H2

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.