Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: T3 Connect managed endpoint provisioning fails on every startup retry (Windows 11 Pro, 0.0.42): managed_endpoint_provisioning_failed / HTTP 504 #14155

Closedmuzz689(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues. This looks like the same relay-side failure as #14070 (open) and #13681 (closed after a later retry succeeded). I'm filing it separately with this environment's IDs so the relay logs can be checked.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. On Windows 11 Pro, set up T3 Connect from the desktop app. The relay client (cloudflared 2026.5.2, managed install) installed fine, and the CLI authorization is stored and valid.
  2. Fully restart T3 Code so the server runs the startup link reconcile (environment.cloud.reconcileDesiredLink).
  3. Open the T3 Code mobile app (Android) → Environments.

Expected behavior

The relay provisions the managed endpoint and returns a tunnel token. cloudflared starts, and the phone can open the environment.

Actual behavior

Every POST https://relay.t3.codes/v1/client/environment-links from the startup reconcile fails, for the full 10-minute retry window. Responses alternate between managed_endpoint_provisioning_failed and a bare HTTP 504 from Cloudflare. No tunnel token comes back, so cloudflared never starts.

The environment still shows up on the phone under T3 Connect, but opening it fails with:

Failed to connect. Reconnecting... Reason: Relay could not reach the environment endpoint (endpoint_request_failed). Trace ID: c558438234c328c6e3cb1279159b47f2

Checks done on this machine:

  • relay.t3.codes resolves and is reachable (HTTPS 200).
  • POST /v1/client/environment-link-challenges with the stored CLI token returns 200, so auth and network are fine.
  • The link proof is generated successfully (environment.cloud.makeLinkProof succeeds on every attempt).
  • cloudflared.exe version runs fine (2026.5.2).
  • t3 connect status before the restart: Exposure enabled, Authorization stored credential, Environment link pending server startup, Relay client available via managed install.

Environment ID: 1408daaf-57fe-4414-89fd-b811a2d5befa

Could someone check relay.managed_endpoint_provider.provision for these traces?

Time (UTC)ResultID
2026-09-28 19:50:16managed_endpoint_provisioning_failedtrace fa91dee01550b6196d6dfc336677c904
2026-09-28 19:50:25managed_endpoint_provisioning_failedtrace f928b0b1706fa33abf98c24333d718e6
2026-09-28 19:50:35managed_endpoint_provisioning_failedtrace 1004fe5ec00ad85400aa907715307b5c
2026-09-28 19:50:46managed_endpoint_provisioning_failedtrace 068e42ebdead71c322df2de962833a88
2026-09-28 19:51:02managed_endpoint_provisioning_failedtrace 6c41c4a914087050fb34ab41d0c9e0ef
2026-09-28 19:51:25HTTP 504cf-ray a4254863ee8f2229-JNB
2026-09-28 19:52:06HTTP 504cf-ray a425495e69f7ecda-JNB
2026-09-28 19:52:46managed_endpoint_provisioning_failedtrace ef3b206c95d4eadb608dfd5c1cee7fff
2026-09-28 19:53:23HTTP 504cf-ray a4254b443ce4aeca-JNB
2026-09-28 19:54:03managed_endpoint_provisioning_failedtrace 8202958ee4a7cde999b2c933ac8dccc6
2026-09-28 19:54:41managed_endpoint_provisioning_failedtrace c1fdd9ab3b552cf42faf2fc476621e41
2026-09-28 19:55:19HTTP 504cf-ray a4254e422cc4da14-JNB
2026-09-28 19:56:06managed_endpoint_provisioning_failedtrace cd27f777c9521f6cb7b7cb44a7ae353c
2026-09-28 19:56:44managed_endpoint_provisioning_failedtrace a3f31bc2f7f71f2a72a82af1013d9ab6
2026-09-28 19:57:21HTTP 504cf-ray a42551115fd07885-JNB
2026-09-28 19:58:01HTTP 504cf-ray a425520abc077394-JNB
2026-09-28 19:58:41HTTP 504cf-ray a42553055d12ee10-JNB
2026-09-28 19:59:21HTTP 504cf-ray a42553fde8e2f4f0-JNB

Mobile-side trace: c558438234c328c6e3cb1279159b47f2

Impact

Blocks work completely

Version or commit

T3 Code (Alpha) desktop 0.0.42 (Windows installer)

Environment

Windows 11 Pro 10.0.26200 (x64), desktop app 0.0.42, managed cloudflared 2026.5.2, Android mobile app. Region: South Africa (Cloudflare JNB edge).

Logs or stack traces

EnvironmentHttpInternalServerError: T3 Connect: Relay environment link is unavailable: managed_endpoint_provisioning_failed. Retry when the relay is available. If this continues, include the trace ID when reporting it. Trace ID: a3f31bc2f7f71f2a72a82af1013d9ab6.
    at environment.cloud.reconcileDesiredLinkWith (bin.mjs:205751:16)
    at environment.cloud.reconcileDesiredLink (bin.mjs:206157:11)

EnvironmentHttpInternalServerError: T3 Connect relay returned HTTP 504 without a recognized error response. Check relay access and any proxy or firewall restrictions, then restart T3 Code. Cloudflare Ray ID: a42551115fd07885-JNB.
    at environment.cloud.reconcileDesiredLinkWith (bin.mjs:205751:16)
    at environment.cloud.reconcileDesiredLink (bin.mjs:206157:11)

Workaround

None found yet. Restarting T3 Code re-runs the reconcile, but every attempt in the retry window failed.

  1. Duplicate of #14070 — same relay-side managed_endpoint_provisioning_failed / HTTP 504 on POST /v1/client/environment-links during managed endpoint provision (0.0.42). Closing this filing and consolidating there.

    Environment ID (for relay log lookup): 1408daaf-57fe-4414-89fd-b811a2d5befa

    Trace IDs, cf-ray values, and the mobile endpoint_request_failed trace (c558438234c328c6e3cb1279159b47f2) are in the issue body above — please check relay.managed_endpoint_provider.provision / t3-code-relay-traces-prod against those when investigating #14070.

    Please add any further updates or new traces on #14070.

  2. juliusmarminge added labelsduplicate

  3. juliusmarminge closed this

Sign in to join this conversation.