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

Cypress v10 crashes with EPERM error #22002

Closed
far11ven opened this issue Jun 1, 2022 · 4 comments · Fixed by #22011
Closed

Cypress v10 crashes with EPERM error #22002

far11ven opened this issue Jun 1, 2022 · 4 comments · Fixed by #22011
Labels
v10.0.0 🐛 Issue present since 10.0.0

Comments

@far11ven
Copy link

far11ven commented Jun 1, 2022

Current behavior

currently on cypress v10 on running tests in hedless or Test Runner, the cypress crashes with following error after an unknown amount of time with following error:


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  Login.feature                                                                 (25 of 75)
  Estimated: 0 seconds
EPERM: operation not permitted, watch 'D:\omnius-qa-automation\.git\index.lock'
Error: EPERM: operation not permitted, watch 'D:\omnius-qa-automation\.git\index.lock'
    at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
    at Object.watch (node:fs:2247:34)
    at createFsWatchInstance (C:\Users\QCuser\AppData\Local\Cypress\Cache\beta-10.0.0-10.0-release-015e948d\Cypress\resources\app\packages\data-context\node_modules\chokidar\lib\nodefs-handler.js:119:15)
    at setFsWatchListener (C:\Users\QCuser\AppData\Local\Cypress\Cache\beta-10.0.0-10.0-release-015e948d\Cypress\resources\app\packages\data-context\node_modules\chokidar\lib\nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (C:\Users\QCuser\AppData\Local\Cypress\Cache\beta-10.0.0-10.0-release-015e948d\Cypress\resources\app\packages\data-context\node_modules\chokidar\lib\nodefs-handler.js:331:14)
    at NodeFsHandler._handleFile (C:\Users\QCuser\AppData\Local\Cypress\Cache\beta-10.0.0-10.0-release-015e948d\Cypress\resources\app\packages\data-context\node_modules\chokidar\lib\nodefs-handler.js:395:23)
    at NodeFsHandler._addToNodeFs (C:\Users\QCuser\AppData\Local\Cypress\Cache\beta-10.0.0-10.0-release-015e948d\Cypress\resources\app\packages\data-context\node_modules\chokidar\lib\nodefs-handler.js:629:21)

Unhandled rejection Error: ERR_FAILED (-2) loading 'https://doc-ai-qa.internal.omnius.com/__/#/specs/runner?file=cypress\e2e\features\API\Shield\Login.feature'
    at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
    at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:161:8022)
    at EventEmitter.emit (node:events:390:28)
    at EventEmitter.emit (node:domain:475:12)

Desired behavior

Not crash and work properly

Test code to reproduce

NA

Cypress Version

10.0.0

Other

Environment: Windows

@jennifer-shehane
Copy link
Member

@far11ven Thanks for reporting this. We're investigating. Sorry for the inconvenience. This should have been fixed previously as part of #21600 and #21659

@jennifer-shehane jennifer-shehane added v10.0.0 🐛 Issue present since 10.0.0 stage: investigating Someone from Cypress is looking into this labels Jun 1, 2022
@jennifer-shehane
Copy link
Member

@far11ven Had you previously downloaded a pre-release binary of Cypress recently? Could you try clearing your cache if that is the case and retrying? cypress cache clear

tgriesser added a commit that referenced this issue Jun 1, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: investigating Someone from Cypress is looking into this labels Jun 1, 2022
tgriesser added a commit that referenced this issue Jun 1, 2022
* fix: #22002 choikdar ignore EPERM issues

* fix unit test

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 1, 2022

The code for this is done in cypress-io/cypress#22011, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Jun 1, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 2, 2022

Released in 10.0.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.0.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v10.0.0 🐛 Issue present since 10.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants