
Instalei um novo executor do gitlab e estou recebendo um erro.
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
meu arquivo /home/gitlab-runner/.bash_logout está vazio. Minha configuração:
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
A mesma configuração (exceto token e informações de conexão) funciona bem em outros executores. Reverto a versão 15.6.1 (esta versão instalada em outros executores). O usuário gitlab, assim como o usuário gitlab-runner, não possui .bash_logout. Usei o proxmox 7.3-6 como executor (baseado no debian 11). Que problema isso tem?
Responder1
Corrigido, também é necessário remover o arquivo .bashrc