Skip to content

Can't create MR

Summary

Get 503 error when creating new MR (can access old ones fine)

Steps to reproduce

Create a new MR

Example Project

I'm using a source based install and just happens after updating to 11.2

What is the current bug behavior?

Get error 503 when creating a MR

What is the expected correct behavior?

Should be able to create a MR

Relevant logs and/or screenshots

Started GET "/srobinson/csp/merge_requests/new?merge_request%5Bsource_branch%5D=p2_push&merge_request%5Bsource_project_id%5D=28&merge_request%5Btarget_branch%5D=master&merge_request%5Bt\
arget_project_id%5D=1" for 5.71.96.17 at 2018-08-26 02:03:19 -0500
Processing by Projects::MergeRequests::CreationsController#new as HTML
  Parameters: {"merge_request"=>{"source_branch"=>"p2_push", "source_project_id"=>"28", "target_branch"=>"master", "target_project_id"=>"1"}, "namespace_id"=>"srobinson", "project_id"=>\
"csp"}

Gitlab::Git::CommandError (2:/gitaly-ssh upload-pack: /gitaly-ssh: No such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
):
  lib/gitlab/git/repository.rb:1017:in `rescue in wrapped_gitaly_errors'
  lib/gitlab/git/repository.rb:1010:in `wrapped_gitaly_errors'
  lib/gitlab/git/repository.rb:799:in `fetch_source_branch!'
  lib/gitlab/git/repository.rb:807:in `compare_source_branch'
  app/models/repository.rb:915:in `compare_source_branch'
  app/services/compare_service.rb:16:in `execute'
  app/services/merge_requests/build_service.rb:79:in `compare_branches'
  app/services/merge_requests/build_service.rb:21:in `execute'
  app/controllers/projects/merge_requests/creations_controller.rb:90:in `build_merge_request'
  lib/gitlab/i18n.rb:51:in `with_locale'
  lib/gitlab/i18n.rb:57:in `with_user_locale'
  app/controllers/application_controller.rb:401:in `set_locale'
  lib/gitlab/middleware/multipart.rb:97:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/read_only/controller.rb:38:in `call'
  lib/gitlab/middleware/read_only.rb:16:in `call'

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System:		CentOS 6.10
Current User:	git
Using RVM:	no
Ruby Version:	2.5.1p57
Gem Version:	2.7.6
Bundler Version:1.16.2
Rake Version:	12.3.1
Redis Version:	3.2.12
Git Version:	2.17.0
Sidekiq Version:5.1.3
Go Version:	go1.10.3 linux/amd64

GitLab information
Version:	11.2.1
Revision:	2d6c1c61191
Directory:	/mdx/home/git/gitlab
DB Adapter:	postgresql
URL:		https://gitlab.mdxperience.com
HTTP Clone URL:	https://gitlab.mdxperience.com/some-group/some-project.git
SSH Clone URL:	ssh://git@gitlab.mdxperience.com:9999/some-group/some-project.git
Using LDAP:	no
Using Omniauth:	no

GitLab Shell
Version:	8.1.1
Repository storage paths:
- default: 	/mdx/home/git/repositories
Hooks:		/mdx/home/git/gitlab-shell/hooks
Git:		/usr/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check
Checking GitLab Shell ...

GitLab Shell version >= 8.1.1 ? ... OK (8.1.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... 
1/1 ... ok
1/2 ... ok
2/3 ... ok
2/4 ... ok
3/5 ... ok
3/6 ... ok
4/7 ... ok
4/8 ... ok
5/9 ... ok
5/10 ... ok
9/11 ... ok
1/12 ... ok
4/13 ... ok
2/14 ... ok
2/15 ... repository is empty
1/16 ... ok
1/17 ... ok
3/18 ... ok
2/19 ... ok
5/20 ... ok
1/21 ... ok
1/24 ... repository is empty
1/25 ... ok
3/26 ... ok
5/27 ... ok
14/28 ... ok
14/29 ... ok
14/30 ... ok
1/31 ... ok
1/32 ... ok
2/33 ... ok
5/34 ... ok
2/35 ... ok
2/36 ... ok
14/37 ... ok
14/38 ... ok
2/39 ... ok
2/40 ... ok
1/43 ... ok
3/44 ... ok
1/45 ... ok
3/46 ... ok
3/50 ... ok
19/51 ... ok
19/52 ... ok
19/53 ... ok
1/54 ... ok
1/55 ... ok
17/56 ... ok
15/58 ... ok
14/59 ... ok
14/60 ... ok
1/61 ... ok
14/62 ... ok
22/63 ... ok
22/64 ... ok
1/71 ... ok
22/72 ... ok
22/76 ... ok
22/77 ... ok
1/78 ... ok
14/79 ... ok
17/80 ... ok
22/81 ... ok
22/82 ... ok
1/83 ... ok
1/84 ... ok
22/85 ... ok
1/86 ... ok
23/91 ... ok
23/92 ... ok
17/93 ... ok
23/94 ... ok
17/95 ... ok
1/96 ... ok
1/97 ... ok
14/98 ... ok
23/99 ... ok
1/100 ... ok
1/101 ... ok
14/102 ... ok
5/103 ... ok
1/104 ... ok
2/105 ... repository is empty
Running /mdx/home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK

Access to /mdx/home/git/.ssh/authorized_keys: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml
Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have namespace: ... 
1/1 ... yes
1/2 ... yes
2/3 ... yes
2/4 ... yes
3/5 ... yes
3/6 ... yes
4/7 ... yes
4/8 ... yes
5/9 ... yes
5/10 ... yes
9/11 ... yes
1/12 ... yes
4/13 ... yes
2/14 ... yes
2/15 ... yes
1/16 ... yes
1/17 ... yes
3/18 ... yes
2/19 ... yes
5/20 ... yes
1/21 ... yes
1/24 ... yes
1/25 ... yes
3/26 ... yes
5/27 ... yes
14/28 ... yes
14/29 ... yes
14/30 ... yes
1/31 ... yes
1/32 ... yes
2/33 ... yes
5/34 ... yes
2/35 ... yes
2/36 ... yes
14/37 ... yes
14/38 ... yes
2/39 ... yes
2/40 ... yes
1/43 ... yes
3/44 ... yes
1/45 ... yes
3/46 ... yes
3/50 ... yes
19/51 ... yes
19/52 ... yes
19/53 ... yes
1/54 ... yes
1/55 ... yes
17/56 ... yes
15/58 ... yes
14/59 ... yes
14/60 ... yes
1/61 ... yes
14/62 ... yes
22/63 ... yes
22/64 ... yes
1/71 ... yes
22/72 ... yes
22/76 ... yes
22/77 ... yes
1/78 ... yes
14/79 ... yes
17/80 ... yes
22/81 ... yes
22/82 ... yes
1/83 ... yes
1/84 ... yes
22/85 ... yes
1/86 ... yes
23/91 ... yes
23/92 ... yes
17/93 ... yes
23/94 ... yes
17/95 ... yes
1/96 ... yes
1/97 ... yes
14/98 ... yes
23/99 ... yes
1/100 ... yes
1/101 ... yes
14/102 ... yes
5/103 ... yes
1/104 ... yes
2/105 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.1)
Git version >= 2.9.5 ? ... yes (2.17.0)
Git user has default SSH configuration? ... yes
Active users: ... 11

Checking GitLab ... Finished

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)