GitLab을 설치 후, 브라우저에 접속하면 GitLab 설치 후 502 GitLab is taking too much time to respond 에러가 발생하며 접속이 안되는 경우가 있습니다.
이 경우 /etc/gitlab/gitlab.rb 파일에서 8080을 찾아서 전부 변경하면 됩니다.
단계는 다음과 같습니다.
- gitlab-ctl stop
- vi /etc/gitlab/gitlab.rb
- 다음 port를 안쓰는 port로 변경
- unicorn['port]=port
- external_url 'http://서버주소:port'
- puma['port'] = port 변경 후 주석해제
- gitlab-ctl reconfigure
- gitlab-ctl start
[참고]
- puma의 port가 이미 사용중이라 502오류가 발생하는 경우에는 gitlab-ctl tail puma 명령어를 사용하면 Errno::EADDRINUSE: Address already in use - bind(2) for "127.0.0.1" port 8080 오류가 발생하는 것을 볼 수 있습니다.
- gitlab.rb 파일을 변경 후 restart를 하면 안되고, 반드시 gitlab-ctl reconfigure 명령어 사용 후 재시작 해야 합니다.
[참고사이트]
https://forum.gitlab.com/t/502-whoops-gitlab-is-taking-too-much-time-to-respond/52522
https://stackoverflow.com/questions/33254100/502-whoops-gitlab-is-taking-too-much-time-to-respond
728x90