Fix browser_navigate failing with 'No usable sandbox!' on Ubuntu 23.10+ - #21659
Fix browser_navigate failing with 'No usable sandbox!' on Ubuntu 23.10+#21659gek0v wants to merge 1 commit into
Conversation
- Detect AppArmor user namespace restrictions (Ubuntu 23.10+) - Use AGENT_BROWSER_ARGS env var instead of deprecated AGENT_BROWSER_CHROME_FLAGS - Inject --args with comma-separated flags for agent-browser 0.26+ - Fix injection point to occur after browser_env is fully configured Fixes issue where Chrome fails to start under AppArmor restrictions even for non-root users. Tested on Ubuntu 24.04 with AppArmor enabled.
|
I am in Ubuntu 26.04 manually installed (The installation script wanted to install "Playwright Chromium" before I manually installed it, that has its own issues because first it seemed stuck without actually showing anything, it lacks some verbose or error output. Then I find out that Playwright does not support 26.04 yet, but you can install it with an overwrite env var, did that, install script was stuck AGAIN on the next step that wants to install "Playwright Chromium". I then just manually installed |
|
Automated hermes-sweeper review: this browser sandbox-bypass change is already implemented on current main. Evidence:
I also read the prior discussion. The later Ubuntu 26.04 timeout/install report appears to describe broader browser installation/runtime issues that still may deserve separate tracking, but this PR's specific sandbox/env-var fix is present on main. |
Problem
Chrome fails to start under Ubuntu 23.10+ with AppArmor restrictions, showing 'No usable sandbox!' error.
Root Causes
Solution
Testing
Verified working on Ubuntu 24.04 with AppArmor enabled, agent-browser 0.26.0.
Fixes #15765