Transfer project fails to transfer

Summary

When you try to transfer project between two groups, it fails with 500.

Steps to reproduce

  1. Go to project Edit
  2. Select group you'd like to transfer
  3. Put requested name of project

You'll see error: https://www.dropbox.com/s/p9ugh52x14ykj1f/Screenshot%202017-01-11%2017.54.29.png?dl=0

Expected behavior

Properly transfer project between groups

Actual behavior

500 error information

Relevant logs and/or screenshots

https://www.dropbox.com/s/p9ugh52x14ykj1f/Screenshot%202017-01-11%2017.54.29.png?dl=0 Information from logs

Completed 500 Internal Server Error in 29ms (ActiveRecord: 2.2ms)

TypeError (no implicit conversion of nil into String):
  lib/json_web_token/rsa_token.rb:20:in `read'
  lib/json_web_token/rsa_token.rb:20:in `key_data'
  lib/json_web_token/rsa_token.rb:24:in `key'
  lib/json_web_token/rsa_token.rb:28:in `public_key'
  lib/json_web_token/rsa_token.rb:33:in `kid'
  lib/json_web_token/rsa_token.rb:12:in `encoded'
  app/services/auth/container_registry_authentication_service.rb:30:in `full_access_token'
  app/models/project.rb:397:in `container_registry_repository'
  app/models/project.rb:412:in `has_container_registry_tags?'
  app/services/projects/transfer_service.rb:38:in `block in transfer'
  app/services/projects/transfer_service.rb:28:in `transfer'
  app/services/projects/transfer_service.rb:16:in `execute'
  app/controllers/projects_controller.rb:71:in `transfer'
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Output of checks

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

Results of GitLab application Check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

Checking GitLab Shell ...

GitLab Shell version >= 4.1.1 ? ... OK (4.1.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... no
  Try fixing it:
  sudo chmod -R ug+rwX,o-rwx /home/git/repositories/
  sudo chmod -R ug-s /home/git/repositories/
  sudo find /home/git/repositories/ -type d -print0 | sudo xargs -0 chmod g+s
  For more information see:
  doc/install/installation.md in section "GitLab Shell"
  Please fix the error above and rerun the checks.
hooks directories in repos are links: ...
2/2 ... ok
4/3 ... ok
4/4 ... ok
4/5 ... ok
4/6 ... ok
6/7 ... ok
6/8 ... ok
2/10 ... ok
7/15 ... ok
16/18 ... ok
19/19 ... ok
19/20 ... repository is empty
12/21 ... ok
2/22 ... ok
2/24 ... repository is empty
34/25 ... ok
2/28 ... ok
8/30 ... ok
8/31 ... ok
46/35 ... ok
34/37 ... ok
34/38 ... ok
10/39 ... ok
34/40 ... ok
13/41 ... repository is empty
2/42 ... repository is empty
55/43 ... repository is empty
13/44 ... ok
13/45 ... ok
19/46 ... ok
10/47 ... ok
13/48 ... repository is empty
13/49 ... repository is empty
12/50 ... repository is empty
12/51 ... repository is empty
64/52 ... ok
13/53 ... ok
66/54 ... ok
13/55 ... ok
19/56 ... ok
67/57 ... ok
67/58 ... repository is empty
67/59 ... ok
61/60 ... ok
67/61 ... ok
2/62 ... ok
13/63 ... ok
13/64 ... ok
13/65 ... ok
13/66 ... ok
13/67 ... ok
73/68 ... ok
73/69 ... ok
74/71 ... ok
73/72 ... ok
73/74 ... ok
70/75 ... repository is empty
1/76 ... ok
83/77 ... ok
2/78 ... ok
74/79 ... ok
79/80 ... ok
67/85 ... ok
67/86 ... ok
83/87 ... ok
17/88 ... ok
2/89 ... ok
87/90 ... ok
67/91 ... ok
87/93 ... ok
1/94 ... ok
93/95 ... ok
2/96 ... ok
2/97 ... ok
2/98 ... repository is empty
87/99 ... ok
87/100 ... ok
21/101 ... repository is empty
1/102 ... ok
97/103 ... ok
97/104 ... ok
87/105 ... ok
2/106 ... repository is empty
67/108 ... ok
2/109 ... ok
64/110 ... ok
13/111 ... ok
97/113 ... ok
67/114 ... ok
2/116 ... ok
3/117 ... ok
87/118 ... ok
105/119 ... ok
107/120 ... ok
108/122 ... ok
70/123 ... ok
108/125 ... ok
108/126 ... ok
109/127 ... ok
87/128 ... ok
67/129 ... ok
2/130 ... ok
83/131 ... ok
70/132 ... ok
2/133 ... ok
116/134 ... ok
2/135 ... ok
17/136 ... ok
2/137 ... ok
119/140 ... ok
42/141 ... ok
116/145 ... ok
87/147 ... ok
2/149 ... ok
120/150 ... ok
87/151 ... ok
67/152 ... ok
67/153 ... ok
13/154 ... ok
67/155 ... ok
67/156 ... ok
116/159 ... ok
116/160 ... ok
116/161 ... ok
116/162 ... ok
67/163 ... ok
2/164 ... ok
67/165 ... ok
67/166 ... ok
67/167 ... ok
67/168 ... repository is empty
89/169 ... ok
67/170 ... ok
67/171 ... ok
67/173 ... ok
17/174 ... ok
13/176 ... repository is empty
67/177 ... ok
67/178 ... ok
13/179 ... ok
67/180 ... ok
67/183 ... ok
67/184 ... ok
67/185 ... ok
89/186 ... ok
116/187 ... ok
116/188 ... ok
116/189 ... ok
13/190 ... ok
133/191 ... ok
67/192 ... ok
2/193 ... ok
21/194 ... repository is empty
67/197 ... ok
67/198 ... ok
21/199 ... ok
70/200 ... ok
83/201 ... ok
79/202 ... ok
92/203 ... repository is empty
2/204 ... ok
67/205 ... ok
13/206 ... ok
67/207 ... ok
136/208 ... ok
136/209 ... ok
136/210 ... ok
67/211 ... ok
137/212 ... ok
13/214 ... ok
116/215 ... ok
136/216 ... ok
89/217 ... ok
116/219 ... ok
67/220 ... ok
67/221 ... ok
67/222 ... ok
140/223 ... ok
142/224 ... ok
142/225 ... ok
70/226 ... ok
71/227 ... ok
2/229 ... ok
2/230 ... ok
67/231 ... ok
61/232 ... ok
116/233 ... ok
116/234 ... ok
2/235 ... ok
2/236 ... ok
116/237 ... ok
67/241 ... ok
67/242 ... ok
146/244 ... repository is empty
146/245 ... repository is empty
13/246 ... ok
67/247 ... ok
67/248 ... ok
116/249 ... ok
67/250 ... repository is empty
130/251 ... ok
67/256 ... ok
37/258 ... ok
67/262 ... ok
116/263 ... repository is empty
67/264 ... ok
2/265 ... ok
67/266 ... ok
71/268 ... ok
2/269 ... ok
71/270 ... ok
116/271 ... ok
13/272 ... ok
67/273 ... ok
147/274 ... ok
147/275 ... ok
116/277 ... ok
116/278 ... ok
147/279 ... ok
79/280 ... ok
67/281 ... wrong or missing hooks
  Try fixing it:
  sudo -u git -H /home/git/gitlab-shell/bin/create-hooks /home/git/repositories/
  Check the hooks_path in config/gitlab.yml
  Check your gitlab-shell installation
  For more information see:
  doc/install/installation.md in section "GitLab Shell"
  Please fix the error above and rerun the checks.
116/285 ... ok
146/286 ... ok
67/287 ... wrong or missing hooks
  Try fixing it:
  sudo -u git -H /home/git/gitlab-shell/bin/create-hooks /home/git/repositories/
  Check the hooks_path in config/gitlab.yml
  Check your gitlab-shell installation
  For more information see:
  doc/install/installation.md in section "GitLab Shell"
  Please fix the error above and rerun the checks.
67/288 ... wrong or missing hooks
  Try fixing it:
  sudo -u git -H /home/git/gitlab-shell/bin/create-hooks /home/git/repositories/
  Check the hooks_path in config/gitlab.yml
  Check your gitlab-shell installation
  For more information see:
  doc/install/installation.md in section "GitLab Shell"
  Please fix the error above and rerun the checks.
67/289 ... ok
1/290 ... repository is empty
146/291 ... ok
146/292 ... ok
67/293 ... ok
116/294 ... ok
146/295 ... ok
146/296 ... repository is empty
146/297 ... ok
146/298 ... ok
116/299 ... ok
67/301 ... ok
147/302 ... repository is empty
67/303 ... ok
101/304 ... ok
151/305 ... ok
146/306 ... ok
153/307 ... ok
146/308 ... ok
154/309 ... ok
153/310 ... ok
2/312 ... ok
67/313 ... ok
154/314 ... ok
116/315 ... ok
116/316 ... ok
79/317 ... repository is empty
116/318 ... ok
116/319 ... ok
67/320 ... ok
116/321 ... ok
2/322 ... ok
67/323 ... ok
67/324 ... ok
67/325 ... ok
147/326 ... ok
147/327 ... ok
147/328 ... ok
2/329 ... ok
67/330 ... ok
162/331 ... ok
162/332 ... ok
67/333 ... ok
173/334 ... ok
104/335 ... ok
173/336 ... ok
173/337 ... ok
116/338 ... ok
116/339 ... ok
116/340 ... ok
173/341 ... ok
173/342 ... ok
116/343 ... ok
67/344 ... ok
67/345 ... ok
173/346 ... ok
168/347 ... ok
67/348 ... ok
67/349 ... ok
162/350 ... ok
116/351 ... ok
169/352 ... ok
169/353 ... ok
70/354 ... ok
2/355 ... ok
116/356 ... ok
116/358 ... ok
170/359 ... ok
171/360 ... ok
116/361 ... ok
67/362 ... ok
116/363 ... ok
67/364 ... ok
67/365 ... ok
67/366 ... ok
67/367 ... ok
175/368 ... ok
116/369 ... ok
2/370 ... ok
116/371 ... ok
168/372 ... ok
116/373 ... ok
175/374 ... ok
116/376 ... ok
2/377 ... ok
67/378 ... ok
67/379 ... ok
67/380 ... ok
2/383 ... ok
116/384 ... ok
168/385 ... ok
67/386 ... ok
143/387 ... ok
173/388 ... ok
67/389 ... ok
67/390 ... ok
67/391 ... ok
67/392 ... ok
177/393 ... ok
67/394 ... ok
67/395 ... ok
67/397 ... ok
67/398 ... ok
67/399 ... repository is empty
67/400 ... ok
67/401 ... ok
67/402 ... ok
178/403 ... ok
178/404 ... ok
67/405 ... ok
67/406 ... ok
67/407 ... ok
67/408 ... ok
67/409 ... ok
116/410 ... ok
180/411 ... ok
81/412 ... ok
181/413 ... repository is empty
67/414 ... ok
177/415 ... ok
34/416 ... ok
2/417 ... ok
116/418 ... repository is empty
67/419 ... ok
2/420 ... ok
177/421 ... ok
2/423 ... ok
67/424 ... ok
183/425 ... ok
183/426 ... ok
13/427 ... ok
184/428 ... ok
184/429 ... ok
185/430 ... ok
185/431 ... ok
101/432 ... ok
3/436 ... ok
180/437 ... ok
180/438 ... repository is empty
13/439 ... ok
67/440 ... ok
177/441 ... ok
185/442 ... ok
185/443 ... ok
67/444 ... ok
71/445 ... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /home/git/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

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

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... no
  Try fixing it:
  sudo chmod 700 /home/git/gitlab/public/uploads
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.
Init script exists? ... yes
Init script up-to-date? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
projects have namespace: ...
2/2 ... yes
4/3 ... yes
4/4 ... yes
4/5 ... yes
4/6 ... yes
6/7 ... yes
6/8 ... yes
2/10 ... yes
7/15 ... yes
16/18 ... yes
19/19 ... yes
19/20 ... yes
12/21 ... yes
2/22 ... yes
2/24 ... yes
34/25 ... yes
2/28 ... yes
8/30 ... yes
8/31 ... yes
46/35 ... yes
34/37 ... yes
34/38 ... yes
10/39 ... yes
34/40 ... yes
13/41 ... yes
2/42 ... yes
55/43 ... yes
13/44 ... yes
13/45 ... yes
19/46 ... yes
10/47 ... yes
13/48 ... yes
13/49 ... yes
12/50 ... yes
12/51 ... yes
64/52 ... yes
13/53 ... yes
66/54 ... yes
13/55 ... yes
19/56 ... yes
67/57 ... yes
67/58 ... yes
67/59 ... yes
61/60 ... yes
67/61 ... yes
2/62 ... yes
13/63 ... yes
13/64 ... yes
13/65 ... yes
13/66 ... yes
13/67 ... yes
73/68 ... yes
73/69 ... yes
74/71 ... yes
73/72 ... yes
73/74 ... yes
70/75 ... yes
1/76 ... yes
83/77 ... yes
2/78 ... yes
74/79 ... yes
79/80 ... yes
67/85 ... yes
67/86 ... yes
83/87 ... yes
17/88 ... yes
2/89 ... yes
87/90 ... yes
67/91 ... yes
87/93 ... yes
1/94 ... yes
93/95 ... yes
2/96 ... yes
2/97 ... yes
2/98 ... yes
87/99 ... yes
87/100 ... yes
21/101 ... yes
1/102 ... yes
97/103 ... yes
97/104 ... yes
87/105 ... yes
2/106 ... yes
67/108 ... yes
2/109 ... yes
64/110 ... yes
13/111 ... yes
97/113 ... yes
67/114 ... yes
2/116 ... yes
3/117 ... yes
87/118 ... yes
105/119 ... yes
107/120 ... yes
108/122 ... yes
70/123 ... yes
108/125 ... yes
108/126 ... yes
109/127 ... yes
87/128 ... yes
67/129 ... yes
2/130 ... yes
83/131 ... yes
70/132 ... yes
2/133 ... yes
116/134 ... yes
2/135 ... yes
17/136 ... yes
2/137 ... yes
119/140 ... yes
42/141 ... yes
116/145 ... yes
87/147 ... yes
2/149 ... yes
120/150 ... yes
87/151 ... yes
67/152 ... yes
67/153 ... yes
13/154 ... yes
67/155 ... yes
67/156 ... yes
116/159 ... yes
116/160 ... yes
116/161 ... yes
116/162 ... yes
67/163 ... yes
2/164 ... yes
67/165 ... yes
67/166 ... yes
67/167 ... yes
67/168 ... yes
89/169 ... yes
67/170 ... yes
67/171 ... yes
67/173 ... yes
17/174 ... yes
13/176 ... yes
67/177 ... yes
67/178 ... yes
13/179 ... yes
67/180 ... yes
67/183 ... yes
67/184 ... yes
67/185 ... yes
89/186 ... yes
116/187 ... yes
116/188 ... yes
116/189 ... yes
13/190 ... yes
133/191 ... yes
67/192 ... yes
2/193 ... yes
21/194 ... yes
67/197 ... yes
67/198 ... yes
21/199 ... yes
70/200 ... yes
83/201 ... yes
79/202 ... yes
92/203 ... yes
2/204 ... yes
67/205 ... yes
13/206 ... yes
67/207 ... yes
136/208 ... yes
136/209 ... yes
136/210 ... yes
67/211 ... yes
137/212 ... yes
13/214 ... yes
116/215 ... yes
136/216 ... yes
89/217 ... yes
116/219 ... yes
67/220 ... yes
67/221 ... yes
67/222 ... yes
140/223 ... yes
142/224 ... yes
142/225 ... yes
70/226 ... yes
71/227 ... yes
2/229 ... yes
2/230 ... yes
67/231 ... yes
61/232 ... yes
116/233 ... yes
116/234 ... yes
2/235 ... yes
2/236 ... yes
116/237 ... yes
67/241 ... yes
67/242 ... yes
146/244 ... yes
146/245 ... yes
13/246 ... yes
67/247 ... yes
67/248 ... yes
116/249 ... yes
67/250 ... yes
130/251 ... yes
67/256 ... yes
37/258 ... yes
67/262 ... yes
116/263 ... yes
67/264 ... yes
2/265 ... yes
67/266 ... yes
71/268 ... yes
2/269 ... yes
71/270 ... yes
116/271 ... yes
13/272 ... yes
67/273 ... yes
147/274 ... yes
147/275 ... yes
116/277 ... yes
116/278 ... yes
147/279 ... yes
79/280 ... yes
67/281 ... yes
116/285 ... yes
146/286 ... yes
67/287 ... yes
67/288 ... yes
67/289 ... yes
1/290 ... yes
146/291 ... yes
146/292 ... yes
67/293 ... yes
116/294 ... yes
146/295 ... yes
146/296 ... yes
146/297 ... yes
146/298 ... yes
116/299 ... yes
67/301 ... yes
147/302 ... yes
67/303 ... yes
101/304 ... yes
151/305 ... yes
146/306 ... yes
153/307 ... yes
146/308 ... yes
154/309 ... yes
153/310 ... yes
2/312 ... yes
67/313 ... yes
154/314 ... yes
116/315 ... yes
116/316 ... yes
79/317 ... yes
116/318 ... yes
116/319 ... yes
67/320 ... yes
116/321 ... yes
2/322 ... yes
67/323 ... yes
67/324 ... yes
67/325 ... yes
147/326 ... yes
147/327 ... yes
147/328 ... yes
2/329 ... yes
67/330 ... yes
162/331 ... yes
162/332 ... yes
67/333 ... yes
173/334 ... yes
104/335 ... yes
173/336 ... yes
173/337 ... yes
116/338 ... yes
116/339 ... yes
116/340 ... yes
173/341 ... yes
173/342 ... yes
116/343 ... yes
67/344 ... yes
67/345 ... yes
173/346 ... yes
168/347 ... yes
67/348 ... yes
67/349 ... yes
162/350 ... yes
116/351 ... yes
169/352 ... yes
169/353 ... yes
70/354 ... yes
2/355 ... yes
116/356 ... yes
116/358 ... yes
170/359 ... yes
171/360 ... yes
116/361 ... yes
67/362 ... yes
116/363 ... yes
67/364 ... yes
67/365 ... yes
67/366 ... yes
67/367 ... yes
175/368 ... yes
116/369 ... yes
2/370 ... yes
116/371 ... yes
168/372 ... yes
116/373 ... yes
175/374 ... yes
116/376 ... yes
2/377 ... yes
67/378 ... yes
67/379 ... yes
67/380 ... yes
2/383 ... yes
116/384 ... yes
168/385 ... yes
67/386 ... yes
143/387 ... yes
173/388 ... yes
67/389 ... yes
67/390 ... yes
67/391 ... yes
67/392 ... yes
177/393 ... yes
67/394 ... yes
67/395 ... yes
67/397 ... yes
67/398 ... yes
67/399 ... yes
67/400 ... yes
67/401 ... yes
67/402 ... yes
178/403 ... yes
178/404 ... yes
67/405 ... yes
67/406 ... yes
67/407 ... yes
67/408 ... yes
67/409 ... yes
116/410 ... yes
180/411 ... yes
81/412 ... yes
181/413 ... yes
67/414 ... yes
177/415 ... yes
34/416 ... yes
2/417 ... yes
116/418 ... yes
67/419 ... yes
2/420 ... yes
177/421 ... yes
2/423 ... yes
67/424 ... yes
183/425 ... yes
183/426 ... yes
13/427 ... yes
184/428 ... yes
184/429 ... yes
185/430 ... yes
185/431 ... yes
101/432 ... yes
3/436 ... yes
180/437 ... yes
180/438 ... yes
13/439 ... yes
67/440 ... yes
177/441 ... yes
185/442 ... yes
185/443 ... yes
67/444 ... yes
71/445 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/usr/bin/git"
Git version >= 2.7.3 ? ... no
  Try fixing it:
  Update your git to a version >= 2.7.3 from 2.1.4
  Please fix the error above and rerun the checks.
Active users: 67

Checking GitLab ... Finished

(we will only investigate if the tests are passing)

Results of GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)


System information
System:
Current User:	git
Using RVM:	no
Ruby Version:	2.3.1p112
Gem Version:	2.5.1
Bundler Version:1.13.7
Rake Version:	10.5.0
Sidekiq Version:4.2.7

GitLab information
Version:	8.15.4
Revision:	13ce51e
Directory:	/home/git/gitlab
DB Adapter:	mysql2
URL:		https://git.appunite.com
HTTP Clone URL:	https://git.appunite.com/some-group/some-project.git
SSH Clone URL:	git@git.appunite.com:some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: github, google_oauth2

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

Possible fixes

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

Assignee Loading
Time tracking Loading