Gitlab-runner status 503 Service Temporarily Unavailable

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

gitlab runners failing

I tried the suggested solution of deleting this line nginx[‘custom_gitlab_server_config’] = “location /api/v4/jobs/request {\n deny all;\n return 503;\n}\n”
in /etc/gitlab/gitlab.rb, but that didn’t seem to make a difference.

Steps to reproduce

sudo gitlab-runner run

Configuration

Versions

  • Self-managed
  • GitLab.com SaaS
  • Dedicated
  • Self-hosted Runners

GitLab:

System information
System: Ubuntu 22.04
Current User: git
Using RVM: no
Ruby Version: 3.2.5
Gem Version: 3.6.5
Bundler Version:2.6.5
Rake Version: 13.0.6
Redis Version: 7.0.15
Sidekiq Version:7.2.4
Go Version: unknown

GitLab information
Version: 17.10.3
Revision: 22d4014a923
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 14.17
URL:
HTTP Clone URL:
SSH Clone URL:
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version: 14.41.0
Repository storages:

  • default: unix:/var/opt/gitlab/gitaly/gitaly.socket
    GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell

Gitaly

  • default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket
  • default Version: 17.10.3
  • default Git Version: 2.48.1.gl1

GitLab Runner:

Version: 17.10.1
Git revision: ef334dcc
Git branch: 17-10-stable
GO version: go1.23.6 X:cacheprog
Built: 2025-03-26T12:24:33Z
OS/Arch: linux/amd64