環境に関する GitLab ランナー エラー

環境に関する GitLab ランナー エラー

新しい 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 ファイルも削除する必要があります。

関連情報