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
Cypress 8.0.0: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory) on Docker #17415
Comments
i get the exact same error in github actions. Started getting when running tests today. If you run on |
@snappyjs I'm using
My stacktrace
|
The issue can be avoided on POSIX by using But on Windows, it throws: (also, isn't it funny how os.userInfo throws when there's no username on Linux, but returns a mock uid when on Windows? 🤷) So I'll submit a PR to use geteuid on Linux/Darwin, and a static userId on Windows. |
Got the same issue on GitLab CI and Chrome, running with k8s from root and non-root on the run official latest cypress chrome and node image: |
The code for this is done in cypress-io/cypress#17488, but has yet to be released. |
@edouard-lopez I'm running the below config - and that's working fine (just ran it right now and successfully ran all tests). It's running on firefox90 (since that's the browser that comes with ubuntu-latest on github runners). One issue is that I don't get any recorded video though. Probably since it's missing some package to do the recording in the github runner.
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
After updating to Cypress 8.0.0, running Firefox on Docker through Github Actions no longer works.
It seems to have been introduced by this line
cypress/packages/server/lib/util/file.js
Line 26 in cf689dd
This is happening because
os.userInfo()
throws when theuser
has nousername
, which is the case when running withoptions: --user 1001
, needed to run Firefox as non-root.Desired behavior
Running tests on Firefox works :)
Test code to reproduce
Setup a repo with a step to run tests on Firefox using Docker and Github Actions, similar to https://github.com/cypress-io/github-action#firefox - my config uses
cypress/browsers:node14.17.0-chrome88-ff89
instead.To see it failing isolated from Cypress, add the following step to just call
os.userInfo()
inline:Cypress Version
8.0.0
Other
No response
The text was updated successfully, but these errors were encountered: