checkout: `/__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)`
Using container: image: debian:bullseye to build the OpenJDK for an older release of a distro (Debian in this case, but this isn’t specific to Debian) causes a failure due to node in the actions/checkout@v4 docker image to fail to run due to the container having an older glibc:
/usr/bin/docker exec ebe297a6b5716c387c7333d466eb082069a2f0b0c97379a95e810de4f4fa67a5 sh -c "cat /etc/*release | grep ^ID"
/__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
(Using build tools that depend on newer glibc versions seems likely to be a common pitfall for GitHub Actions.)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 35
- Comments: 45
Commits related to this issue
- Revert to v3, since v4 does not work - actions/checkout#1590 — committed to briandfoy/github_workflows by briandfoy 3 years ago
- Revert checkout to v3 since v4 is broken - actions/checkout#1590 — committed to briandfoy/data-constraint by briandfoy 3 years ago
- Fix updated GH actions (use @v3 for linux builds) See https://github.com/actions/checkout/issues/1590 Signed-off-by: falkTX <falktx@falktx.com> — committed to mod-audio/mod-desktop by falkTX 3 years ago
- Fix updated GH actions (use @v3 for linux builds) See https://github.com/actions/checkout/issues/1590 Signed-off-by: falkTX <falktx@falktx.com> — committed to mod-audio/mod-desktop by falkTX 3 years ago
- Revert "Switched to actions/checkout@v4 to avoid CI deprecation warnings." This reverts commit a8750d563f26c97f7fcf77d5b2fcf14e926cdfe3. checkout@v4 doesn't work on ubuntu:16.04 and ubuntu:18.04 ima... — committed to boostorg/scope by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/scope by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/scope by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to Lastique/atomic by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to Lastique/atomic by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/core by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/detail by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/filesystem by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/integer by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/iterator by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/log by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/parameter by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/sync by Lastique 3 years ago
- Replaced actions/checkout usage with manual download commands. This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4 is not functional because of the upstream bug: https:/... — committed to boostorg/utility by Lastique 3 years ago
- GHA: Workaround node20 failures in older Ubuntu containers Avoid errors like > /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)... — committed to boostorg/boost-ci by Flamefire 3 years ago
I got around it by using:
in my workflow: https://github.com/mmomtchev/hadron/blob/main/.github/workflows/os_comp.yml#L32-L33
But this too, it will stop working at some point.
For people asking, Node.js 20 started requiring a newer version of glibc than what these older distros are shipping. Node.js 16 reached end-of-life in September 2023. GitHub Actions skipped Node 18 and went straight to Node 20.
Ubuntu 18.04 went end-of-life in May 2023. Ubuntu 20.04 and newer LTS releases are still supported (as of this writing), but it does not mean that they have a new-enough version of glibc. This also affects things like CentOS 7 (reaching end-of-life in a few days) and Amazon Linux 2 (supported for 1 more year) who support neither Node.js 18 nor Node.js 20[1][2].
In languages like C/C++, and Linux distributions that are supported for many years, everything boils down to the versions of the shared C libraries (
.sofiles) that are installed and “certified” for that release of that OS. So it’s challenging to upgrade something as foundational as glibc in older Linux distributions and provide any kind of guarantee or support without upgrading the whole OS.The core of the issue is continued use of end-of-life (unsupported) software. Node.js 20 requires newer releases of Linux distributions. The specific configuration of software you’re trying to use includes end-of-life software in the mix.
This is why you are receiving these error messages. Since the
@v3of this action depends on an end-of-life version of Node.js, I think it would be wrong of the maintainers to “remove warnings”. You are genuinely running unsupported software.[1] https://github.com/nodejs/node/commit/3671cc0432 [2] https://github.com/nodejs/node/pull/42659
The core of the issue is making it very difficult to impossible for the projects that have nothing to do with JS on their own and that need to support the older platforms to not be able to test the builds on or create distributions for them any more.
Dropping support for the older Node versions even on the platforms where the new ones are not available is an interesting decision, to put it mildly.
We also have this issue. Github is saying v3 is deprecated. But no one can use v4
Below is the best method that I’ve found so far, which works reasonably well and does not depend on any third-party action:
Here is a more complex example of how I have successfully ported one of my build to this method:
I have other examples here:
Good luck everyone!
We used this workaround since the issue appeared, however it seems today v3 is hitting this issue as well unfortunately.
the workaround is to keep using v3 actions. and it happens because github devs updated the base system where their node stack is built from.
seeing the way github has handled other issues, I expect this one to just be ignored completely.
I have the same problem with checkout@v4 with running CI on ubuntu:16.04 and ubuntu:18.04 docker images:
https://github.com/Lastique/scope/actions/runs/7754629439/job/21148329132
https://github.com/Lastique/scope/actions/runs/7754629439/job/21148329685
These older Ubuntu images are needed to be able to test older compiler versions.
Until this issue is resolved, please remove the deprecation notice for checkout@v3, as there simply is no alternative.
It appears to me that we’ve reached the “some point” where this stops working. In the most recent GitHub Actions runner release, the minimum
nodeversion was bumped to Node 20:Thank you! You saved my life!
note that it is not just the checkout being broken, anything that uses node is broken which includes cache and artifacts. even the node-setup action (which could potentially be a workaround) is broken.
basically all the v4 actions from github are broken for older distros due to glibc requirements
I also have this problem on Ubuntu 22.04 (see https://github.com/briandfoy/data-constraint/actions/runs/7645971689/job/20833756885 while it is around).
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSIONworkaround apparently no longer works.I have the same issue when trying to use ubuntu:18.04 image https://github.com/moddevices/mod-desktop-app/actions/runs/7697857575/job/20975801114
We fixed this issue by using the checkout action on Ubuntu 20.04, and modified the tests to use docker run -v /code:/work centos:7 bash -C “xxx”. just for someone also run into this issue.
Same problem OS & Version: Centos 7 Runtime: nodejs v20 Error messages:
Has anyone solved this?
Now also broken for checkouts v3 with centos:7 container (working until very recently):
https://github.com/nutanix/libvfio-user/actions/runs/10417971087/job/28853465005?pr=802
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSIONis also an OS level environment variable, It can be changed on the runner host directly (in the script that starts up the runner for example).This worked without having to change any
ymlconfiguration (but obviously will apply globally to everything the runner does, in case)For reference see accepted answer here: https://github.com/actions/runner/discussions/2604
Man! You saved the day. Thanks so much. I wonder how you figured it out.
Similarly the
actions/cache@v4also fails https://github.com/moddevices/mod-desktop-app/actions/runs/7698414056/job/20977633093@dalboris wrote:
Thank you so much! I think I see the path forward now for fixing our CI builds on older systems.
sorry, changed visibility to public
gr8 workaround. tested it on a sample repo of mine, you can see example https://github.com/barlesh/workaround-gh-co-and-artifact-on-old-os
I used as workaround this step action that allows to run a container in a step: docker-run-action.
You can do the checkout with
runs-on: ubuntu-latestand then use the image you want in the steps with the docker-run-action.hey team, any updates on this? It’s being 9 months and this issue has been referenced in hundreds of issues/prs
@backend-sungjin as it’s clear they’re not planning to fix this, I’d recommend dropping use of this action altogether.
https://github.com/nutanix/libvfio-user/pull/803/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4cR35
Have you tried
Please see https://github.com/mmomtchev/hadron/blob/main/.github/workflows/os_comp.yml#L32-L33
This is happening to me with checkout v4, on ubuntu-latest.
The v3 workaround isn’t working for me, either.
This solution works fine, but be careful while using the v4 of the github action runners, they bypass this flag.
Yes. I’ve noticed. Obviously this was the first one I diagnosed, so it got the issue 😃