question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress 3.3.0 smoke test segmentation fault and permission problems

See original GitHub issue

Current 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
viraxslotcommented, May 23, 2019

Similar for me with Cypress 3.3.1, Dockerfile with cypress/base:10. Locally everything is fine. In TFS:

2019-05-23T10:46:43.8313880Z [?25l[10:46:43]  Verifying Cypress can run /root/.cache/Cypress/3.3.1/Cypress [started]
2019-05-23T10:46:54.7127190Z [10:46:54]  Verifying Cypress can run /root/.cache/Cypress/3.3.1/Cypress [failed]
2019-05-23T10:46:54.7252050Z [10:46:54] → Cypress verification timed out.
2019-05-23T10:46:54.7413660Z 
2019-05-23T10:46:54.7469380Z This command failed with the following output:
2019-05-23T10:46:54.7481870Z 
2019-05-23T10:46:54.7794280Z /root/.cache/Cypress/3.3.1/Cypress/Cypress --smoke-test --ping=634
2019-05-23T10:46:54.7810850Z 
2019-05-23T10:46:54.8189620Z ----------
2019-05-23T10:46:54.8202830Z 
2019-05-23T10:46:54.8324050Z Command failed: /root/.cache/Cypress/3.3.1/Cypress/Cypress --smoke-test --ping=634
2019-05-23T10:46:54.8386170Z 
2019-05-23T10:46:54.8506160Z ----------
2019-05-23T10:46:54.8517910Z 
2019-05-23T10:46:54.8539900Z Platform: linux (Debian - 9.8)
2019-05-23T10:46:54.8815540Z Cypress Version: 3.3.1
1reaction
mickeyvipcommented, Jun 2, 2019

I have closed my Mac, reopened the next day it and now it works…

Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress-io/cypress - Gitter
I am trying to automate an sso login, but the site is refusing to load with below error Refused to display 'https://example.com/' in...
Read more >
Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
Untitled
Estou apaixonada teste, Beginner piano note quiz, Infidels a place in history, ... Sanicompact 48 troubleshooting, Demon broadband speed, Mid summer garden ...
Read more >
Mbed OS releases
Mbed OS Releases. Feature releases of Mbed OS are made available on a roughly quarterly basis. We release patch releases every two weeks....
Read more >
SMOKE issue "Program received signal SIGSEGV
And I have successfully run test cases. ... SMOKE issue "Program received signal SIGSEGV: Segmentation fault ... Permission denied.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found