Open EmilyGraceSeville7cf opened 3 years ago
Also had this issue myself:
Total number of files that will be downloaded: 1
events.js:187
throw er; // Unhandled 'error' event
^
Error: EACCES: permission denied, open '/home/runner/work/<repo_name>/<repo_name>/<file_from_earlier_step.json>'
Emitted 'error' event on WriteStream instance at:
at internal/fs/streams.js:294:12
at FSReqCallback.oncomplete (fs.js:146:23) {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/runner/work/<repo_name>/<repo_name>/<file_from_earlier_step.json>'
}
I had this issue and did a chmod on the destination directory
Instead of creating same issue will post it here.
Run actions/download-artifact@v3
Starting download for All-mods
Directory structure has been setup for the artifact
Total number of files that will be downloaded: 1
node:events:368
throw er; // Unhandled 'error' event
^
Error: EACCES: permission denied, open '/home/runner/work/*/*/build/*/*.pk3'
Emitted 'error' event on WriteStream instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/runner/work/*/*/build/*/*.pk3'
}
I did tried with chmod
and chown
without success.
There is also similiar issue that is closed and points to the container being non root in which file being downloaded is created
The current suspicion is that the issue occurs because the docker image has a non-root user specified.
Originally posted by @alexplischke in https://github.com/actions/download-artifact/issues/58#issuecomment-677927239
But in in my case there is only root user Another solution that I think would be good to test would be settting
container:
image: name_of_container
options: --user root
Hello! I have this repo with the following ci.yml:
Everything works well except the last command
gendarme -- autodeploytonugettest.dll
which fails with:Why it happens even when I use sudo command to run
gendarme
? How to correctly setup permissions here?