
我安裝了新的 gitlab 運行程序,但收到錯誤。
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
相同的配置(令牌和連接資訊除外)在其他跑步者上運作良好。我在 15.6.1 上回滾版本(此版本安裝在其他運行器上)。使用者 gitlab 就像使用者 gitlab-runner 一樣沒有 .bash_logout。使用 proxmox 7.3-6 作為運行器(基於 debian 11)。它有什麼問題嗎?
答案1
已修復,還需要刪除 .bashrc 文件