actions / upload-artifact

MIT License
3.01k stars 683 forks source link

[bug] cannot use glibc 2.34 (amazon linux 2023) #489

Open dezren39 opened 6 months ago

dezren39 commented 6 months ago

What happened?

version `GLIBC_2.28' not found

What did you expect to happen?

it works

How can we reproduce it?

use amazon linux 2023

Anything else we need to know?

maybe node21 solves this? maybe, provide pre-command so we can run nvm and install a different node or something

What version of the action are you using?

master

What are your runner environments?

self-hosted

Are you on GitHub Enterprise Server? If so, what version?

no

rahmat-multiplier commented 6 months ago

I did some workaround to fix this:

sudo dnf -y install nodejs20
mv /opt/actions-runner/externals/node20/bin/node /opt/actions-runner/externals/node20/bin/node-bak
ln -s /usr/bin/node-20 /opt/actions-runner/externals/node20/bin/node

above are executed during runner node installation after installing the github action runner package.

The issue here is, prebuilt nodejs 20 from github action runner package is using glibc 2.27/2.28 hence can't detect those version on AL2023 which uses glibc 2.34. So we can use the nodejs binary from the default AL2023 package manager to replace the github runner one.