Skip to end of metadata
Go to start of metadata

If you face 502 error from gitlab server, it means that server is busy for doing something in most of cases. It might be associated with server performance.


Option 1. Wait for 5 minutes if your server is just booted

There are some kind of initialization process in Gitlab, so it may takes 2-5 mins usually, so you don't need to think that server is crashed or something wrong.


OPTION 2. Adjust Unicorn timeout or the number of workers

You can use the following settings in /etc/gitlab/gitlab.rb. Run sudo gitlab-ctl reconfigure for the change to take effect.

unicorn['worker_processes'] = 3
unicorn['worker_timeout'] = 60