cannot import repository
Gitlab EE 11.2.3
While importing repo from any remote system such github , gitlab etc , the import fails , with error in logs:
/var/log/gitlab/sidekiq/current:2018-09-13_00:15:10.94685 2018-09-13T00:15:10.946Z 502 TID-oukmfgmdq WARN: {"context":"Job raised exception","job":{"class":"RepositoryImportWorker","args":[395],"retry":5,"queue":"repository_import","backtrace":5,"status_expiration":54000,"jid":"8ab25a71f73e00f4937c5e0c","created_at":1536797683.6001112,"enqueued_at":1536797710.9178107,"error_message":"Error importing repository https://github.com/iahmad-khan/pyway.git into iahmad/pyway - 13:CreateRepositoryFromURL: clone cmd wait: exit status 128","error_class":"RuntimeError","failed_at":1536797683.645254,"retry_count":0,"error_backtrace":["/opt/gitlab/embedded/service/gitlab-rails/app/workers/repository_import_worker.rb:27:in `perform'","/opt/gitlab/embedded/service/gitlab-rails/ee/app/workers/ee/repository_import_worker.rb:7:in `perform'","/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/processor.rb:187:in `execute_job'","/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/processor.rb:169:in `block (2 levels) in process'","/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'"]},"jobstr":"{\"class\":\"RepositoryImportWorker\",\"args\":[395],\"retry\":5,\"queue\":\"repository_import\",\"backtrace\":5,\"status_expiration\":54000,\"jid\":\"8ab25a71f73e00f4937c5e0c\",\"created_at\":1536797683.6001112,\"enqueued_at\":1536797710.9178107,\"error_message\":\"Error importing repository https://github.com/iahmad-khan/pyway.git into iahmad/pyway - 13:CreateRepositoryFromURL: clone cmd wait: exit status 128\",\"error_class\":\"RuntimeError\",\"failed_at\":1536797683.645254,\"retry_count\":0,\"error_backtrace\":[\"/opt/gitlab/embedded/service/gitlab-rails/app/workers/repository_import_worker.rb:27:in `perform'\",\"/opt/gitlab/embedded/service/gitlab-rails/ee/app/workers/ee/repository_import_worker.rb:7:in `perform'\",\"/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/processor.rb:187:in `execute_job'\",\"/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/processor.rb:169:in `block (2 levels) in process'\",\"/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/sidekiq-5.1.3/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'\"]}"}
/var/log/gitlab/sidekiq/current:2018-09-13_00:15:10.94694 2018-09-13T00:15:10.946Z 502 TID-oukmfgmdq WARN: RuntimeError: Error importing repository https://github.com/iahmad-khan/pyway.git into iahmad/pyway - 13:CreateRepositoryFromURL: clone cmd wait: exit status 128
While git clone works on the command line on the same machine, without any problem.
It was working before upgrading from gitlab-ee 11.1.x
checks:
gitlab-rake gitlab:env:info
System information
System:
Proxy: http_proxy: http://pg-wwwcache.mydoamin:3128
https_proxy: http://pg-wwwcache.mydoamin:3128
no_proxy: 10.3.10.177
Current User: git
Using RVM: no
Ruby Version: 2.4.4p296
Gem Version: 2.7.6
Bundler Version:1.16.2
Rake Version: 12.3.1
Redis Version: 3.2.11
Git Version: 2.18.0
Sidekiq Version:5.1.3
Go Version: unknown
GitLab information
Version: 11.2.3-ee
Revision: aadca99
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
DB Version: 9.6.8
URL: https://gitlabci.ebi.ac.uk
HTTP Clone URL: https://gitlabci.mydomain/some-group/some-project.git
SSH Clone URL: git@gitlabci.mydoamin:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers: github, gitlab, twitter, google_oauth2
GitLab Shell
Version: 8.1.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
root@gitlabci:/# gitlab-rake gitlab:check SANITIZE=true
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: ...
2/33 ... ok
35/36 ... ok
2/38 ... ok
3/39 ... ok
3/40 ... ok
3/41 ... ok
2/42 ... ok
2/45 ... ok
3/46 ... ok
3/47 ... ok
3/48 ... ok
3/49 ... ok
2/50 ... ok
2/51 ... ok
62/52 ... ok
13/60 ... ok
3/61 ... ok
17/65 ... ok
3/77 ... ok
3/78 ... ok
3/79 ... ok
3/81 ... ok
19/82 ... ok
3/83 ... ok
3/84 ... ok
3/85 ... ok
25/86 ... repository is empty
2/91 ... ok
26/94 ... ok
130/95 ... ok
18/96 ... ok
18/98 ... ok
37/103 ... ok
18/106 ... ok
39/107 ... repository is empty
3/108 ... ok
39/109 ... ok
45/111 ... ok
45/112 ... repository is empty
18/114 ... ok
20/115 ... repository is empty
28/117 ... ok
2/118 ... ok
2/119 ... ok
55/122 ... ok
113/124 ... ok
62/125 ... ok
56/147 ... ok
90/150 ... ok
88/166 ... ok
88/167 ... ok
88/168 ... ok
88/169 ... ok
88/170 ... ok
88/171 ... ok
88/172 ... ok
88/173 ... ok
88/174 ... ok
88/175 ... ok
88/176 ... ok
88/177 ... ok
88/178 ... ok
88/179 ... ok
88/180 ... ok
88/181 ... ok
88/182 ... ok
88/183 ... ok
88/184 ... ok
88/185 ... ok
88/186 ... ok
6/187 ... ok
90/188 ... ok
92/189 ... ok
90/191 ... ok
90/203 ... ok
6/204 ... ok
87/206 ... ok
3/235 ... ok
3/237 ... ok
3/243 ... ok
3/244 ... ok
3/246 ... ok
3/247 ... ok
106/251 ... ok
3/255 ... ok
115/258 ... ok
3/259 ... ok
25/260 ... ok
118/261 ... ok
126/264 ... ok
100/265 ... ok
89/266 ... ok
21/269 ... ok
23/270 ... ok
130/271 ... ok
23/273 ... ok
132/274 ... ok
130/275 ... ok
130/276 ... ok
130/279 ... ok
132/280 ... ok
84/281 ... repository is empty
130/282 ... ok
132/283 ... ok
130/284 ... ok
130/285 ... ok
100/286 ... ok
100/287 ... ok
100/289 ... ok
100/290 ... ok
132/291 ... ok
84/293 ... ok
3/300 ... ok
130/301 ... ok
113/303 ... ok
113/304 ... ok
41/309 ... ok
41/310 ... ok
2/311 ... ok
26/312 ... ok
35/314 ... ok
130/315 ... ok
130/316 ... ok
130/317 ... ok
100/318 ... ok
100/319 ... ok
100/320 ... ok
23/322 ... ok
100/323 ... ok
100/324 ... ok
100/325 ... ok
84/326 ... ok
56/328 ... ok
2/329 ... ok
2/330 ... ok
141/331 ... ok
142/332 ... ok
126/333 ... ok
16/334 ... ok
3/335 ... ok
100/336 ... ok
105/342 ... ok
132/344 ... ok
132/345 ... ok
3/346 ... ok
2/347 ... ok
142/348 ... ok
164/353 ... ok
164/355 ... ok
141/360 ... ok
164/362 ... ok
130/366 ... ok
142/367 ... ok
23/381 ... repository is empty
164/382 ... ok
100/383 ... repository is empty
3/395 ... repository is empty
3/396 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.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 ...
Server: ldapmain
LDAP authentication... Anonymous. No `bind_dn` or `password` configured
LDAP users with access to your GitLab server (only showing the first 100 results)
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? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
2/33 ... yes
35/36 ... yes
2/38 ... yes
3/39 ... yes
3/40 ... yes
3/41 ... yes
2/42 ... yes
2/45 ... yes
3/46 ... yes
3/47 ... yes
3/48 ... yes
3/49 ... yes
2/50 ... yes
2/51 ... yes
62/52 ... yes
13/60 ... yes
3/61 ... yes
17/65 ... yes
3/77 ... yes
3/78 ... yes
3/79 ... yes
3/81 ... yes
19/82 ... yes
3/83 ... yes
3/84 ... yes
3/85 ... yes
25/86 ... yes
2/91 ... yes
26/94 ... yes
130/95 ... yes
18/96 ... yes
18/98 ... yes
37/103 ... yes
18/106 ... yes
39/107 ... yes
3/108 ... yes
39/109 ... yes
45/111 ... yes
45/112 ... yes
18/114 ... yes
20/115 ... yes
28/117 ... yes
2/118 ... yes
2/119 ... yes
55/122 ... yes
113/124 ... yes
62/125 ... yes
56/147 ... yes
90/150 ... yes
88/166 ... yes
88/167 ... yes
88/168 ... yes
88/169 ... yes
88/170 ... yes
88/171 ... yes
88/172 ... yes
88/173 ... yes
88/174 ... yes
88/175 ... yes
88/176 ... yes
88/177 ... yes
88/178 ... yes
88/179 ... yes
88/180 ... yes
88/181 ... yes
88/182 ... yes
88/183 ... yes
88/184 ... yes
88/185 ... yes
88/186 ... yes
6/187 ... yes
90/188 ... yes
92/189 ... yes
90/191 ... yes
90/203 ... yes
6/204 ... yes
87/206 ... yes
3/235 ... yes
3/237 ... yes
3/243 ... yes
3/244 ... yes
3/246 ... yes
3/247 ... yes
106/251 ... yes
3/255 ... yes
115/258 ... yes
3/259 ... yes
25/260 ... yes
118/261 ... yes
126/264 ... yes
100/265 ... yes
89/266 ... yes
21/269 ... yes
23/270 ... yes
130/271 ... yes
23/273 ... yes
132/274 ... yes
130/275 ... yes
130/276 ... yes
130/279 ... yes
132/280 ... yes
84/281 ... yes
130/282 ... yes
132/283 ... yes
130/284 ... yes
130/285 ... yes
100/286 ... yes
100/287 ... yes
100/289 ... yes
100/290 ... yes
132/291 ... yes
84/293 ... yes
3/300 ... yes
130/301 ... yes
113/303 ... yes
113/304 ... yes
41/309 ... yes
41/310 ... yes
2/311 ... yes
26/312 ... yes
35/314 ... yes
130/315 ... yes
130/316 ... yes
130/317 ... yes
100/318 ... yes
100/319 ... yes
100/320 ... yes
23/322 ... yes
100/323 ... yes
100/324 ... yes
100/325 ... yes
84/326 ... yes
56/328 ... yes
2/329 ... yes
2/330 ... yes
141/331 ... yes
142/332 ... yes
126/333 ... yes
16/334 ... yes
3/335 ... yes
100/336 ... yes
105/342 ... yes
132/344 ... yes
132/345 ... yes
3/346 ... yes
2/347 ... yes
142/348 ... yes
164/353 ... yes
164/355 ... yes
141/360 ... yes
164/362 ... yes
130/366 ... yes
142/367 ... yes
23/381 ... yes
164/382 ... yes
100/383 ... yes
3/395 ... yes
3/396 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.4.4)
Git version >= 2.9.5 ? ... yes (2.18.0)
Git user has default SSH configuration? ... yes
Active users: ... 133
Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)
Checking GitLab ... Finished
Edited by Nick Thomas