Skip to content

After attempting to import old project: Import version mismatch - stuck at error, can't attempt any other import

Summary

I exported a project from GitLab 8.13 (if I recall correctly) a while back, which is now deleted. I just set up a new 8.16 install, and I can't import the project. First of all, that's super annoying, as now I would have to go set up another older install just to import it, then upgrade that install to 8.16, then export again to get it on this instance. But it gets stuck at the error screen. I cannot attempt to import any other file or URL.

Steps to reproduce

  1. Insert some issues and comments into an older GitLab install
  2. Export the project to a zip file
  3. Attempt to import the zip file into a new project on a GitLab 8.16 install
  4. "Import version mismatch: Required 0.1.5 but was 0.1.4"

Expected behavior

Ideally, it should be able to import from older versions. But at the worst, this error screen should allow me to try a different import file or URL.

Actual behavior

There is no button to try another import file or URL. The URL box is greyed out/not editable (cursor turns to circle with cross through it). Going back to the project page and clicking Import returns to this same page. There is a "Start Import" button which leads to a 500 error

Relevant logs and/or screenshots

image

Output of checks

Results of GitLab application Check

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... yes
hooks directories in repos are links: ...
2/1 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.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? ... 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
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.10.2)
Active users: 1

Checking GitLab ... Finished

Results of GitLab environment info

System information
System:         Ubuntu 14.04
Current User:   git
Using RVM:      no
Ruby Version:   2.3.3p222
Gem Version:    2.6.6
Bundler Version:1.13.7
Rake Version:   10.5.0
Sidekiq Version:4.2.7

GitLab information
Version:        8.16.1
Revision:       c6c28e6
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     postgresql
URL:            http://gitlab.mydomain.com
HTTP Clone URL: http://gitlab.mydomain.com/some-group/some-project.git
SSH Clone URL:  git@gitlab.mydomain.com:some-group/some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        4.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