When github-runner
is installed manually (by tarball extracting from official site), everything works file. However, when it is executed from nixpkgs.github-runner
, most binaries throw the error of
version 'GLIBC_2.33' not found
My Github Actions invoke nix-shell
to run CI scripts:
nix-shell nix/shells.nix -A dev --run <said script>
When scripts use binaries provided within the shell-script itself, this error is thrown all over:
Run nix-shell env/shells.nix -A ci --run scripts/ci/pre-commit.sh
pre-commit installed at .git/hooks/pre-commit
[INFO] Initializing environment for https://github.com/jorisroovers/gitlint.
An unexpected error has occurred: CalledProcessError: command: ('/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/bin/git', 'fetch', 'origin', '--tags')
return code: 128
expected return code: 0
stdout: (none)
stderr:
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/dphabgk0ha7pzp4ca9sdry6fhvpin1lv-curl-7.81.0/lib/libcurl.so.4)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/8v88bq325ldf2jvxb48nfvmkg7840kj6-openssl-1.1.1m/lib/libcrypto.so.1.1)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libgssapi_krb5.so.2)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libkrb5.so.3)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libk5crypto.so.3)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libkrb5support.so.0)
Check the log at /home/github/.cache/pre-commit/pre-commit.log
[INFO] Initializing environment for https://github.com/jorisroovers/gitlint.
An unexpected error has occurred: CalledProcessError: command: ('/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/bin/git', 'fetch', 'origin', '--tags')
return code: 128
expected return code: 0
stdout: (none)
stderr:
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/dphabgk0ha7pzp4ca9sdry6fhvpin1lv-curl-7.81.0/lib/libcurl.so.4)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/8v88bq325ldf2jvxb48nfvmkg7840kj6-openssl-1.1.1m/lib/libcrypto.so.1.1)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libgssapi_krb5.so.2)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libkrb5.so.3)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libk5crypto.so.3)
/nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/libexec/git-core/git-remote-https: /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yx68rkafhbm24r5kqpf1m5qwd7agfmg8-libkrb5-1.18/lib/libkrb5support.so.0)
Check the log at /home/github/.cache/pre-commit/pre-commit.log
Error: Process completed with exit code 3.
I would appreciate any help with this issue.
OS: Ubuntu 20.04
Nix: 2.6.0
System Info
- system: `"x86_64-linux"`
- host os: `Linux 5.4.0-97-generic, Ubuntu, 20.04.3 LTS (Focal Fossa)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.6.0`
- channels(github): `""`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Reproduction:
- Create a fresh ubuntu droplet at Digital Ocean
- Install nix multi-user 2.6.0
- Setup Github Runner with
nix-env -i github-runner
config.sh --url <repo> --token <token>
run.sh
- Trigger a Github Action with any script using
nix-shell
name: "Test GitHub Action"
on:
push:
jobs:
cache:
runs-on: self-hosted
steps:
- name: Test nix-shell
run: nix-shell -p coreutils --run 'echo hello'