GitLab 502 Bad Gateway Error:
I followed the Omnibus installation for CentOS7: https://about.gitlab.com/downloads/
After everything was configured I went to my home page and got this error:
502
GitLab is not responding.
Please contact your GitLab administrator if this problem persists.
I checked my error log from
==> /var/log/gitlab/nginx/gitlab_error.log <==
2014/12/28 17:28:58 [error] 29436#0: *36 connect() to unix:/var/opt/gitlab/gitlab->rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, >client: 127.0.0.1, server: csclub1.cs.mun.ca, request: "GET / HTTP/1.0", upstream: >"http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/", host: "csclub1.cs.mun.ca" 2014/12/28 18:22:33 [error] 5895#0: *1 connect() to unix:/var/opt/gitlab/gitlab->rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, >client: 127.0.0.1, server: csclub1.cs.mun.ca, request: "GET / HTTP/1.0", upstream: >"http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/", host: "csclub1.cs.mun.ca" 2014/12/28 18:22:35 [error] 5895#0: *4 connect() to unix:/var/opt/gitlab/gitlab->rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, >client: 127.0.0.1, server: csclub1.cs.mun.ca, request: "GET / HTTP/1.0", upstream: >"http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/", host: "csclub1.cs.mun.ca"
Using gitlab-ctl restart:
ok: run: logrotate: (pid 14324) 0s ok: run: nginx: (pid 14327) 1s ok: run: postgresql: (pid 14335) 0s ok: run: redis: (pid 14338) 0s timeout: run: sidekiq: (pid 14029) 142s, got TERM timeout: run: unicorn: (pid 13990) 155s, got TERM
Using gitlab-ctl status:
run: logrotate: (pid 15452) 233s; run: log: (pid 23775) 175511s run: nginx: (pid 16365) 1s; run: log: (pid 23778) 175511s run: postgresql: (pid 15463) 233s; run: log: (pid 23799) 175509s run: redis: (pid 15473) 232s; run: log: (pid 23788) 175510s run: sidekiq: (pid 15605) 195s; run: log: (pid 23765) 175512s run: unicorn: (pid 15426) 236s, got TERM; run: log: (pid 23786) 175510s
So I can see that sidekiq and unicorn are not working. I checked their log files
Unicorn
unicorn_stderr.log was empty
less /var/log/gitlab/unicorn/unicorn_stderr.log
unicorn_stdout.log was empty
less /var/log/gitlab/unicorn/unicorn_stdout.log
current has the termination info, but not very useful
less /var/log/gitlab/unicorn/current 2014-12-30_19:45:48.18256 forwarding TERM to unicorn master 13952 2014-12-30_19:45:48.18345 forwarding CONT to unicorn master 13952 2014-12-30_19:45:57.73227 adopted existing unicorn master 13952
Sidekiq
Dumped out a crash log, including memory mapping
The server has 1.6 Gb of RAM and 4 Gb of Swap Space.
Any ideas.