`Service Unavailabe`Error when creating Merge Request from Dashboard in 7.2.0
Created by: demisx
We started receiving this error lately when trying to create a new MR from a project Activity Dashboard by clicking on the Create New Merge Request
green button next to the last commit. Clicking on this button, send GitLab to a spin, maxes out the memory and then it times out with "Service Unavailable" error after about 30 seconds. Please note, that this issue doesn't happen if we create an MR by taking the Merge -> New Merge Request
route. It only happens when starting from the dashboard and happens regardless of how many files are associated with the MR (happens even with just one file changed).
# log/production.log:
W, [2014-09-22T12:48:09.719353 #25009] WARN -- : #<Unicorn::HttpServer:0x00000002d96690>: worker (pid: 25009) exceeds memory limit (499048448 bytes > 245050885 bytes)
W, [2014-09-22T12:48:09.719602 #25009] WARN -- : Unicorn::WorkerKiller send SIGQUIT (pid: 25009) alive: 234 sec (trial 1)
I, [2014-09-22T12:48:10.318975 #26584] INFO -- : reaped #<Process::Status: pid 25009 exit 0> worker=1
I, [2014-09-22T12:48:10.370523 #25084] INFO -- : worker=1 ready
W, [2014-09-22T12:51:24.728182 #24627] WARN -- : #<Unicorn::HttpServer:0x00000002d96690>: worker (pid: 24627) exceeds memory limit (421036032 bytes > 236127525 bytes)
W, [2014-09-22T12:51:24.728361 #24627] WARN -- : Unicorn::WorkerKiller send SIGQUIT (pid: 24627) alive: 459 sec (trial 1)
I, [2014-09-22T12:51:25.161865 #26584] INFO -- : reaped #<Process::Status: pid 24627 exit 0> worker=0
I, [2014-09-22T12:51:25.213598 #25096] INFO -- : worker=0 ready
# log/unicorn.stderr.log
Started GET "/amgen-sites/aranesp-com-desktop/notes?target_id=222&target_type=merge_request&last_fetched_at=1411415169" for 172.250.66.57 at 2014-09-22 12:46:24 -0700
Processing by Projects::NotesController#index as JSON
Parameters: {"target_id"=>"222", "target_type"=>"merge_request", "last_fetched_at"=>"1411415169", "project_id"=>"amgen-sites/aranesp-com-desktop"}
Completed 200 OK in 41ms (Views: 0.4ms | ActiveRecord: 4.1ms)
Started GET "/amgen-sites/epogen-com-desktop/merge_requests/new?merge_request%5Bsource_branch%5D=bug-2-styles-ie9-not-working&merge_request%5Bsource_project_id%5D=68&merge_request%5Btarget_branch%5D=master&merge_request%5Btarget_project_id%5D=68&merge_request%5Btitle%5D=Bug+2+styles+ie9+not+working" for 172.250.66.57 at 2014-09-22 12:46:35 -0700
Processing by Projects::MergeRequestsController#new as HTML
Parameters: {"merge_request"=>{"source_branch"=>"bug-2-styles-ie9-not-working", "source_project_id"=>"68", "target_branch"=>"master", "target_project_id"=>"68", "title"=>"Bug 2 styles ie9 not working"}, "project_id"=>"amgen-sites/epogen-com-desktop"}
Completed 200 OK in 58415ms (Views: 57519.8ms | ActiveRecord: 7.8ms)
Started GET "/amgen-sites/aranesp-com-desktop/notes?target_id=222&target_type=merge_request&last_fetched_at=1411415184" for 172.250.66.57 at 2014-09-22 12:47:01 -0700
Processing by Projects::NotesController#index as JSON
Parameters: {"target_id"=>"222", "target_type"=>"merge_request", "last_fetched_at"=>"1411415184", "project_id"=>"amgen-sites/aranesp-com-desktop"}
Completed 200 OK in 31ms (Views: 0.4ms | ActiveRecord: 3.6ms)
Started GET "/amgen-sites/aranesp-com-desktop/notes?target_id=222&target_type=merge_request&last_fetched_at=1411415184" for 172.250.66.57 at 2014-09-22 12:47:02 -0700
Processing by Projects::NotesController#index as JSON
Parameters: {"target_id"=>"222", "target_type"=>"merge_request", "last_fetched_at"=>"1411415184", "project_id"=>"amgen-sites/aranesp-com-desktop"}
Completed 200 OK in 29ms (Views: 0.4ms | ActiveRecord: 2.8ms)
Started GET "/amgen-sites/epogen-com-desktop/merge_requests/new?merge_request%5Bsource_branch%5D=bug-2-styles-ie9-not-working&merge_request%5Bsource_project_id%5D=68&merge_request%5Btarget_branch%5D=master&merge_request%5Btarget_project_id%5D=68&merge_request%5Btitle%5D=Bug+2+styles+ie9+not+working" for 172.250.66.57 at 2014-09-22 12:47:09 -0700
Processing by Projects::MergeRequestsController#new as HTML
Parameters: {"merge_request"=>{"source_branch"=>"bug-2-styles-ie9-not-working", "source_project_id"=>"68", "target_branch"=>"master", "target_project_id"=>"68", "title"=>"Bug 2 styles ie9 not working"}, "project_id"=>"amgen-sites/epogen-com-desktop"}
# bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 12.04
Current User: git
Using RVM: yes
RVM Version: 1.25.28
Ruby Version: 2.1.2p95
Gem Version: 2.2.2
Bundler Version:1.6.2
Rake Version: 10.3.2
Sidekiq Version:2.17.0
GitLab information
Version: 7.2.0
Revision: 935ed64
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: https://git.colddata.com
HTTP Clone URL: https://git.colddata.com/some-project.git
SSH Clone URL: ssh://[email protected]:63158/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.9.7
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
Please let me know if you need additional info.