從一臺gitlab服務器(A)向另外一個gitlab服務器(B)導入項目遇到錯誤,報錯以下git
出現以上問題的緣由是: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端口,而後從新讀取配置文件,重啓gitgitlab
In order for this change to take affect, I used the following commands:this
gitlab-ctl reconfigure gitlab-ctl restart gitlab-ctl reconfigure
參考連接:https://gitlab.com/gitlab-org/gitlab-ce/issues/32581url