gitlab runner 环境错误

gitlab runner 环境错误

我已经安装了新的 gitlab runner 但出现了错误。

ERROR: Job failed: prepare environment: Process exited with status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

我的文件 /home/gitlab-runner/.bash_logout 是空的。我的配置:

concurrent = 1
check_interval = 0
shutdown_timeout = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "server2"
  url = "https://gitlab.domain.com/"
  id = 41
  token = ""
  token_obtained_at = 2023-04-20T07:10:16Z
  token_expires_at = 0001-01-01T00:00:00Z
  executor = "ssh"
  [runners.custom_build_dir]
  [runners.cache]
    MaxUploadedArchiveSize = 0
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.ssh]
    user = "gitlab"
    host = "server.dns.name"
    port = "22"
    identity_file = "/data/gitlab/.ssh/id_ed25519"
    disable_strict_host_key_checking = true

相同的配置(除了 token 和连接信息)在其他运行器上运行良好。我回滚了 15.6.1 上的版本(此版本安装在其他运行器上)。用户 gitlab 就像用户 gitlab-runner 一样没有 .bash_logout。使用 proxmox 7.3-6 作为运行器(基于 debian 11)。这有什么问题?

答案1

已修复,还需要删除 .bashrc 文件

相关内容