Skip to content
Source
Sign inSign up
pingdotgg/t3code

T3 Connect relay fails to provision a managed endpoint on Linux Nightly #40210

ClosedSuryaNarayanaa(GitHub profile, opens in a new tab) opened this issue 6 comments

Steps to reproduce

  1. Open T3 Code Nightly 0.1.12-nightly.20261121.5024 on Omarchy (Arch Linux, x86-64).
  2. In Settings → Sharing & access, turn on T3 Connect for the Omarchy environment.

Actual behavior

The app shows Could not update T3 Connect. The server trace for linkEnvironment.linkEnvironmentToCloud records that https://relay.t3.codes/v1/client/environment-links returned Relay cannot provision the managed endpoint (managed_endpoint_provisioning_failed).

  • Trace ID ec6cd242c7d9378c3a0e997a378b6ee5
  • Time 2026-11-21 07:43:45 UTC
  • Client span duration 925.9 ms

I found eight matching failed spans in the current Omarchy server trace. The Omarchy relay-client log shows successful tunnel registrations earlier that day. The Windows desktop can still connect to Omarchy over SSH.

Expected behavior

T3 Connect provisions the managed endpoint and enables cloud access to this environment.

Could you look up the trace and check why provisioning failed? The symptom also appeared in #16810, which is closed.

  1. tanstack-source added labelsbug

  2. I can reproduce the same error on Windows 11 with T3 Code Desktop v0.1.11 (stable). Enabling T3 Connect in Settings → Sharing & access fails on both my usual network and a mobile hotspot connected to the Windows PC.

    The local POST /api/connect/link-proof returned HTTP 200. The subsequent request to https://relay.t3.codes/v1/client/environment-links returned managed_endpoint_provisioning_failed.

    • Trace ID: 50c39cf3c298ae62f6ea8d2001252e64
    • Time: 2026-11-21 16:39:22 UTC

    Could you check this trace for the failing relay-side step? Thanks.

  3. AntonioEugenelo(GitHub profile, opens in a new tab)commented

    Same error on Windows 11 Pro (x64), T3 Code Nightly 0.1.12-nightly.20261121.5064, on 22 November 2026. This case has one detail that may help: I had previously removed this device from another device, and then tried to turn T3 Connect back on for it.

    Turning on T3 Connect in Settings → Sharing & access fails with:

    https://relay.t3.codes/v1/client/environment-links failed: Relay cannot provision the managed endpoint (managed_endpoint_provisioning_failed)

    • Trace ID: c3250792e4e2639beafdb3beb4584171
    • Trace ID from an earlier attempt: 47e8659597510fa5f45cca628fb319ad (shown as "Could not update T3 Connect")

    What the local logs show:

    • After the device was removed, the old managed endpoint apparently stayed live. The bundled cloudflared (2026.10.4) kept its tunnel to the existing managed endpoint. It registered four HTTP/2 connections at 00:06 UTC after QUIC timeouts. Requests through that endpoint, including /api/t3-connect/health and /api/t3-connect/mint-credential, still returned 200 afterwards.
    • Neither trace ID nor any environment-links span appears in the local server or desktop traces, so the failure is visible only in the UI.

    What I tried, without success:

    1. Cleared this device's Connect state locally, restarted the app and turned T3 Connect on again.
    2. Removed the stale entry for this device from the other device's list and retried.

    My guess is that the relay still holds the endpoint bound to the revoked link and refuses to provision a new one for the same environment. Could you check whether removing a device from another device leaves its managed endpoint orphaned, and clear it for these traces?

  4. I reproduced this on Windows 11 Pro with T3 Code Beta 0.1.11.0. Linking the environment failed five times, both before and after a reboot.

    After the reboot, the relay client registered its tunnel at 05:01:41 UTC. At 05:02:32 UTC, linkEnvironment.linkEnvironmentToCloud failed against https://relay.t3.codes/v1/client/environment-links with managed_endpoint_provisioning_failed.

    Could you check the provisioning logs for trace ad9dfbb4c8e2a6af41afd5fd221b627d at 2026-11-23 05:02:32 UTC?

  5. same on stable, trace id: 5c8facdcc8ce4a146e875cf2bfcc2858

    was connected to both macs via iphone's t3 app, now this mac (F*ck Putin) is gone, the other one (Chris W MBP) is still connected.

  6. Fixed by #45637, now on main: Turning T3 Connect back on after removing a device now disconnects its leftover live connector, deletes the old tunnel, and provisions a replacement instead of failing with managed_endpoint_provisioning_failed.

  7. juliusmarminge closed this

Sign in to join this conversation.