Repository navigation
Closed
Labels
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Run the T3 server as the background service on a Linux x64 VPS with a slow path to GitHub release assets. In my case
curlof the release archive gets about 185 KB/s. - From a connected client, click Update to move from
0.0.46-nightly.20261010.2948to0.0.46-nightly.20261011.2955. - Wait. Optionally cancel or disconnect and click Update again.
Expected behavior
- The client shows download progress, or at least that bytes are arriving.
- A slow but healthy download is not cut off by a fixed total-time cap.
- An interrupted attempt does not force the whole archive to be fetched again from zero.
Actual behavior
From server traces and source on origin/main at a29e99c35a:
- No progress while downloading.
selfUpdate.tscallsensurePinnedRuntimeInstalledwithoutonProgress, sofetchReleaseAssettakes theresponse.arrayBuffer()path. The archive is held in memory and the staging directory stays empty for the whole download. The wire protocol only has thedownloadingandinstallingstages. - Fixed 10-minute cap.
PINNED_RUNTIME_INSTALL_TIMEOUTis 10 minutes and wraps the entire archive fetch. At 185 KB/s the 89,063,097-byte archive takes about 8 minutes. Below about 150 KB/s the same update would fail with "(timed out)". - Interruptions restart the download.
cloud.server_self_update.updateandws.rpc.server.updateServerWithProgressendedInterruptedinsidefetch_release_assetafter 99.3 s (03:55:33 UTC) and 96.6 s (03:57:15 UTC). I do not know what triggered the interrupts and have not checked the client side. Each retry starts over. - Earlier update was fast. The update at 01:33 UTC on the same host took 5.5 s, so the speed changed since then.
- Update finished unattended. The attempt started at about 06:07 UTC ran to completion on the server, and
service-state.jsonshowscommittedfor0.0.46-nightly.20261011.2955.
Limits of this report: I saw the slowness on one host only, not in a controlled throttled test, and the "no progress" point comes from reading the source, not from watching the GUI.
Impact
Minor bug or occasional failure
Version or commit
Server 0.0.46-nightly.20261010.2948 updating to 0.0.46-nightly.20261011.2955
Environment
Linux x64 VPS (Seattle region), T3 running under the systemd user service.
Logs or stack traces
curl: (28) Operation timed out after 12061 milliseconds with 2228224 out of 89063097 bytes received
speed_download=184733 B/s
cloud.server_self_update.update 99.3 s Interrupted (in cloud.pinned_runtime.fetch_release_asset) 03:55:33 UTC
cloud.server_self_update.update 96.6 s Interrupted (in cloud.pinned_runtime.fetch_release_asset) 03:57:15 UTC
cloud.server_self_update.update 5.5 s Success 01:33:40 UTCWorkaround
Leave the update running. It completes on the server even if the client gives up, and ~/.t3/runtime/service-state.json shows when it is committed.
Related
#17899 covers the client-side "not connected" error when the connection drops mid-update. This report is about the server-side download.
Activity
juliusmarminge commentedon Oct 11, 2026
Note
Grok responding on behalf of Julius.
Confirmed bug for the hard 10-minute wall-clock timeout on the archive fetch. Progress reporting and resumable downloads are enhancements, not bugs — your update did finish.
Timeout (bug, confirmed on main).
PINNED_RUNTIME_INSTALL_TIMEOUTisDuration.minutes(10)and wraps the wholefetchReleaseAssetviaEffect.timeoutOrElse(apps/server/src/cloud/pinnedRuntime.ts). The comment is right that a stalled download must not hold the install lock forever, but a fixed total-time cap also kills a healthy slow transfer. At ~89 MB, anything under about 150 KB/s will hit(timed out)before the archive lands. An idle/stall timeout (or a higher cap for the download step) would match the stated intent better.No byte progress (enhancement).
selfUpdate.tscallsensurePinnedRuntimeInstalledwithoutonProgress, sofetchReleaseAssettakes theresponse.arrayBuffer()path and the staging dir stays empty until the full buffer is written. The wire protocol only exposesdownloading|installing(ServerSelfUpdateProgressStage). The CLI path already wires progress (#12044); remote self-update never did.No resume (enhancement). The archive is held in memory until complete, then written to staging. An interrupt (your ~99 s
Interruptedspans look like client disconnect — see #17899) discards the buffer and the next attempt starts over.Workaround you already found stands: leave the server-side update alone;
~/.t3/runtime/service-state.jsonshows when it commits.diyaavirmani commentedon Oct 11, 2026
Hi @juliusmarminge , I’d like to work on the confirmed download-timeout bug here. I’ve read CONTRIBUTING.md, AGENTS.md, and your triage response.
I propose investigating a stall timeout that allows downloads to continue while bytes are arriving, while still releasing the install lock if the transfer stops progressing. I’d add focused tests for slow healthy transfers, stalled transfers, and cancellation, keeping progress reporting and resumable downloads outside this PR.
If nobody is already working on this, could you please assign it to me and confirm whether this scope works for you? Thanks!
bompus commentedon Oct 11, 2026
Thanks @diyaavirmani. I'm not working on this and have no PR open, so no objection from me. Assignment is Julius's call. Your scope matches the triage: a stall timeout, with progress reporting and resume left out.
diyaavirmani commentedon Oct 12, 2026
Alright , Thanks :)
t3dotgg commentedon Oct 21, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. One part of this is fixed on main in #19649. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: remote byte-level progress and resuming interrupted downloads. If that part still matters to you, please open a new issue for that part only.