환경에 대한 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-runner와 같은 사용자 gitlab에는 .bash_logout이 없습니다. proxmox 7.3-6을 러너로 사용했습니다(debian 11 기반). 무슨 문제가 있나요?

답변1

수정되었습니다. .bashrc 파일도 제거해야 합니다.

관련 정보