Это старая версия документа!
Ошибки GitLab
sh: 1: $bash: not found
Preparing environment 00:01 sh: 1: $bash: not found ERROR: Job failed (system failure): prepare environment: Process exited with status 127. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
Причина: loginshell не установлен или отличается от bash. Ошибка описана тут shell executor bugs out when loginshell != bash.
cat /etc/passwd # выводит git-runner:x:1001:1001::/home/git-runner:
sudo chsh git-runner # установить оболочку /bin/bash