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

Error: EACCES: permission denied, mkdir '/__w/{repo_name}/{repo_name}/cypress/videos' #480

Closed
DjNaGuRo opened this issue Jan 11, 2022 · 5 comments

Comments

@DjNaGuRo
Copy link

DjNaGuRo commented Jan 11, 2022

I'm facing the following problem on GitHub Actions when the job reaches this line of code : npx cypress run -P . -C cypress.json -r spec --record. The below error message is thrown and the workflow failed ( Error: Process completed with exit code 1)

Warning: We failed to record the video.

This error will not alter the exit code.

Error: EACCES: permission denied, mkdir '/__w/{repo_name}/{repo_name}/cypress/videos'

I didn't finf any fix of this on the web, can someone help for that ?

PS: I used the Cypress image : cypress/browsers:node16.5.0-chrome94-ff93

@Develliot
Copy link

Develliot commented Feb 3, 2022

Not sure if this is related to #446

@gkatsanos
Copy link

@Develliot related possibly, but the fix proposed does not address it :(

@hash-bang
Copy link

For some reason the default video storage path gets screwed up in the Docker image. It seems to point to an unwritable location rather than somewhere it can work with the video compression.

If you force the videoStorage config in your .yml file to something usable it seems to work:

      - name: 'E2E Tests - Chrome'
        uses: cypress-io/github-action@v4
        with:
          install: false
          start: npm run cypress:record
          browser: chrome
          record: true
          parallel: true
          group: 'E2E - Chrome'
          config: videosFolder=/tmp/cypress-videos        # <-- Fix for https://github.com/cypress-io/github-action/issues/480

ParthibanRajasekaran added a commit to ParthibanRajasekaran/cypress-mocha that referenced this issue Oct 16, 2022
@MikeMcC399
Copy link
Collaborator

@DjNaGuRo

Can we assume that your issue is now resolved?

Your original post didn't include your workflow, so it is difficult to evaluate what may have caused your issue.

The example from @hash-bang was using github-action in a non-conventional way with the start parameter running Cypress. That may have produced a conflict.

Also video recording starting with Cypress 13.0.0 is disabled by default, so this may turn out to be less of an issue these days.

@hash-bang
Copy link

This one can be closed if you wish, I found a work around elsewhere.

@MikeMcC399 MikeMcC399 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants