Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable AppArmor in CI for headless Chrome #873

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

nwalters512
Copy link
Contributor

@nwalters512 nwalters512 commented Jan 28, 2025

Recent CI runs have failed with the following:

27 01 2025 12:37:09.075:INFO [launcher]: Starting browser ChromeHeadless
27 01 2025 12:37:09.420:ERROR [launcher]: Cannot start ChromeHeadless
	[2162:2162:0127/123709.126845:FATAL:zygote_host_impl_linux.cc(128)] No usable sandbox! If you are running on Ubuntu 23.10+ or another Linux distro that has disabled unprivileged user namespaces with AppArmor, see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md. Otherwise see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the (older) SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
[0127/123709.[13](https://github.com/orchidjs/tom-select/actions/runs/12989117337/job/36221505850?pr=872#step:7:14)4265:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0127/123709.134304:ERROR:file_io_posix.cc([14](https://github.com/orchidjs/tom-select/actions/runs/12989117337/job/36221505850?pr=872#step:7:15)5)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

I believe this is because CI is now running with Ubuntu 24.04. As recommended on https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md, we'll disable AppArmor.

@nwalters512 nwalters512 changed the title Disable sandbox for headless Chrome Disable AppArmor in CI for headless Chrome Jan 28, 2025
@nwalters512 nwalters512 merged commit fbc4d31 into master Jan 28, 2025
3 checks passed
@nwalters512 nwalters512 deleted the headless-chrome-disable-sandbox branch January 28, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant