时间:2021-07-01 10:21:17 帮助过:44人阅读
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
检查提示Check GitLab API access: FAILED: Failed to connect to internal API
查看gitlab/config/unicorn.rb
listen "127.0.0.1:9000", :tcp_nopush => true
netstat -nltp 查看127.0.0.1:9000gitlab/config/gitlab.yml中填写的公网ip
telnet 127.0.0.1 9000是OK,而telnet 公网ip 9000提示拒绝
git clone时也提示拒绝
将gitlab/config/unicorn.rb修改为
listen "0.0.0.0:9000", :tcp_nopush => true
telnet 公网ip 9000 OK
git clone时也ok
版权声明:本文为博主原创文章,未经博主允许不得转载。
Check GitLab API access: FAILED: Failed to connect to internal API
标签:gitlab