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

Chromium based apps do not run (Brave & Electron) #45

Open
slayt12 opened this issue Apr 22, 2024 · 1 comment
Open

Chromium based apps do not run (Brave & Electron) #45

slayt12 opened this issue Apr 22, 2024 · 1 comment

Comments

@slayt12
Copy link

slayt12 commented Apr 22, 2024

I built a custom image and am trying to use it as a web based programming IDE with VS Code, npm, bun and Electron. When trying to run electron-forge start as a regular kasm-user, I get the following message:

Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[2133:0421/191748.542461:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Invalid argument (22)
[2135:0100/000000.564476:ERROR:zygote_linux.cc(672)] write: Broken pipe (32)

and launching brave-browser-stable from the cli, I get:

Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[2200:2200:0421/191805.219945:FATAL:zygote_host_impl_linux.cc(202)] Check failed: . : Operation not permitted (1)
[0421/191805.227319:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0421/191805.227353:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
/usr/bin/brave-browser-stable: line 48:  2200 Trace/breakpoint trap   (core dumped) "$HERE/brave" "$@"

I'm installing Brave in my Dockerfile like this:

RUN sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
RUN sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
RUN sudo dnf install brave-browser -y

I see there is a Brave browser Kasm built from Ubuntu, but I'm basing my custom image from Fedora 39.
Attached is my Dockerfile
Dockerfile.txt

@j-travis
Copy link
Contributor

Chromium based apps often need the --no-sandbox flag to run within docker containers.
https://github.com/kasmtech/workspaces-images/blob/develop/src/ubuntu/install/brave/install_brave.sh#L5

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

No branches or pull requests

2 participants