Skip to content

[Bug]: T3 Connect keeps launching a self-updated cloudflared from the pinned install path #16606

Description

@mwolson

Area

packages/contracts or packages/shared

Steps to reproduce

  1. Run T3 Connect on a host whose managed relay client was installed before fix(connect): remove tunnels after hosts go offline #9386 (2026-09-24), when the connector still ran without --no-autoupdate.
  2. Let cloudflared update itself. It replaces the file at ~/.t3/tools/cloudflared/2026.5.2/<platform>-<arch>/cloudflared with a newer release.
  3. Restart T3 Code so the connector opens new tunnel connections.

Expected behavior

T3 Connect runs the release it pins (2026.5.2), the same binary a fresh install downloads and checksums.

Actual behavior

RelayClient.resolve only checks that the managed file is executable, so it keeps launching whatever release now sits at the pinned path. On my three hosts that path held 2026.9.3 (one Linux, one macOS) and 2026.8.2 (Linux). On the Mac, 2026.9.3 failed every new edge connection, so after a restart the host was unreachable over T3 Connect: phones and other machines showed "Relay could not reach the environment endpoint (endpoint_request_failed)". Replacing the binary with the pinned release fixed it immediately. Hosts that ran T3 Connect before #9386 can still carry a self-updated binary that the app will launch on its next restart.

This is a different cause from #13964, which is about an old cloudflared on PATH, and from #16258, where the connector loses its connections after a network change.

Impact

Major degradation or frequent failure

Version or commit

Main as of 2026-10-06 (c9b21b28e2).

Environment

macOS 27.0 arm64 (affected), plus two Linux x64 hosts. T3 Code desktop app with T3 Connect enabled.

Logs or stack traces

On the Mac, from log show --predicate 'process == "cloudflared"', repeating on every connection attempt:

cloudflared[76500] [com.apple.securityd:SecError] Trust evaluate failure: [leaf MissingIntermediate OtherTrustValidityPeriod]

cloudflared --version at the pinned path reported cloudflared version 2026.9.3 (built 2026-09-24-16:08 UTC), and its metrics endpoint returned {"status":503,"readyConnections":0}. After restoring the checksum-verified 2026.5.2 at the same path, /ready returned {"status":200,"readyConnections":4}.


Sent by Mike's agent (Claude Opus 5.5)

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions