cypress-io / cypress-docker-images

Docker images with Cypress dependencies and browsers

Home Page:https://on.cypress.io/continuous-integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress Not Starting in Gitlab Pipeline Env

JacobMcSheffrey opened this issue · comments

I'm using the cypress/browsers:node16.13.2-chrome100-ff98 base image and can't seem to figure out why cypress won't start in my GitLab CI environment. Console output below:

image

For some additional context, im using Nx to run cypress (npx nx e2e ) as i have a nrwl workspace for this project. App compiles just fine. I seem to be able to successfully build a docker image using this particular parent image locally and run cypress without issue. I'm starting to wonder if the problem could be related to the VM the docker container is running on (ubuntu 20.04, has 4vCPU and 16GiB memory). Also worth noting im not using root user. I've set npm and cypress cache to custom directories - not sure if this is advisable / could be related to the problem, but any advice greatly appreciated!

Hello, we are using a Docker image based on Cypress Factory, and we've encountered the same issue with our GitLab CI runs since this morning.

Console output:

[STARTED] Task without title.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Command was killed with SIGTRAP (Debugger breakpoint): /../cache/12.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=396
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux-x64 (Debian - 11.6)
[FAILED] Cypress Version: 12.4.0
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
Command was killed with SIGTRAP (Debugger breakpoint): /.../cache/12.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=396