Im looking for some guidance for configuring gitlab-runner with docker executor on linux server hosted on Digital Ocean.
Ive followed steps from:
Managed to install gitlab-runner, register as shared runner, configured everything according to the
documentation. But it still didnt pick up any jobs.
Runner is online and showing within project under: Settings->CI/CD->Runners.
But when I type: gitlab-runner --debug run it shows:
runner=dfgdgdzsgdsz status=503 Service Temporarily Unavailable
Ive also tried to add project specific runner - the same happens. Job is pending.
Gitlab-ci.yml looks like this:
‘’’
build:
image: alpine
script:
- echo “Hello” > index.html
‘’
I’ve checked config.toml file, urls, run: gitlab-runner restart, verify and also downgraded version of
Gitlab runner to 15.1.1 to match with Gitlab version: 15.1.2.
THe rpoblem is solved. It was an issue on gitlab server side. In the configuration file there were following line in /etc/gitlab/gitlab.rb:
nginx[‘custom_gitlab_server_config’] = “location /api/v4/jobs/request {\n deny all;\n return 503;\n}\n”
After deleting it , all pipelines starts to run .
So while having connection issues gitlab runner <-----> server, its important to also check config files on server side.