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, lstat '/root/directory' #130

Closed
2 of 6 tasks
MattiaFailla opened this issue Sep 26, 2020 · 4 comments
Closed
2 of 6 tasks

Error: EACCES: permission denied, lstat '/root/directory' #130

MattiaFailla opened this issue Sep 26, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@MattiaFailla
Copy link

Describe the bug
Trying to upload a directory located under root lead to EACCES error

Version

  • V1
  • V2

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac

Screenshots
image

Run/Repo Url
https://github.com/nextblu/spacecoin-docker/actions/runs/273850769

How to reproduce
Try to upload an artifact located in /root/

@MattiaFailla MattiaFailla added the bug Something isn't working label Sep 26, 2020
@MattiaFailla MattiaFailla changed the title Error: EACCES: permission denied, lstat '/root/spacecoin' Error: EACCES: permission denied, lstat '/root/directory' Sep 26, 2020
@l0b0
Copy link

l0b0 commented Mar 22, 2022

I tried to sudo chmod --recursive 0755 /redacted the relevant directories, but even then actions/upload-artifact@v3 fails:

EACCES: permission denied, lstat '/redacted'

Is there some SELinux rule I have to disable or something to be able to read files? I should be able to list directories rather than files, right?

@konradpabjan
Copy link
Collaborator

v4 has shipped officially today and recommend switching over as this should be fixed. https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/

v1-v3 used to use stat and/or lstat to do a bunch of calculations to file sizes and other things but that is no longer the case

@MattiaFailla
Copy link
Author

@konradpabjan I can confirm this has been fixed in the new version.

@mwithi
Copy link

mwithi commented Jan 9, 2024

Hello, I still have this problem with v4, @MattiaFailla please was this the same intent of your?

https://github.com/informatici/openhospital-api/actions/runs/7467924455/job/20322390283?pr=421#step:10:12

Note: using act locally it works fine (e.g. act -P ubuntu-latest=quay.io/jamezp/act-maven --artifact-server-path tmp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants