1

我一直在尝试在我的 Mac 中注册一个 gitlab 运行器,但我不断收到错误消息,说这是被禁止的。我能够在 Windows 上注册,但由于某种原因,它在我的 Mac 上不起作用。这些是我采取的步骤:

gitlab-runner register \
>   --non-interactive \
>   --url "https://gitlab.com/" \
>   --registration-token "token" \
>   --description "MyApp runner with shell" \
>   --tag-list ios \
>   --executor "shell"
Runtime platform                                    arch=amd64 os=darwin pid=3868    revision=98daeee0 version=14.7.0
WARNING: Running in user-mode.                     
WARNING: Use sudo for system-mode:                 
WARNING: $ sudo gitlab-runner...                   
                                               
ERROR: Registering runner... forbidden (check registration token)  runner=WswE4
PANIC: Failed to register the runner. You may be having network problems.

我正在使用正确的令牌。我尝试在 docker 中注册并在 Mac 中手动注册,但都失败了。有什么帮助吗?

4

1 回答 1

0

除非您将 GitLab 运行器注册到辅助节点(问题 350755)或重置令牌有问题(问题 351114),否则这似乎是一个应该报告的错误。

问题搜索没有显示“注册跑步者......禁止”的许多其他情况。

如果有任何记录的错误消息与您的命令相关联,请检查日志。

于 2022-02-10T07:46:02.833 回答