app: real-install proof — the shipped .deb installs and opens on a stock Ubuntu 24.04 (the residue the sandbox cannot execute) #471

Closed
opened 2026-08-12 15:14:01 +00:00 by ben · 4 comments
Owner

What this is

The residue of #463 the swarm container cannot execute: proving the installed operator app on a real machine. #377 mapped the wall precisely — the npm-downloaded Electron binary the .deb ships does not run in the sandbox (missing Chromium sonames; container glibc 2.36 vs required 2.38), and a real payload needs a nix+KVM host to assemble. #463 proves the packaged bytes boot (over the nix Electron, fake payload); this ticket proves the packaged binary installs and opens as shipped.

What to run (on a real Ubuntu 24.04 x86_64 machine — the workstation qualifies)

  1. Assemble a real, fresh payload: scripts/assemble-payload.sh with the pinned QEMU (#230) and current guest image — mind the staleness gate's lesson (rebuild control-plane/dashboard first).
  2. pnpm package with that payload → the multi-GiB .deb.
  3. sudo apt install ./<artifact>.deb on a machine (or clean VM) that has never run the stopgap.
  4. Launch from the desktop entry / binary with zero env overrides — no IDSS_PAYLOAD_DIR, no staging steps.

Acceptance criteria

  • The app opens on the operator home (Create / Join) as installed — no manual chown/chmod, no --no-sandbox anywhere; Chromium sandbox verified ON (postinst's SUID chrome-sandbox did its job).
  • Helper + payload resolve from resourcesPath (founding's private path reaches the wizard; a stand-up attempt on a KVM host is a bonus, not the gate).
  • State lands under the idss-named userData dir (not ~/.config/Electron); IDSS_STATE_DIR reaches the helper (ADR 0050).
  • app.getVersion() (About/window title or log) reports the package version.
  • Docs collapse lands: docs/operator-app/build-and-run.md steps 3/4/9/10 and the "what still stops the collapse" section retire into "install the app" (the unpackaged path stays, renamed the dev/e2e path — run-app.sh and smoke-private-path.sh still drive it); STATUS.md in the same commit.
  • Evidence posted here: install log, a screenshot of the operator home, ls of the state dir, sandbox check.

Why ready-for-human

Root install on a real machine + eyeballing a GUI the sandbox cannot execute (#377's glibc wall). Blocked by #463 (native dependency set).

References

#463 (the packaging step + container-proven open smoke) · #377 (substrate wall evidence) · ADR 0110/#295 · docs/operator-app/build-and-run.md.


2026-08-20: identifiers in this ticket renamed by the IDSS rebrand (#473, ADR 0187): the .deb, productName, appId and userData dir are now idss-named; the original text said ourcloud.

## What this is The residue of #463 the swarm container **cannot** execute: proving the installed operator app on a real machine. #377 mapped the wall precisely — the npm-downloaded Electron binary the `.deb` ships does not run in the sandbox (missing Chromium sonames; container glibc 2.36 vs required 2.38), and a real payload needs a nix+KVM host to assemble. #463 proves the packaged **bytes** boot (over the nix Electron, fake payload); this ticket proves the packaged **binary** installs and opens as shipped. ## What to run (on a real Ubuntu 24.04 x86_64 machine — the workstation qualifies) 1. Assemble a **real, fresh** payload: `scripts/assemble-payload.sh` with the pinned QEMU (#230) and current guest image — mind the staleness gate's lesson (rebuild control-plane/dashboard first). 2. `pnpm package` with that payload → the multi-GiB `.deb`. 3. `sudo apt install ./<artifact>.deb` on a machine (or clean VM) that has **never** run the stopgap. 4. Launch from the desktop entry / binary with **zero env overrides** — no `IDSS_PAYLOAD_DIR`, no staging steps. ## Acceptance criteria - [ ] The app opens on the operator home (Create / Join) as installed — no manual `chown`/`chmod`, no `--no-sandbox` anywhere; Chromium sandbox verified ON (postinst's SUID `chrome-sandbox` did its job). - [ ] Helper + payload resolve from `resourcesPath` (founding's private path reaches the wizard; a stand-up attempt on a KVM host is a bonus, not the gate). - [ ] State lands under the idss-named `userData` dir (not `~/.config/Electron`); `IDSS_STATE_DIR` reaches the helper (ADR 0050). - [ ] `app.getVersion()` (About/window title or log) reports the package version. - [ ] Docs collapse lands: `docs/operator-app/build-and-run.md` steps 3/4/9/10 and the "what still stops the collapse" section retire into "install the app" (the unpackaged path stays, renamed the dev/e2e path — `run-app.sh` and `smoke-private-path.sh` still drive it); `STATUS.md` in the same commit. - [ ] Evidence posted here: install log, a screenshot of the operator home, `ls` of the state dir, sandbox check. ## Why `ready-for-human` Root install on a real machine + eyeballing a GUI the sandbox cannot execute (#377's glibc wall). Blocked by #463 (native dependency set). ## References #463 (the packaging step + container-proven open smoke) · #377 (substrate wall evidence) · ADR 0110/#295 · `docs/operator-app/build-and-run.md`. --- *2026-08-20: identifiers in this ticket renamed by the IDSS rebrand (#473, ADR 0187): the .deb, productName, appId and userData dir are now `idss`-named; the original text said `ourcloud`.*
Author
Owner

Install-proof progress (2026-08-12, Ben's machine, Ubuntu 24.04):

  • Build half done: first real-payload artifact ourcloud_0.1.0_amd64.deb (944 MiB) via the new one-liner scripts/package-app.sh (dcf9142) — today's agent/control-plane/dashboard, pinned QEMU 9.1.3 staged over the apt symlinks, Aug-9 guest image + warm cache.
  • apt install succeeded; layout verified in the artifact (helper/icons/payload at /opt/OurCloud/resources/).
  • First launch CRASHED — SIGTRAP, chrome-sandbox installed 0755: the stock postinst probes userns as root, which Ubuntu 24.04's AppArmor restriction doesn't apply to. Filed as #490 (ready-for-agent+priority); the zero-manual-steps acceptance line here stays unmet until it lands.
  • Interim workaround applied to continue the proof: sudo chmod 4755 /opt/OurCloud/chrome-sandbox.

The re-proof after #490: fresh scripts/package-app.sh build, reinstall, launch with zero manual steps.

**Install-proof progress (2026-08-12, Ben's machine, Ubuntu 24.04):** - Build half done: first real-payload artifact `ourcloud_0.1.0_amd64.deb` (944 MiB) via the new one-liner `scripts/package-app.sh` (`dcf9142`) — today's agent/control-plane/dashboard, **pinned QEMU 9.1.3** staged over the apt symlinks, Aug-9 guest image + warm cache. - `apt install` succeeded; layout verified in the artifact (helper/icons/payload at `/opt/OurCloud/resources/`). - **First launch CRASHED** — SIGTRAP, `chrome-sandbox` installed 0755: the stock postinst probes userns **as root**, which Ubuntu 24.04's AppArmor restriction doesn't apply to. Filed as **#490** (`ready-for-agent`+`priority`); the zero-manual-steps acceptance line here stays unmet until it lands. - Interim workaround applied to continue the proof: `sudo chmod 4755 /opt/OurCloud/chrome-sandbox`. The re-proof after #490: fresh `scripts/package-app.sh` build, reinstall, launch with zero manual steps.
Author
Owner

Second defect of the install proof (2026-08-12): with #490's chmod applied, the app opens — but founding's private path refuses at the VM stand-up: payload is not carried — missing NixOS guest base image (""), despite /opt/OurCloud/resources/payload/ being complete (qcow2 2.1 GiB + pinned QEMU all present, readable). Root cause: the Electron preload drops payloadDir when rebuilding window.__OURCLOUD__ — every other hop (main → IPC → production.ts → stdioBridge env) is wired. Filed as #491 (ready-for-agent+priority).

Proof continues under the interim launch OURCLOUD_PAYLOAD_DIR=/opt/OurCloud/resources/payload ourcloud (env inherits through to the helper, #255). Two manual steps now stand between install and founding (#490 chmod, #491 env var) — the zero-manual-steps criterion here is the ledger of both.

**Second defect of the install proof (2026-08-12):** with #490's chmod applied, the app opens — but founding's private path refuses at the VM stand-up: `payload is not carried — missing NixOS guest base image ("")`, despite `/opt/OurCloud/resources/payload/` being complete (qcow2 2.1 GiB + pinned QEMU all present, readable). Root cause: **the Electron preload drops `payloadDir` when rebuilding `window.__OURCLOUD__`** — every other hop (main → IPC → production.ts → stdioBridge env) is wired. Filed as **#491** (`ready-for-agent`+`priority`). Proof continues under the interim launch `OURCLOUD_PAYLOAD_DIR=/opt/OurCloud/resources/payload ourcloud` (env inherits through to the helper, #255). Two manual steps now stand between install and founding (#490 chmod, #491 env var) — the zero-manual-steps criterion here is the ledger of both.
Author
Owner

Session note 2026-08-29: both interim defects from the first proof attempt are closed (#490 chrome-sandbox postinst, #491 preload payloadDir), so the re-proof is unblocked — remaining act is fresh scripts/package-app.sh build → apt install → zero-manual-steps launch + evidence, then the docs collapse. Ben deferred to a free window.

Session note 2026-08-29: both interim defects from the first proof attempt are closed (#490 chrome-sandbox postinst, #491 preload payloadDir), so the re-proof is unblocked — remaining act is fresh scripts/package-app.sh build → apt install → zero-manual-steps launch + evidence, then the docs collapse. Ben deferred to a free window.
Author
Owner

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.
ben 2026-10-21 21:52:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#471
No description provided.