-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
The futex facility returned an unexpected error code
tutorial install for Cypress 9 on WSL 2
#21075
Comments
Taking shots in the dark at this point to hopefully provide some more clues:
So I guess that part was correct, I can definitively cross issues with the IP off the list of culprits.
|
(Hopefully) more clues:
|
None of the steps here work as well, issue seemingly is only with Cypress: |
@bananabrann I'm also experiencing this but on mac + docker! |
@rdotg Dang. Bummer to see others with it too, but thanks for letting me know I'm not the only one. My current work around is not to use Cypress on Windows. If I want to do anything with my tests/Cypress, I switch to my laptop (Ubuntu 20). 😕 |
any news about this issue? |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Issue is still present, I never could get it to work 😔 Our team moved to other testing software for one of our projects |
@bananabrann Cypress does not support WSL or WSL 2 at this time. I am going to close this issue. |
Try running I found the solution here: electron/electron#24211 (comment) |
Current behavior
When installing Cypress on WSL 2,
node_modules/.bin/cypress open
fails, and Cypress is not usable.I realize that it's probably me and not Cypress, but I am at a loss because I have spent two hours meticulously combing through the tutorial config values making sure they're accurate. (Every item listed in the "Other" section on this issue)
Debug logs
DEBUG=cypress:*
produces no additional logs. Edit belowFrom the project root with package.json, running
node_modules/.bin/cypress open
:Edit 4/14, logs are showing now
lee@DESKTOP-BHC5NFB:~/Developer/bananabrann/bananabrann.dev$ DEBUG=cypress:* npx cypress open cypress:cli:cli cli starts with arguments ["/home/lee/.nvm/versions/node/v16.13.0/bin/node","/home/lee/Developer/bananabrann/bananabrann.dev/node_modules/.bin/cypress","open"] +0ms cypress:cli NODE_OPTIONS is not set +0ms cypress:cli:cli program parsing arguments +1ms cypress:cli:cli opening Cypress +2ms cypress:cli parsed cli options {} +79ms cypress:cli opening from options {"project":"/home/lee/Developer/bananabrann/bananabrann.dev"} +0ms cypress:cli command line arguments ["--project","/home/lee/Developer/bananabrann/bananabrann.dev"] +0ms cypress:cli verifying Cypress app +0ms cypress:cli checking environment variables +1ms cypress:cli checking if executable exists /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress +3ms cypress:cli Binary is executable? : true +2ms cypress:cli binaryDir is /home/lee/.cache/Cypress/9.5.4/Cypress +0ms cypress:cli Reading binary package.json from: /home/lee/.cache/Cypress/9.5.4/Cypress/resources/app/package.json +0ms cypress:cli Found binary version 9.5.4 installed in: /home/lee/.cache/Cypress/9.5.4/Cypress +2ms cypress:cli could not read binary_state.json file at "/home/lee/.cache/Cypress/9.5.4/binary_state.json" +3ms cypress:cli {} +0ms cypress:cli is Verified ? undefined +1ms cypress:cli running binary verification check 9.5.4 +0ms It looks like this is your first time using Cypress: 9.5.4 cypress:cli clearing out the verified version +6ms cypress:cli DISPLAY environment variable is set to 192.168.50.218:0.0 on Linux cypress:cli Assuming this DISPLAY points at working X11 server, cypress:cli Cypress will not spawn own Xvfb cypress:cli cypress:cli NOTE: if the X11 server is NOT working, Cypress will exit without explanation, cypress:cli see https://github.com/cypress-io/cypress/issues/4034 cypress:cli Solution: Unset the DISPLAY variable and try again: cypress:cli DISPLAY= npx cypress run ... +0ms cypress:cli needs Xvfb? false +1ms cypress:cli spawning, should retry on display problem? true +1ms cypress:cli disabling Electron sandbox +0ms cypress:cli running smoke test +0ms cypress:cli using Cypress executable /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress +0ms cypress:cli smoke test command: /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress --no-sandbox --smoke-test --ping=513 +0ms cypress:cli smoke test timeout 30000 ms +0ms cypress:cli Smoke test failed: Error: Command timed out after 30000 milliseconds: /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress --no-sandbox --smoke-test --ping=513 Timed out 2022-04-14T19:04:03.992Z cypress:ts register TypeScript project /home/lee/.cache/Cypress/9.5.4/Cypress/resources/app/packages/ts/tsconfig.json fast? true 2022-04-14T19:04:04.137Z cypress:ts Running without ts-node hook in environment "production" 2022-04-14T19:04:04.350Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/browsers 2022-04-14T19:04:04.780Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production 2022-04-14T19:04:04.889Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/cache 2022-04-14T19:04:05.112Z cypress:server:cypress starting cypress with argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.113Z cypress:server:args argv array: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.115Z cypress:server:args parsed argv options { options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, 'smoke-test': true, smokeTest: true, ping: 513 } } 2022-04-14T19:04:05.116Z cypress:server:args argv parsed: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e' } 2022-04-14T19:04:05.117Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' } 2022-04-14T19:04:05.117Z cypress:server:args options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {} } 2022-04-14T19:04:05.117Z cypress:server:args argv options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } 2022-04-14T19:04:05.118Z cypress:server:cypress from argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] got options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } at timeoutKill (/home/lee/Developer/bananabrann/bananabrann.dev/node_modules/execa/lib/kill.js:65:23) at Timeout._onTimeout (/home/lee/Developer/bananabrann/bananabrann.dev/node_modules/execa/lib/kill.js:81:4) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) { timedOut: true, signal: 'SIGTERM', originalMessage: 'Timed out', shortMessage: 'Command timed out after 30000 milliseconds: /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress --no-sandbox --smoke-test --ping=513\n' + 'Timed out', command: '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress --no-sandbox --smoke-test --ping=513', exitCode: undefined, signalDescription: 'Termination', stdout: '', stderr: '2022-04-14T19:04:03.992Z cypress:ts register TypeScript project /home/lee/.cache/Cypress/9.5.4/Cypress/resources/app/packages/ts/tsconfig.json fast? true\n' + '2022-04-14T19:04:04.137Z cypress:ts Running without ts-node hook in environment "production"\n' + '2022-04-14T19:04:04.350Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/browsers\n' + '2022-04-14T19:04:04.780Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production\n' + '2022-04-14T19:04:04.889Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/cache\n' + "2022-04-14T19:04:05.112Z cypress:server:cypress starting cypress with argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ]\n" + "2022-04-14T19:04:05.113Z cypress:server:args argv array: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ]\n" + "2022-04-14T19:04:05.115Z cypress:server:args parsed argv options { options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, 'smoke-test': true, smokeTest: true, ping: 513 } }\n" + "2022-04-14T19:04:05.116Z cypress:server:args argv parsed: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e' }\n" + "2022-04-14T19:04:05.117Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' }\n" + "2022-04-14T19:04:05.117Z cypress:server:args options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {} }\n" + "2022-04-14T19:04:05.117Z cypress:server:args argv options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 }\n" + "2022-04-14T19:04:05.118Z cypress:server:cypress from argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] got options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 }", failed: true, isCanceled: false, killed: false } +30s cypress:cli error message: 2022-04-14T19:04:03.992Z cypress:ts register TypeScript project /home/lee/.cache/Cypress/9.5.4/Cypress/resources/app/packages/ts/tsconfig.json fast? true 2022-04-14T19:04:04.137Z cypress:ts Running without ts-node hook in environment "production" 2022-04-14T19:04:04.350Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/browsers 2022-04-14T19:04:04.780Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production 2022-04-14T19:04:04.889Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/cache 2022-04-14T19:04:05.112Z cypress:server:cypress starting cypress with argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.113Z cypress:server:args argv array: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.115Z cypress:server:args parsed argv options { options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, 'smoke-test': true, smokeTest: true, ping: 513 } } 2022-04-14T19:04:05.116Z cypress:server:args argv parsed: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e' } 2022-04-14T19:04:05.117Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' } 2022-04-14T19:04:05.117Z cypress:server:args options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {} } 2022-04-14T19:04:05.117Z cypress:server:args argv options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } 2022-04-14T19:04:05.118Z cypress:server:cypress from argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] got options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } +1ms Cypress verification timed out. This command failed with the following output: /home/lee/.cache/Cypress/9.5.4/Cypress/Cypress --no-sandbox --smoke-test --ping=513 ---------- 2022-04-14T19:04:03.992Z cypress:ts register TypeScript project /home/lee/.cache/Cypress/9.5.4/Cypress/resources/app/packages/ts/tsconfig.json fast? true 2022-04-14T19:04:04.137Z cypress:ts Running without ts-node hook in environment "production" 2022-04-14T19:04:04.350Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/browsers 2022-04-14T19:04:04.780Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production 2022-04-14T19:04:04.889Z cypress:server:appdata path: /home/lee/.config/Cypress/cy/production/cache 2022-04-14T19:04:05.112Z cypress:server:cypress starting cypress with argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.113Z cypress:server:args argv array: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] 2022-04-14T19:04:05.115Z cypress:server:args parsed argv options { options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, 'smoke-test': true, smokeTest: true, ping: 513 } } 2022-04-14T19:04:05.116Z cypress:server:args argv parsed: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e' } 2022-04-14T19:04:05.117Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' } 2022-04-14T19:04:05.117Z cypress:server:args options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {} } 2022-04-14T19:04:05.117Z cypress:server:args argv options: { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } 2022-04-14T19:04:05.118Z cypress:server:cypress from argv [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress', '--no-sandbox', '--smoke-test', '--ping=513' ] got options { _: [ '/home/lee/.cache/Cypress/9.5.4/Cypress/Cypress' ], sandbox: false, smokeTest: true, ping: 513, invokedFromCli: false, cwd: '/home/lee/Developer/bananabrann/bananabrann.dev', testingType: 'e2e', config: {}, pong: 513 } ---------- Platform: linux-x64 (Ubuntu - 20.04) Cypress Version: 9.5.4
Edit 4/14
Error looks similar to #18183
Cypress Version
9.5.4
Package Manager
npm
Operating system
other
Other
Everything from the WSL2 installation guide appears to be working in as-expected condition.
This is occuring not in any integrated terminal in a code editor. This is just the regular, default terminal for WSL2.
Windows firewall inbound allowing everything for VcxSrv.exe
Echoing
DISPLAY
produces an IP address as expected.WSL2 has been restarted, and
~/.bashrc
is properly sourced (Numbers '1' to '7' is just to hide my IP. The0.0
is real.)/etc/sudoers.d/dbus appears to be set up correctly.
Everything from the tutorial has been added
~/.bashrc
In Windows' command prompt (on my native machine, completely outside of WSL2),
wsl -l -v
says I am indeed running WSL2
The text was updated successfully, but these errors were encountered: