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 verify fails with permission error for Github Actions on Linux

See original GitHub issue

Current behavior

When running our Github action, the job fails on the cypress verify step:

/usr/local/bin/npx cypress cache list
┌─────────┬──────────────┐
│ version │ last used    │
├─────────┼──────────────┤
│ 8.7.0   │ 3 months ago │
└─────────┴──────────────┘
/usr/local/bin/npx cypress verify
[STARTED] Task without title.
[FAILED] EACCES: permission denied, open '/github/home/.cache/Cypress/8.7.0/binary_state.json'
An unexpected error occurred while verifying the Cypress executable.

Desired behavior

Complete the verification within an accessible folder and update the cache as necessary.

Test code to reproduce

Snippet of the action:

jobs:
  ui-chrome-tests:
    runs-on: ubuntu-latest
    container: cypress/browsers:node16.5.0-chrome94-ff93
    strategy:
      fail-fast: false
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: "UI Tests - Chrome"
        uses: cypress-io/github-action@v2
        with:
          # we have already installed all dependencies above
          install: true
          browser: chrome

Cypress Version

8.7.0, 9.3.1

Other

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
flotwigcommented, Feb 2, 2022

There is a workaround for this issue on the corresponding issue on cypress-io/github-actions: https://github.com/cypress-io/github-action/issues/446#issuecomment-968192021

0reactions
tetonpeakscommented, Nov 11, 2022

After clearing my Cypress cache folder with cypress clear cache I ran into this issue as well.

This is what I did:

  1. rm -rf the Cypress folder in your .cache director
  2. For me I also deleted the Cypress folder in node_modules
  3. Cleaned cache with npm cache clean --force
  4. Installed Cypress with npm install cypress --save-dev

Hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

workflow failing with EACCES: permission denied #446 - GitHub
I ran into this issue using a Cypress browser docker image with Node v16. I fixed the problem by running job as a...
Read more >
Permission denied in cypress/included:6.5.0 #15225 - GitHub
I'm getting this error message when running cypress/included in GitHub Actions: /usr/local/bin/npx cypress verify 25l[17:28:04] Verifying Cypress can run ...
Read more >
Permission denied on Linux #29 - cypress-io/cypress-test-tiny
Using Debian Stretch, I forked that project, then ran: git clone https://github.com/AlexandreBonneau/cypress-test-tiny.git cd ...
Read more >
cypress verify fails on GitHub Actions CI · Issue #6221
Current behavior: My GitHub Actions CI pipeline has started failing at the cypress verify step. With DEBUG=cypress.* turned on, I get the ...
Read more >
Issues - GitHub
Comments · this is the error i receive in github action "An unexpected error occurred while verifying the Cypress executable. · Error: EACCES:...
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