github-action icon indicating copy to clipboard operation
github-action copied to clipboard

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

Open DjNaGuRo opened this issue 3 years ago • 3 comments

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

DjNaGuRo avatar Jan 11 '22 08:01 DjNaGuRo

Not sure if this is related to #446

Develliot avatar Feb 03 '22 20:02 Develliot

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

gplusdotgr avatar Jun 17 '22 09:06 gplusdotgr

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

hash-bang avatar Sep 02 '22 03:09 hash-bang

@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.

MikeMcC399 avatar Nov 06 '23 15:11 MikeMcC399

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

hash-bang avatar Nov 07 '23 23:11 hash-bang