Search code examples
gitlabgitlab-cigitlab-ci-runner

Just registered GitLab runner and getting Authentication failure when using shell type


Just installed GitLab runner service and tried to run a basic job.

I got the following output:

Password: su: Authentication failure ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information

Googling, I found that the contents of the .bash_logout may be a problem, but my .bash_logout was blank. I created and added ssh keys for the gitlab-runner user, and was able to manually clone via ssh, but I can't get the job to run. Anyone experienced this that can offer a suggestion?


Solution

  • I found the issue was in the pam file. root couldn't su to gitlab-runner