Problem with Registering Gitlab Runner

I want to register Gitlab runner. Still, the the error messages as follows. Could anyone give me solutions?

root@ip-10-230-41-211:~# gitlab-rake gitlab:env:info

System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:2.3.0
Rake Version: 10.5.0
Sidekiq Version:4.1.4

GitLab information
Version: 8.11.3
Revision: 6cd4edb
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
SSH Clone URL:
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version: 3.4.0
Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories
    Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
    Git: /opt/gitlab/embedded/bin/git

root@ip-10-230-41-211:~# gitlab-runner register
Runtime platform arch=amd64 os=linux pid=18065 revision=de104fcd version=14.5.1
Running in system-mode.

Enter the GitLab instance URL (for example,

Enter the registration token:

Enter a description for the runner:
[ip-10-230-41-211]: shell
Enter tags for the runner (comma-separated):
ERROR: Registering runner… failed runner=BfiHpDuq status=POST https:///api/v4/runners: 405 Method Not Allowed ()
PANIC: Failed to register the runner. You may be having network problems.

Hi @simonleung

Did you redact this bit of the output BTW?

GitLab Runner 14.5.1 is not compatible with the 8.x server release. Suggest upgrading your GitLab server first to 14.x.


1 Like