ERROR: Job failed (system failure): prepare environment: exit status 1 based on wrong config file
I had fresh install of Ubuntu 20.04 (focal) and gitlab-runner which in first attempt to run pipeline faced
Running with gitlab-runner 13.2.2 (a998cacd)
on laptop-HP 2mDpigRv
Preparing the "shell" executor
00:00
Using Shell executor...
Preparing environment
00:01
Running on laptop-HP...
ERROR: Job failed (system failure): prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
Also I get this error when run gitlab-runner --debug run
error=stat /home/hpuser/.gitlab-runner/config.toml: not a directory
I checked the mentioned path and saw in user's home directory only there is a .gitlab-runner file instead directory and contains the config information and checked the /etc/gitlab-runner/ as root user and saw there is config.toml with content same as home/hpuser/.gitlab-runner/ file