Summary#
T3 Code on CachyOS x86_64 fails to connect to remote environments with error:
'Failed to connect. Reconnecting... Reason: Relay environment endpoint is unavailable: endpoint_request_failed'
Trace ID: d24b28efla30909a7d1dbfd3444da762
Environment#
- OS: CachyOS x86_64
- Tool: T3 Connect (remote app connection)
- Client: T3 Code mobile/desktop
Steps to Reproduce#
- Sign into T3 Connect on CachyOS x86_64
- Try to connect to a remote environment
- Error: 'Relay environment endpoint is unavailable: endpoint_request_failed'
- Environment shows as discoverable but connection fails
Troubleshooting Already Attempted#
- Signed out/in to T3 Connect via mobile app
- Cleared T3 Code IndexedDB cache
- Cleared T3 Code Local Storage cache
- Error persists after re-authentication
Additional Context#
- User is on CachyOS (Arch-based Linux distribution)
- Issue appears related to T3 Connect relay state inconsistency
- Similar to issues reported in #6568 and #5712 on GitHub
- Environment may be linked to different cloud account state
Request#
Investigate relay environment endpoint availability for CachyOS x86_64 platforms.
Consider platform-specific relay configuration or provide guidance on resolving inconsistent T3 Connect state after re-authentication.
--
This issue was filed from opencode session regarding T3 Connect relay endpoint failure on CachyOS.
Can confirm this exact behavior on CachyOS x86_64 (
7.2.3-1-cachyos) runningt3code.serviceundersystemd --user.What is actually happening (Root Cause):#
This is not a CachyOS/kernel incompatibility, but a port desync in the T3 Connect relay lifecycle:
t3 serveis running andcurl -i http://127.0.0.1:<port>/returns HTTP 200 with the full web app.cloudflared tunnel runis actively connected to Cloudflare edge locations with QUIC.t3code.servicestarts or restarts,t3 servepicks an ephemeral/dynamic loopback port (e.g.3773) if none is explicitly specified. However, the managed Cloudflare Tunnel / T3 Connect relay link routes incoming traffic to whatever local port was registered whent3 connect linkwas run. When the service restarts or the port changes, incoming requests forwarded through the relay hit a dead local port (ECONNREFUSED), returning a 502 to the relay, which surfaces in the client as:Relay environment endpoint is unavailable: endpoint_request_failed.Temporary Workarounds:#
npx t3 connect linkon the box so the relay receives the current port.~/.config/systemd/user/t3code.serviceby adding--port <port>toExecStart.This is directly related to #7458 and should be resolved by PR #8353 (
fix(server): use listener port for managed tunnel origins).cc @juliusmarminge @mateo-m