adding new user results "502 Bad Gateway nginx/1.1.17 error" (with solution inside)
Created by: cheerc
After I finished setting up the gitlab server, I found a problem when I was adding new user. The ngnix server showed "502 Bad Gateway nginx/1.1.17 error" after I clicked "Save" button. The reason is that the unicorn timeout was too short. I have solve this issue by myself and want to share with you guys.
Here is my solution:
Please edit gitlab/config/unicorn.rb and change the timeout to 300 (or enough timeout for adding user process) -- timeout 30 ++ timeout 300
And also, edit /etc/ngnix/ngnix.conf add 2 lines below to the "location @gitlab" section proxy_read_timeout 300; proxy_connect_timeout 300;
Hope that will solve your problem because mine is fixed On 4月18日, 下午5時38分, David [email protected] wrote: