Cypress verify fails with permission error for Github Actions on Linux
See original GitHub issueCurrent 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:
- Created 2 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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-968192021After clearing my Cypress cache folder with
cypress clear cache
I ran into this issue as well.This is what I did:
rm -rf
the Cypress folder in your .cache directornpm cache clean --force
npm install cypress --save-dev
Hope this helps!