如图所示,只是在root用户下设置允许连接,点击保存之后立刻抱500状态码,是在自己本机虚拟机里配置的
附带日志
[root@gitlab ~]# gitlab-ctl tail |grep "http://192.168.43.215:82/admin/application_settings/network"
{"correlation_id":"uAJNpRpd3Z1","duration_ms":1093,"host":"192.168.43.215:82","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://192.168.43.215:82/admin/application_settings/network","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":500,"system":"http","time":"2021-05-14T14:35:18+08:00","uri":"/admin/application_settings/network","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36","written_bytes":2926}
{"correlation_id":"n9ASr0vujp7","duration_ms":475,"host":"192.168.43.215:82","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://192.168.43.215:82/admin/application_settings/network","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":500,"system":"http","time":"2021-05-14T14:36:26+08:00","uri":"/admin/application_settings/network","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36","written_bytes":2926}
{"correlation_id":"kZLpQNYCP13","duration_ms":735,"host":"192.168.43.215:82","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://192.168.43.215:82/admin/application_settings/network","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":500,"system":"http","time":"2021-05-14T14:38:23+08:00","uri":"/admin/application_settings/network","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36","written_bytes":2926}
192.168.43.212 - - [14/May/2021:14:35:18 +0800] "POST /admin/application_settings/network HTTP/1.1" 500 2926 "http://192.168.43.215:82/admin/application_settings/network" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
192.168.43.212 - - [14/May/2021:14:36:26 +0800] "POST /admin/application_settings/network HTTP/1.1" 500 2926 "http://192.168.43.215:82/admin/application_settings/network" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
192.168.43.212 - - [14/May/2021:14:38:23 +0800] "POST /admin/application_settings/network HTTP/1.1" 500 2926 "http://192.168.43.215:82/admin/application_settings/network" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
{"correlation_id":"dvcqAJvIw3a","duration_ms":131,"host":"192.168.43.215:82","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://192.168.43.215:82/admin/application_settings/network","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":500,"system":"http","time":"2021-05-14T14:39:26+08:00","uri":"/admin/application_settings/network","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36","written_bytes":2926}
192.168.43.212 - - [14/May/2021:14:39:26 +0800] "POST /admin/application_settings/network HTTP/1.1" 500 2926 "http://192.168.43.215:82/admin/application_settings/network" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
^CTraceback (most recent call last):
5: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
4: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
3: from /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
2: from /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
1: from /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:584:in `tail'
/opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:584:in `system': Interrupt
之后的步骤还没有配置的