gitlab导入项目报错信息处理()

从一台gitlab服务器(A)向另一个gitlab服务器(B)导入项目遇到错误,报错如下

出现以上问题的原因是:A-gitlab服务器使用的端口为81端口(非默认端口),所以需要修改/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/url_blocker.rb

Old code: VALID_PORTS = [22, 80, 443].freeze
New code: VALID_PORTS = [22, 80, 81, 443].freeze

添加一个81端口,然后重新读取配置文件,重启git

In order for this change to take affect, I used the following commands:

gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl reconfigure

参考链接:https://gitlab.com/gitlab-org/gitlab-ce/issues/32581

猜你喜欢

转载自www.cnblogs.com/sailq21/p/9298256.html