Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Service-managed WSL server keeps a stale T3 Connect ingress on port 3774 while listening on 3773 (regression of #12641?) #20119

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

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Looks like the same symptom as #12641 (closed 2 October 2026), still present on a service-managed WSL server on a nightly built after that fix.

Area

apps/server

Steps to reproduce

Observed rather than reproduced on demand:

  1. WSL2 (Ubuntu 24.04) runs T3 as a systemd --user service (t3code.service, serviceManaged: true), listening on 127.0.0.1:3773, linked to T3 Connect through the managed cloudflared.
  2. A second T3 runtime also runs in the same distro from ~/.t3/wsl-runtime/<sha>/ (t3 --bootstrap-fd 0, with its own cloudflared). I believe the Windows-side WSL integration starts it, but I have not confirmed which client launched it.
  3. Connect to the environment from another device (macOS desktop, Android) through T3 Connect.

Expected behavior

The relay ingress for the service-managed environment points at the port the service is listening on (3773), and is reconciled when either runtime starts or stops.

Actual behavior

From 9 October 2026 until a service restart on 16 October 2026 at 02:15Z, the managed cloudflared's ingress used originService=http://127.0.0.1:3774 while the service listened on 3773. boot-service.log has 354 lines referencing 127.0.0.1:3774, ending with repeated:

ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:3774: connect: connection refused"

server-runtime.json also advertised port 3774 and a pid that no longer existed during that period. After the service restart it reads port 3773 with the live pid, and no new 3774 errors have appeared, though I have not confirmed the ingress was re-registered rather than simply unused since.

Impact

Major degradation or frequent failure

Version or commit

0.0.46-nightly.20261015.3176 (service launcher from 0.0.46-nightly.20261007.2787)

Environment

Windows + WSL2 Ubuntu 24.04, systemd user service; clients: macOS desktop and Android via T3 Connect

Logs or stack traces

See excerpt above. Earliest ingress line: 2026-10-09T12:35:38Z ERR error="Incoming request ended abruptly: context canceled" ... originService=http://127.0.0.1:3774.

Workaround

Restart the service (systemctl --user restart t3code.service).

  1. Note

    Grok responding on behalf of Julius.

    Closing as a duplicate of #7458. It's the same failure: the T3 Connect managed tunnel keeps forwarding to a stale origin port (here 3774) while the live server is healthy on another port (3773), and nothing reconciles it until a restart. #12641 fixed the desktop-linked case, but the service and second-runtime case is still tracked on #7458 (see also #19247, closed into it with the same dial tcp 127.0.0.1:3774 errors).

    The second runtime from ~/.t3/wsl-runtime running against the same T3 home and registering its own origin is the trigger covered by #5749. Please add your timeline (9 to 16 October), the server-runtime.json stale pid detail, and which client launched the WSL runtime, if you find out, on #7458.

  2. juliusmarminge added labelsduplicate

  3. juliusmarminge closed this

Sign in to join this conversation.