Repository navigation
fix(linux): chrome-sandbox SUID and gaia init non-interactive mode - #743
Merged
Merged
Conversation
Two bugs found during end-to-end install testing on Ubuntu 24.04: 1. chrome-sandbox missing SUID bit — Electron's Chromium sandbox helper requires mode 4755 (setuid root) but electron-builder packages it as 755. The app crashes immediately on launch with a fatal sandbox error. Fix: postinst now runs chown root:root + chmod 4755 on the binary. 2. gaia init silently skips model download — backend-installer.cjs runs gaia init with piped stdio (for log streaming), so interactive prompts receive EOF and answer themselves as "Skipping". No model is downloaded but state reaches "ready", causing the app to crash when the user sends a message. Fix: pass --yes to gaia init so prompts are auto-answered.
itomek
force-pushed
the
tomas/fix-linux-installer-bugs
branch
from
April 10, 2026 19:10
23bafb1 to
7e8c606
Compare
kovtcharov
approved these changes
Apr 10, 2026
Merged
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Apr 10, 2026
Release notes for v0.17.2. See [docs/releases/v0.17.2.mdx](https://github.com/amd/gaia/blob/v0.17.2-release/docs/releases/v0.17.2.mdx) for the full body. **Headline features:** - One-click desktop installers for Windows, macOS, and Linux (#731 + #743) - Customizable agents and Builder Agent (#720) - MCP tool execution visibility in Agent Activity panel (#717) **Security:** RAG cache integrity verification (#722, closes #447) **Bug fixes:** drag-and-drop upload in any browser (#729), Linux install fixes (#743) **Release & CI:** unified publish workflow (#715), Claude review on fork PRs (#685), npm OIDC fix (#683), webui package.json sync (#682) Full changelog: v0.17.1...v0.17.2 --------- Co-authored-by: Tomasz Iniewicz <tomasz@iniewicz.com>
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two critical bugs found during end-to-end install testing on Ubuntu 24.04 (amd64), testing against PR #731.
Bug 1: chrome-sandbox missing SUID bit
Symptom: App crashes immediately after
apt installwith:Root cause:
electron-builderpackageschrome-sandboxwith mode755. Chromium's sandbox helper requires4755(setuid root) to function. Without it, no user can launch the app after a clean install.Fix:
installer/debian/postinstnow setschown root:root+chmod 4755on/opt/GAIA/chrome-sandboxduring package configuration, which runs as root viaapt.Bug 2: Model download silently skipped — app crashes when user types
Symptom: Bootstrap completes and reports
ready, but Qwen3-0.6B is never downloaded. Lemonade has no model loaded, so the app crashes when the user sends their first message.Root cause:
backend-installer.cjsrunsgaia init --profile minimalwith piped stdio (for log streaming). With no TTY attached,gaia init's interactive prompts ("Continue? [Y/n]:" and "Run model verification? [Y/n]:") receive EOF and answer themselves as "Skipping". The non-zero-ish exit is treated as non-fatal, so state reachesreadydespite no model existing.Fix: Pass
--yestogaia initso prompts are auto-answered. The flag already exists for this purpose.Testing
Both bugs reproduced on Ubuntu 24.04.4 LTS (x86_64, kernel 6.17) with the
.debfrom CI run 24255947495. Verified manually:Closes part of #530.