Skip to content

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

Closed as not planned

Description

@muzz689

Before submitting

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) Result ID
2026-09-28 19:50:16 managed_endpoint_provisioning_failed trace fa91dee01550b6196d6dfc336677c904
2026-09-28 19:50:25 managed_endpoint_provisioning_failed trace f928b0b1706fa33abf98c24333d718e6
2026-09-28 19:50:35 managed_endpoint_provisioning_failed trace 1004fe5ec00ad85400aa907715307b5c
2026-09-28 19:50:46 managed_endpoint_provisioning_failed trace 068e42ebdead71c322df2de962833a88
2026-09-28 19:51:02 managed_endpoint_provisioning_failed trace 6c41c4a914087050fb34ab41d0c9e0ef
2026-09-28 19:51:25 HTTP 504 cf-ray a4254863ee8f2229-JNB
2026-09-28 19:52:06 HTTP 504 cf-ray a425495e69f7ecda-JNB
2026-09-28 19:52:46 managed_endpoint_provisioning_failed trace ef3b206c95d4eadb608dfd5c1cee7fff
2026-09-28 19:53:23 HTTP 504 cf-ray a4254b443ce4aeca-JNB
2026-09-28 19:54:03 managed_endpoint_provisioning_failed trace 8202958ee4a7cde999b2c933ac8dccc6
2026-09-28 19:54:41 managed_endpoint_provisioning_failed trace c1fdd9ab3b552cf42faf2fc476621e41
2026-09-28 19:55:19 HTTP 504 cf-ray a4254e422cc4da14-JNB
2026-09-28 19:56:06 managed_endpoint_provisioning_failed trace cd27f777c9521f6cb7b7cb44a7ae353c
2026-09-28 19:56:44 managed_endpoint_provisioning_failed trace a3f31bc2f7f71f2a72a82af1013d9ab6
2026-09-28 19:57:21 HTTP 504 cf-ray a42551115fd07885-JNB
2026-09-28 19:58:01 HTTP 504 cf-ray a425520abc077394-JNB
2026-09-28 19:58:41 HTTP 504 cf-ray a42553055d12ee10-JNB
2026-09-28 19:59:21 HTTP 504 cf-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.

Activity

  1. juliusmarminge commented on Sep 28, 2026

    @juliusmarminge
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions