Gitlab Project import fails: sidekiq undefined method import_jid
Summary
Hi, i'm trying to import a gitlab project to a other gitlab instance. The old instance is a ce omnibus-package in version 10.6.0 on a ubuntu server. The new instance is a fresh 11.7.5-ce.0 that runs in a docker container (localhost at the moment).
I've tested 5 different projects and every project fails with the same error.
Steps to reproduce
Export any project from the old instance and try to import into the new one.
What is the current bug behavior?
Error importing repository into root/wewew - undefined method import_jid for #<ProjectImportState:0x00007f83c8f6c018>
Example Project
2019-02-12_11-30-909_spring-petclinic_export.tar.gz
What is the expected correct behavior?
The new instance should import the full repository
Relevant logs and/or screenshots
==> /var/log/gitlab/sidekiq/current <==
2019-02-12_09:46:16.39899 2019-02-12T09:46:16.398Z 505 TID-oukenrlfl RepositoryImportWorker JID-a4f463eb72071f28cabac881 INFO: fail: 2.158 sec
2019-02-12_09:46:16.39980 2019-02-12T09:46:16.399Z 505 TID-oukenrlfl WARN: {"context":"Job raised exception","job":{"retry":false,"args":[5],"class":"RepositoryImportWorker","queue":"repository_import","backtrace":5,"status_expiration":54000,"jid":"a4f463eb72071f28cabac881","created_at":1549964774.2399836,"correlation_id":"nccnAhJtAJ","enqueued_at":1549964774.2402463},"jobstr":"{\"retry\":false,\"args\":[5],\"class\":\"RepositoryImportWorker\",\"queue\":\"repository_import\",\"backtrace\":5,\"status_expiration\":54000,\"jid\":\"a4f463eb72071f28cabac881\",\"created_at\":1549964774.2399836,\"correlation_id\":\"nccnAhJtAJ\",\"enqueued_at\":1549964774.2402463}"}
2019-02-12_09:46:16.39981 2019-02-12T09:46:16.399Z 505 TID-oukenrlfl WARN: RuntimeError: Error importing repository into root/wewew - undefined method `import_jid' for #<ProjectImportState:0x00007f83c8f6c018>
2019-02-12_09:46:16.39981 2019-02-12T09:46:16.399Z 505 TID-oukenrlfl WARN: /opt/gitlab/embedded/service/gitlab-rails/app/workers/repository_import_worker.rb:26:in `perform'
2019-02-12_09:46:16.39981 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:185:in `execute_job'
2019-02-12_09:46:16.39982 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:167:in `block (2 levels) in process'
2019-02-12_09:46:16.39982 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
2019-02-12_09:46:16.39983 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/sidekiq_middleware.rb:15:in `block in call'
2019-02-12_09:46:16.39983 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/transaction.rb:55:in `run'
2019-02-12_09:46:16.39983 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/sidekiq_middleware.rb:15:in `call'
2019-02-12_09:46:16.39983 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39984 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_status/server_middleware.rb:7:in `call'
2019-02-12_09:46:16.39984 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39984 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_middleware/correlation_logger.rb:10:in `block in call'
2019-02-12_09:46:16.39985 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/correlation_id.rb:15:in `use_id'
2019-02-12_09:46:16.39985 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_middleware/correlation_logger.rb:9:in `call'
2019-02-12_09:46:16.39985 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39986 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_middleware/batch_loader.rb:7:in `call'
2019-02-12_09:46:16.39986 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39986 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_middleware/request_store_middleware.rb:8:in `call'
2019-02-12_09:46:16.39986 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39987 /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sidekiq_middleware/shutdown.rb:54:in `call'
2019-02-12_09:46:16.39988 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39988 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sentry-raven-2.7.4/lib/raven/integrations/sidekiq.rb:9:in `call'
2019-02-12_09:46:16.39988 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
2019-02-12_09:46:16.39989 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/middleware/chain.rb:133:in `invoke'
2019-02-12_09:46:16.39989 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:166:in `block in process'
2019-02-12_09:46:16.39989 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
2019-02-12_09:46:16.39989 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/job_retry.rb:108:in `local'
2019-02-12_09:46:16.39990 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
2019-02-12_09:46:16.39990 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/rails.rb:42:in `block in call'
2019-02-12_09:46:16.39990 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/execution_wrapper.rb:85:in `wrap'
2019-02-12_09:46:16.39990 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/reloader.rb:68:in `block in wrap'
2019-02-12_09:46:16.39991 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/execution_wrapper.rb:85:in `wrap'
2019-02-12_09:46:16.39991 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/reloader.rb:67:in `wrap'
2019-02-12_09:46:16.39991 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/rails.rb:41:in `call'
2019-02-12_09:46:16.39991 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
2019-02-12_09:46:16.39992 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:243:in `stats'
2019-02-12_09:46:16.39992 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
2019-02-12_09:46:16.39992 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/job_logger.rb:8:in `call'
2019-02-12_09:46:16.39992 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
2019-02-12_09:46:16.39993 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/job_retry.rb:73:in `global'
2019-02-12_09:46:16.39993 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:125:in `block in dispatch'
2019-02-12_09:46:16.39993 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/logging.rb:48:in `with_context'
2019-02-12_09:46:16.39994 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
2019-02-12_09:46:16.39994 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:124:in `dispatch'
2019-02-12_09:46:16.39994 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:165:in `process'
2019-02-12_09:46:16.39994 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:83:in `process_one'
2019-02-12_09:46:16.39995 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/processor.rb:71:in `run'
2019-02-12_09:46:16.39995 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/util.rb:16:in `watchdog'
2019-02-12_09:46:16.39995 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/util.rb:25:in `block in safe_thread'
Results of GitLab environment info
OLD GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknownGitLab information Version: 10.6.0 Revision: 8f82e53 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://srvedv69.zentrale.ad.local HTTP Clone URL: http://srvedv69.zentrale.ad.local/some-group/some-project.git SSH Clone URL: git@srvedv69.zentrale.ad.local:some-group/some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 6.0.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
NEW GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.3 Go Version: unknown
GitLab information Version: 11.7.5 Revision: c5b5b18 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://localhost HTTP Clone URL: http://localhost/some-group/some-project.git SSH Clone URL: git@localhost:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the OLD GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 6.0.4 ? ... OK (6.0.4) 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/1 ... ok 2/2 ... ok 2/4 ... ok 2/5 ... ok 2/6 ... ok 3/7 ... ok 2/8 ... ok 2/9 ... ok 5/10 ... ok 12/11 ... ok 13/13 ... ok 13/14 ... ok 3/15 ... ok 2/16 ... ok 12/19 ... ok 10/21 ... ok 12/23 ... ok 20/24 ... ok 5/25 ... ok 3/26 ... ok 19/28 ... ok 21/31 ... ok 21/32 ... ok 21/33 ... ok 23/35 ... ok 21/38 ... ok 21/39 ... ok 23/40 ... ok 21/41 ... ok 21/43 ... ok 9/44 ... ok 9/45 ... ok 21/46 ... ok 21/47 ... ok 21/48 ... ok 23/49 ... ok 9/50 ... ok 21/51 ... ok 21/53 ... ok 21/54 ... ok 5/55 ... ok 9/56 ... ok 10/57 ... ok 21/58 ... ok 21/59 ... ok 21/61 ... ok 3/63 ... ok 21/64 ... ok 13/65 ... ok 13/67 ... ok 13/69 ... ok 21/70 ... ok 3/71 ... ok 10/72 ... ok 2/73 ... ok 9/75 ... ok 9/76 ... ok 9/77 ... ok 21/79 ... ok 21/80 ... ok 25/81 ... ok 21/83 ... ok 21/84 ... ok 21/85 ... ok 27/86 ... ok 9/87 ... ok 21/88 ... ok 16/89 ... ok 21/90 ... ok 21/91 ... ok 21/92 ... ok 21/93 ... ok 21/94 ... ok 5/95 ... ok 21/96 ... ok 21/97 ... ok 21/98 ... ok 2/99 ... ok 13/100 ... ok 13/101 ... ok 21/102 ... ok 26/103 ... ok 21/104 ... ok 13/105 ... ok 21/106 ... ok 3/107 ... 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... Success LDAP users with access to your GitLab server (only showing the first 100 results) -- DATEN RAUSGELÖSCHT --
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/1 ... yes 2/2 ... yes 2/4 ... yes 2/5 ... yes 2/6 ... yes 3/7 ... yes 2/8 ... yes 2/9 ... yes 5/10 ... yes 12/11 ... yes 13/13 ... yes 13/14 ... yes 3/15 ... yes 2/16 ... yes 12/19 ... yes 10/21 ... yes 12/23 ... yes 20/24 ... yes 5/25 ... yes 3/26 ... yes 19/28 ... yes 21/31 ... yes 21/32 ... yes 21/33 ... yes 23/35 ... yes 21/38 ... yes 21/39 ... yes 23/40 ... yes 21/41 ... yes 21/43 ... yes 9/44 ... yes 9/45 ... yes 21/46 ... yes 21/47 ... yes 21/48 ... yes 23/49 ... yes 9/50 ... yes 21/51 ... yes 21/53 ... yes 21/54 ... yes 5/55 ... yes 9/56 ... yes 10/57 ... yes 21/58 ... yes 21/59 ... yes 21/61 ... yes 3/63 ... yes 21/64 ... yes 13/65 ... yes 13/67 ... yes 13/69 ... yes 21/70 ... yes 3/71 ... yes 10/72 ... yes 2/73 ... yes 9/75 ... yes 9/76 ... yes 9/77 ... yes 21/79 ... yes 21/80 ... yes 25/81 ... yes 21/83 ... yes 21/84 ... yes 21/85 ... yes 27/86 ... yes 9/87 ... yes 21/88 ... yes 16/89 ... yes 21/90 ... yes 21/91 ... yes 21/92 ... yes 21/93 ... yes 21/94 ... yes 5/95 ... yes 21/96 ... yes 21/97 ... yes 21/98 ... yes 2/99 ... yes 13/100 ... yes 13/101 ... yes 21/102 ... yes 26/103 ... yes 21/104 ... yes 13/105 ... yes 21/106 ... yes 3/107 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 26
Checking GitLab ... Finished
Expand for output related to the NEW GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4) 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 Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
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: ... 1/1 ... yes 1/2 ... yes 1/3 ... yes 1/4 ... yes 1/5 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 1
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished