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

Unexpected error attempting to determine if file exists on ubuntu-24.04-arm #1202

Closed
2 tasks done
styfle opened this issue Jan 16, 2025 · 6 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@styfle
Copy link

styfle commented Jan 16, 2025

Description:

I'm getting this error with the new ubuntu-24.04-arm runner:

Attempting to download 22...
Acquiring 22.13.0 - arm64 from https://github.com/actions/node-versions/releases/download/22.13.0-12683784390/node-22.13.0-linux-arm64.tar.gz
Extracting ...
Unexpected error attempting to determine if executable file exists '/home/runneradmin/.local/bin/tar': Error: EACCES: permission denied, stat '/home/runneradmin/.local/bin/tar'

https://github.com/styfle/packagephobia/actions/runs/12817005768/job/35739230231?pr=1065#step:3:13

Action version:

  • actions/setup-node@v4

Platform:

  • Ubuntu

Runner type:

  • Hosted

Tools version:

  • npm@10.9.0

Repro steps:
Use actions/checkout@v4 and then @actions/node@v4 on the ubuntu-24.04-arm runner:

styfle/packagephobia@ee0ed90

Expected behavior:
Should fetch correct Node.js version without errors.

Actual behavior:

Unexpected error attempting to determine if executable file exists '/home/runneradmin/.local/bin/tar': Error: EACCES: permission denied, stat '/home/runneradmin/.local/bin/tar'
@styfle styfle added bug Something isn't working needs triage labels Jan 16, 2025
@Rhys-T
Copy link

Rhys-T commented Jan 17, 2025

Possibly related: actions/runner-images#11409

@priyagupta108
Copy link
Contributor

Hi @styfle 👋,
Thank you for your report. We will investigate the issue and get back to you as soon as we have updates.

@lucydodo
Copy link

lucydodo commented Jan 17, 2025

I'm experiencing the same, but I think this is not a problem with this repo, but rather an issue with the ARM64 image.
Related: https://github.com/orgs/community/discussions/148648#discussioncomment-11858717

It seems like this issue has now been resolved. :)

@priyagupta108
Copy link
Contributor

Hi @styfle,
The permission denied error you encountered with the ubuntu-24.04-arm runner is linked to the ARM64 image rather than the actions/setup-node itself. You can find more details in the related discussion here.

This issue has now been resolved. Please rerun your workflow to confirm.

We are closing this issue for now. If you encounter any further issues or have additional questions, feel free to reach out.
Thank you!

@styfle
Copy link
Author

styfle commented Jan 22, 2025

@priyagupta108 That solved the error but that revealed another issue: there is no cache.

I reran twice to confirm that node is downloaded each time instead of cached.

https://github.com/styfle/packagephobia/actions/runs/12817005768/job/36025970456?pr=1065#step:3:10

https://github.com/styfle/packagephobia/actions/runs/12817005768/job/36026007041?pr=1065#step:3:10

Let me know if I should create a new issue and where.

@priyagupta108
Copy link
Contributor

Hi @styfle,
This behavior is expected as there is no Node.js version cached in the ubuntu-24.04-arm hosted runner. For more details, you can check the Ubuntu 24.04 by Arm Limited document. If the hosted images have preinstalled versions of Node.js in the hosted toolcache directory, the action can utilize them.
Once the job is finished, the hosted runners are reset to their initial state, which is why Node.js will be installed again for subsequent jobs.

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