Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #694

Closed
Open
Created Apr 19, 2012 by Administrator@rootOwner

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:

Assignee
Assign to
Time tracking