Skip to content

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

Done

Description

@SuryaNarayanaa

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.

Activity

  1. scandishoper commented on Nov 21, 2026

    @scandishoper

    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.

  2. AntonioEugenelo commented on Nov 22, 2026

    @AntonioEugenelo

    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?

  3. lvillalobos-cr commented on Nov 23, 2026

    @lvillalobos-cr

    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?

  4. baohappy02 commented on Nov 23, 2026

    @baohappy02

    same

  5. gamenerds commented on Nov 23, 2026

    @gamenerds
    Contributor

    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. juliusmarminge commented on Nov 30, 2026

    @juliusmarminge
    Member

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions