8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

Github Actions Self-Hosted Runner 在 node 20 上出现问题

Drdre01 2月前

70 0

我在 Ubuntu VM 上运行 Github Actions Self Hosted Runner:~$ cat /etc/os-releaseNAME=\'Ubuntu\'VERSION=\'20.04.6 LTS (Focal Fossa)\'ID=ubuntuID_LIKE=debianPRETTY_NAME=\'

我在 Ubuntu VM 上运行 Github Actions Self Hosted Runner:

~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"

我正在运行 Actions Runner 版本 2.317.0

内容 如下:

我正在使用 GitHub Actions:

jobs:
  my-job:
      runs-on: [my-ubuntu]
      timeout-minutes: 120
      container:
        image: my-image-path:latest
        credentials:
          username: ${{ secrets.USERNAME }}
          password: ${{ secrets.PASSWORD }}

      steps:
        - name: Checkout Source Code
          uses: actions/[email protected]

但是当作业执行时,我 在作业日志中 错误

/usr/bin/docker exec  XXXX 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)

在 Ubuntu VM 上,我已经安装了节点,并且它正在按预期运行;不确定为什么运行器抱怨无法运行 node 20

# Self-Hosted Runner Ubuntu 20.04
$ node -v
v20.15.0

附加信息:

$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.16) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

目前,为了避免 CI 的停机,我正在运行如下脚本:

bash -c 'ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true run.sh' > nohup.out 2>&1 &

## and github actions
      steps:
        - name: Checkout Source Code
          uses: actions/checkout@v3

帖子版权声明 1、本帖标题:Github Actions Self-Hosted Runner 在 node 20 上出现问题
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Drdre01在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 我正在尝试使用 WSL 在 Windows 上安装 OCaml。我遵循了以下说明:安装 WSL因此,我打开了 PowerShell 并输入 wsl --install重新启动后,我启动了 Windows 命令 P...

    我正在尝试使用 WSL 在 Windows 上安装 OCaml。我遵循了以下说明: 安装 WSL

    所以我打开了 PowerShell 并输入 wsl --install

    重新启动后,我以管理员身份启动了 Windows 命令提示符,以下是我的输出:

    C:\Windows\System32>ubuntu
    Installing, this may take a few minutes...
    Please create a default UNIX user account. The username does not need to match your Windows username.
    For more information visit: https://aka.ms/wslusers
    Enter new UNIX username: florianingerl
    New password:
    Retype new password:
    passwd: password updated successfully
    Installation successful!
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
    
    This message is shown once a day. To disable it please create the
    /home/florianingerl/.hushlogin file.
    florianingerl@FLORI-LENOVO-93:~$ bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"
    ## Downloading opam 2.1.6 for linux on x86_64...
    ## Downloaded.
    ## Where should it be installed ? [/usr/local/bin]
    Write access to '/usr/local/bin' required, using 'sudo'.
    Command: install -m 755 /tmp/opam-2.1.6-x86_64-linux /usr/local/bin/opam
    [sudo] password for florianingerl:
    ## opam 2.1.6 installed to /usr/local/bin
    ## Run this script again with '--restore ' to revert.
    florianingerl@FLORI-LENOVO-93:~$ opam --version
    2.1.6
    florianingerl@FLORI-LENOVO-93:~$ ocaml --version
    Command 'ocaml' not found, but can be installed with:
    sudo apt install ocaml-interp
    florianingerl@FLORI-LENOVO-93:~$ sudo apt install ocaml-interp
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    E: Unable to locate package ocaml-interp
    florianingerl@FLORI-LENOVO-93:~$ opam init -y
    No configuration file found, using built-in defaults.
    Checking for available remotes: rsync and local, git.
      - you won't be able to use mercurial repositories unless you install the hg command on your system.
      - you won't be able to use darcs repositories unless you install the darcs command on your system.
    
    [WARNING] Recommended dependencies -- most packages rely on these:
      - make
      - cc
    [ERROR] Missing dependencies -- the following commands are required for opam to operate:
      - unzip
      - bwrap: Sandboxing tool bwrap was not found. You should install 'bubblewrap'. See
        https://opam.ocaml.org/doc/FAQ.html#Why-does-opam-require-bwrap.
    

    我对 Ubuntu 完全陌生。我只想安装 OCaml。那么现在如何通过 Opam 或其他方式安装 OCaml 编译器。如果需要先安装 unzip 或 bwrap,安装这些命令是什么。安装 ocaml 后如何安装 dune?

返回
作者最近主题: