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

yarn start FATAL:setuid_sandbox_host for contributors on ubuntu 24.04 #29422

Open
MikeMcC399 opened this issue Apr 27, 2024 · 1 comment
Open
Labels
process: contributing Related to contributing to the Cypress codebase type: chore Work is required w/ no deliverable to end user

Comments

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Apr 27, 2024

Current behavior

Executing yarn start as described in the CONTRIBUTING > Getting Started section results in an error message similar to the following:

$ cypress open --dev --global
[9406:0427/165943.833191:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/mike/cypress/packages/electron/dist/Cypress/chrome-sandbox is owned by root and has mode 4755.

This is an issue only for Ubuntu 24.04 LTS (Noble Numbat) and affecting only contributors, not end-users.
Lower versions of Ubuntu do not exhibit this problem.

Using the npm module cypress from the npm registry together with the Cypress binary from https://download.cypress.io is not affected.

Desired behavior

Contributors of PRs to Cypress should be able to build and run Cypress from source on Ubuntu 24.04 LTS (Noble Numbat) in order to test their contributions.

yarn start should allow starting Cypress on Ubuntu 24.04 after using yarn to install dependencies and carry out a preliminary build.

Test code to reproduce

Clean install Ubuntu 24.04 Desktop

In a terminal window, execute the following:

sudo apt update && sudo apt upgrade -y
sudo apt install git g++ make curl
curl -L https://bit.ly/n-install | bash
. ~/.bashrc
cd ~
git clone https://github.com/cypress-io/cypress --depth 1
cd cypress
n auto
npm install yarn@latest -g
yarn
yarn start

Cypress Version

13.8.1

Node version

v18.17.1

Operating System

Ubuntu 24.04 LTS (Noble Numbat)

Debug Logs

$ yarn start
yarn run v1.22.22
$ yarn ensure-deps
$ ./scripts/ensure-dependencies.sh
success Folder in sync.
$ cypress open --dev --global
[9406:0427/165943.833191:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/mike/cypress/packages/electron/dist/Cypress/chrome-sandbox is owned by root and has mode 4755.

Other

Related

cc: @AtofStryker

@MikeMcC399
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process: contributing Related to contributing to the Cypress codebase type: chore Work is required w/ no deliverable to end user
Projects
None yet
Development

No branches or pull requests

2 participants