A gitlab 502 issue
A gitlab 502 issue
Gitlab restarts, the page reports error 502, check the log
[[gitlab](/search?q=gitlab)](/search?q=gitlab)-ctl tail
ArgumentError: Already running on PID:456 (or pid=/opt/gitlab/var/unicorn/unicorn.pid is stale)
/opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:205:in `pid='
/opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:137:in `start'
/opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn:126:in `<top (required)>'
/opt/gitlab/embedded/bin/unicorn:23:in `load'
/opt/gitlab/embedded/bin/unicorn:23:in `<top (required)>'
It seems that there is a unicorn thread conflict. Check gitlab running status
gitlab-ctl status
run: alertmanager: (pid 356) 47500s; run: log: (pid 355) 47500s
run: gitaly: (pid 323) 47500s; run: log: (pid 322) 47500s
run: gitlab-exporter: (pid 327) 47500s; run: log: (pid 326) 47500s
run: gitlab-workhorse: (pid 329) 47500s; run: log: (pid 328) 47500s
run: grafana: (pid 309) 47500s; run: log: (pid 306) 47500s
run: logrotate: (pid 32069) 700s; run: log: (pid 324) 47500s
run: nginx: (pid 318) 47500s; run: log: (pid 317) 47500s
run: postgres-exporter: (pid 321) 47500s; run: log: (pid 320) 47500s
run: postgresql: (pid 308) 47500s; run: log: (pid 305) 47500s
run: redis: (pid 341) 47500s; run: log: (pid 340) 47500s
run: redis-exporter: (pid 361) 47500s; run: log: (pid 360) 47500s
run: sidekiq: (pid 312) 47500s; run: log: (pid 311) 47500s
run: sshd: (pid 24) 47515s; run: log: (pid 23) 47515s
run: unicorn: (pid 3439) 0s; run: log: (pid 303) 47500s

It can be found that the unicore running time is 0s
Delete the unicore thread
rm -rf /opt/gitlab/var/unicorn/unicorn.pid
Overload
gitlab-ctl reconfigure
Started successfully