在注册gitlab-runner的时候报错500

root@amd5900x-31-46:/etc/gitlab-runner# gitlab-runner register --name my-runner --url http://ext-gitlab.xxxxx.com/ --registration-token GR134894xxxx
Runtime platform arch=amd64 os=linux pid=7133 revision=66a81bdf version=15.4.2
Running in system-mode.

Enter the GitLab instance URL (for example, https://gitlab.com/):
[http://ext-gitlab.xxxxxx.com/]:
Enter the registration token:
[GR1348941X34Vokx_zxB3cYYzAKNt]:
Enter a description for the runner:
[my-runner]:
Enter tags for the runner (comma-separated):

Enter optional maintenance note for the runner:

ERROR: Registering runner… failed runner=GR1348941X34Vokx_ status=POST http://ext-gitlab.xxxxxx.com/api/v4/runners: 500 Internal Server Error
PANIC: Failed to register the runner.

我的gitlab是docker容器启动的,gitlab和gitlab-runner都是15.4.2版本

这种现象 大概率都是 由于自签证书引起的,您这边gitlab-runner能ping 通gitlab的external_url吗

感谢;修改了一下自签名,修复了这个问题