Cypress 3.3.0 smoke test segmentation fault and permission problems
See original GitHub issueCurrent behavior:
Today I started test in project, which was working fine before and it failed:
$ npx cypress open
It looks like this is your first time usin
\ Verifying Cypress can run C:\Users\t.s × Verifying Cypress can run C:\Users\t.sess\Cache\3.3.0\Cypress
→ Cypress Version: 3.3.0
Cypress failed to start.
This is usually caused by a missing librar
The error below should indicate which depe
https://on.cypress.io/required-dependencie
If you are using Docker, we provide containdencies installed.
----------
Command failed: C:\Users\t.sutlanaev\AppDa0\Cypress\Cypress.exe --smoke-test --ping=
----------
Platform: win32 (10.0.17134)
Cypress Version: 3.3.0
(Sorry for clipped logs, git bash’s terminal cannot copy it properly)
Then I just tried to run the command, which cypress said was not working:
$ 'C:\Users\t.sutlanaev\AppData\Local\Cypress.exe' --smoke-test --ping=223
Segmentation fault
After that I tried to reinstall it:
$ npx cypress install --force
Cypress 3.3.0 is installed in C:\Users\t.sutlanaev\AppData\Local\Cypress\Cache\3.3.0
Installing Cypress (version: 3.3.0)
√ Downloaded Cypress
× Unzipping Cypress
→ Cypress Version: 3.3.0
Finishing Installation
The Cypress App could not be unzipped.
Search for an existing issue or open a GitHub issue
at
https://github.com/cypress-io/cypress/issues
----------
Error: EPERM: operation not permitted, mkdir 'C:\Users\t.sutlanaev\AppData\Local\Cypress\Cache\3.3.0'
----------
Platform: win32 (10.0.17134)
Cypress Version: 3.3.0
So right now folder ‘AppData\Local\Cypress\Cache\3.3.0’ is stuck in this state - I cannot access it in any way even using Administrator. It cannot be deleted or changed, seems like something locked it.
I’d like some instructions how to unlock it now.
The workaround which I’ve come with is to change
"devDependencies": {
"cypress": "^3.2.0",
to
"devDependencies": {
"cypress": "3.2.0",
Now version is fixed on 3.2.0, which is still working fine.
Desired behavior:
Should not fail this way. Should not lock the folder indefinitely.
Steps to reproduce: (app code and test code)
I suppose any test would fail with 3.3.0 on Windows 10. Don’t know what to add here.
Versions
Cypress 3.3.0, Windows 10
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top GitHub Comments
Similar for me with Cypress 3.3.1, Dockerfile with cypress/base:10. Locally everything is fine. In TFS:
I have closed my Mac, reopened the next day it and now it works…