When your Gitlab runner fails with even simple script, I hope this helps. I have this simple script to run in gitlab-ci.yml

qa_test:
  stage: qa
  tags: 
    - psg-dev
  script:
    - echo "Running QA tests"

However, it fails as below even any other settings for config.toml looks okay.

If so, you can modify shell logout file or delete it. It can be found in gitlab runner home directory. It is usually /home/gitlab-runner/. For bash shell, it is .bashrc_logout. You can comment out all lines and save it or you can just remove .bashrc_logout file in gitlab runner home directory. Then, it will work magically. Hope this helps.