I am running Centos 7 with a Gitlab CE instance. The runner is installed on another Centos 7 server. We have multiple ssh runners that seem to still work fine. We performed a sudo yum update and rebooted the servers. Not sure exactly what all got updated. However, for all projects that use the shell runner is having trouble now and seems to fail in the Preparing environment stage due to a permission error on /home/gitlab_ci_multi_runner/.bash_profile and /home/gitlab_ci_multi_runner/.bash_logout
I have tried renaming .bash_profile and .bash_logout to try a fix I found where removing those files would solve it. Oddly, the pipeline still showed those files with the same name even though they did not exist. I tried commenting out everything in those files. I also gave full 777 permissions on those files and disabled SELinux. I can’t seem to figure this out.
In /var/log/messages I see this
Mar 24 09:12:49 puppet su: (to gitlab_ci_multi_runner) root on none
Mar 24 09:12:49 puppet systemd: Created slice User Slice of gitlab_ci_multi_runner.
Mar 24 09:12:49 puppet systemd: Started Session c2 of user gitlab_ci_multi_runner.
Mar 24 09:12:50 puppet systemd: Removed slice User Slice of gitlab_ci_multi_runner.
Mar 24 09:12:50 puppet gitlab-runner: #033[31;1mERROR: Job failed (system failure): prepare environment: exit status 1. Check Shells supported by GitLab Runner | GitLab for more information#033[0;m #033[31;1mduration#033[0;m=294.830796ms #033[31;1mjob#033[0;m=8793 #033[31;1mproject#033[0;m=41 #033[31;1mrunner#033[0;m=8e845539
Mar 24 09:12:50 puppet gitlab-runner: #033[0;33mWARNING: Failed to process runner #033[0;m #033[0;33mbu
In the Gitlab GUI side of the pipeline
- *GitLab 13.9
- *Runner 13.9 tried updating to 13.10 and same issue