Skip to content

Update button: the next navigation in the same profile showed the boot error page after 0.1.7-lazurio.1 → 0.1.9-lazurio.2 #227

Open

Description

@immakermatty

After pressing Update in Settings → Sharing & access on a Work Environment (Ring 0, 0.1.7-lazurio.1 → 0.1.9-lazurio.2, 2026-11-18), the server finished the update cleanly. Then the next full navigation to / in the same browser profile rendered the web app's boot error page:

T3 Code (Lazurio) failed to start
We are not sure why. Try a reload first.

Where it comes from: apps/web/src/bootstrap.ts:4. import("./main") rejected, and showBootError (apps/web/src/lib/bootError.ts:259) rendered the page.

Timeline (UTC):

  • 01:52:21.020 Update pressed.
  • 01:52:25.473 "Server update prepared; handing off to the service launcher."
  • 01:52:28.414 "Listening on http://127.0.0.1:3773" (0.1.9-lazurio.2, migration 81).
  • 01:52:55 /.well-known/t3/environment answers 0.1.9-lazurio.2. The open tab shows Settings with "Version 0.1.9-lazurio.2 · Up to date" and no error.
  • ~01:53:31 page.goto("/") in the same profile renders the boot error page.

What is fine:

  • Server: the version, launcher state committed, NRestarts=0, a single loopback listener, the migration, and a runtime that matches the release archive file by file. No error in the server trace from 01:52 to 01:55.
  • Fresh browser profile: opens the app, and a new thread gets a reply.

Not reproduced:

  1. Restart on 0.1.9 with an open tab: after a plain service restart, the same tab and a later goto("/") both work.
  2. 0.1.7 profile, then 0.1.9 server (local): a profile that had loaded 0.1.7, followed by 0.1.9 on the same base dir and port, then goto("/"). The app opens.
  3. Server swapped under an open tab (local): a 0.1.7 tab left open on Settings while the server is swapped to 0.1.9, then goto("/") after 60 s. The app opens.

HTML is served as no-cache without validators, and only manifest assets with hashed names are immutable (apps/server/src/http.ts:650-654). A stale index.html from the browser cache is therefore unlikely.

Unknown:

  • the rejection reason (the "More options" report was not captured);
  • whether Reload clears it;
  • whether the Environment's front proxy or the real launcher handoff is involved.

Next:

  • Make the Update-button test capture the boot error report and console errors, and press Reload.
  • Treat "failed to start" as a failure (the test only looked for "Something went wrong").
  • Repeat on a fresh 0.1.7 → 0.1.9 Update.

Found during the 0.1.9-lazurio.2 Ring 0 test in #185.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e

Activity

  1. immakermatty commented on Nov 18, 2026

    @immakermatty
    Author

    Targeted repro through the front proxy (2026-11-18 04:03–04:10 UTC): not run, because it needs a downgrade. I ran a read-only probe through the front proxy instead. It found that a missing asset answers 200 text/html, not 404. Nothing was changed on any Environment.

    1. Correction: the press run already went through the front proxy. The Update-button test opens the Environment's real HTTPS address, and every response carries via: 1.1 Caddy. Only local repros (a) and (b) ran on loopback without a proxy. "Front proxy in the path" is a difference from the local repros. It is not a difference from the press run, and my earlier wording in #185 did not make that clear.

    2. Why the press run was not repeated. Every Ring 0 T3 Code behind a front proxy now runs 0.1.9-lazurio.2: Work Environment VM 106 since the Update, VM 107 and the Personal Environment since the canary. The Update button only appears when a newer stable exists, and none does. The only 0.1.7-lazurio.1 server left on Ring 0 is the separate assistant T3 instance on VM 107. The lane pins it at 0.1.7-lazurio.1, and the assistant's acceptance runs on it. Pressing Update there would change the Environment and drift from the pin. So I did not try it anywhere.

    3. Read-only probe (run 20261118T040726Z-t3-227-proxy-probe; fresh headless Playwright Chromium; Example smoke-test persona; Work Environment VM 106 on 0.1.9-lazurio.2). The app opens normally. Headers through the proxy:

    • /: no-cache, no validators.
    • /assets/index-UuCXtNbk.js and /assets/main-CkPqJxiY.js (the 0.1.9 entry and main chunk): public, max-age=31536000, immutable, with a weak ETag.
    • /.lazurio/shell.js: no-cache with an ETag.
    • The proxy adds only via: 1.1 Caddy. There is no Age, and no caching header is added or removed.
    • Assets that do not exist answer 200 text/html; charset=utf-8, no-cache, with index.html as the body. This holds for 0.1.7's entry /assets/index-bWDv2kr9.js, its main chunk /assets/main-CuS16kkx.js, its stylesheet /assets/main-D7rGx8cr.css, and for /assets/does-not-exist-00000000.js. The response comes from the T3 server, not the proxy. apps/server/src/http.ts:636-643 (at faae02aa) falls back to index.html for any file it cannot open, including under /assets/. Upstream v0.1.9 has the same fallback (apps/server/src/http.ts:638), so this is not an overlay change.

    What this means (hypothesis, unverified). After the server switches builds, any module request for a chunk of the previous build gets HTML instead of JavaScript. import() then rejects with a MIME-type error instead of a 404. If that happens inside bootstrap's import("./main"), the result is showBootError. This would explain the page if that navigation still resolved a 0.1.7 entry or chunk. It does not explain how it did, since / is no-cache and the next HTML names only 0.1.9 assets. The local repros used the same server, with the same fallback, and did not hit the page. So this is a candidate mechanism, not a proven cause.

    4. What a real repro needs. It needs a 0.1.7-lazurio.1 T3 Code behind a front proxy with a newer stable on offer. Options:

    • (a) Downgrade Work Environment VM 106 to 0.1.7-lazurio.1, then press Update again. This needs t3 update --channel stable --allow-downgrade, plus restoring the backup pre-t3-0109lazurio2-20261118T015018Z, because migrations 80–81 have no way back. It also needs the lane pin for VM 106 moved back to 0.1.7. This changes the Environment against its pin and needs the supervisor's or Admin's word.
    • (b) The next Update-button test on Ring 0 (VM 106 0.1.9-lazurio.2 → the next stable), with the instrumented test below. This does not test 0.1.7 → 0.1.9, but it tests the same switch through the same proxy. It needs nothing new.
    • (c) A temporary Ring 0 Environment on 0.1.7-lazurio.1 behind a front proxy. This needs a lane change on Example.

    The instrumented test is ready (update-instrumented.mjs on the release station). After the Update, it records console errors, page errors, failed requests, and every .js/.css answered as text/html. It treats "failed to start" as a failure. It opens "More options" and saves the report, presses Reload, and records whether the app then opens.

    A code-side question for the release owner, not part of this release. Should the server answer 404 for a missing file under /assets/, instead of falling back to index.html? A stale chunk would then fail as a 404, which is easier to diagnose. Whether that would also remove the page is unverified.

    Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e

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