I installed Gitlab on Raspberry Pi2, and it had worked well for a couple of months. But since shutting down the power of RPi, it doesn't work anymore. The webpage returns 502 error.
502 Whoops, GitLab is taking too much time to respond.
So I tried reconfigure (sudo gitlab-ctl reconfigure
) but, it failed with the error message:
FATAL: Errono::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
I don't know how to resolve this problem.
gitlab-ctl tail
shows ? That should definitely give you a hint about the issue.unicorn_stderr.log
file. The error message isFATAL -- : error adding listener addr=127.0.0.1:8080 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in 'initialize': Cannot assign requested address - bind(2) for "127.0.0.1" port 8080 (Errno::EADDRNOTAVAIL)
How to fix it?