Import from GitLab export fails on merge requests
Summary
GitLab export from one instance fails to import on another server. Both servers are running the same exact version. This project doesn't use pipelines so the workaround proposed in a related issue (https://gitlab.com/gitlab-org/gitlab-ce/issues/24009#note_18902362) did not help since merge_when_pipeline_succeeds
is already false for all merge requests.
Steps to reproduce
- Export project from project settings menu on server A.
- Download project zip.
- Import/upload project zip on server B.
What is the current bug behavior?
Import errors out with message:
Failed to replace merge_requests because one or more of the new records could not be saved.
What is the expected correct behavior?
The project was successfully imported.
Output of checks
Results of GitLab environment info
System information
System:
Proxy: no
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
Redis Version: 3.2.5
Git Version: 2.10.2
Sidekiq Version:4.2.7
GitLab information
Version: 9.0.4-ee
Revision: 349b042
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
DB Version: 9.6.1
URL: https://<snip>
HTTP Clone URL: https://<snip>/some-group/some-project.git
SSH Clone URL: git@<snip>:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 5.0.0
Repository storage paths:
- default: /mnt/data/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
Checking GitLab Shell ...
GitLab Shell version >= 5.0.0 ? ... OK (5.0.0)
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: ...
5/2 ... ok
2/3 ... ok
5/5 ... ok
5/6 ... ok
5/9 ... ok
5/13 ... ok
5/14 ... ok
5/15 ... ok
5/18 ... ok
5/19 ... ok
5/20 ... ok
5/21 ... ok
5/22 ... ok
5/23 ... ok
5/24 ... ok
5/25 ... ok
5/27 ... ok
5/28 ... ok
5/29 ... ok
5/30 ... ok
5/34 ... ok
5/35 ... ok
5/36 ... ok
22/37 ... ok
5/39 ... ok
5/40 ... ok
21/41 ... ok
21/42 ... ok
21/44 ... ok
21/45 ... ok
21/47 ... ok
21/48 ... ok
21/49 ... ok
9/50 ... ok
9/51 ... ok
5/52 ... ok
15/53 ... ok
22/54 ... ok
5/56 ... ok
21/57 ... ok
21/58 ... ok
21/59 ... ok
5/60 ... ok
21/62 ... ok
5/64 ... ok
5/66 ... ok
5/69 ... ok
5/70 ... ok
5/71 ... ok
5/73 ... ok
21/74 ... ok
21/75 ... ok
5/81 ... ok
21/82 ... ok
5/83 ... ok
21/84 ... ok
5/85 ... ok
5/86 ... ok
5/87 ... ok
30/89 ... ok
3/90 ... ok
5/91 ... ok
5/92 ... ok
5/93 ... ok
5/94 ... ok
5/95 ... ok
5/96 ... ok
5/97 ... ok
5/99 ... ok
21/100 ... ok
21/101 ... ok
5/102 ... ok
21/103 ... ok
21/105 ... ok
21/106 ... ok
21/107 ... ok
21/108 ... ok
21/109 ... ok
21/112 ... ok
21/113 ... ok
21/114 ... ok
5/115 ... ok
5/116 ... ok
21/118 ... ok
2/119 ... ok
21/120 ... ok
21/121 ... ok
21/122 ... ok
5/124 ... ok
5/125 ... ok
21/126 ... ok
21/127 ... ok
21/129 ... ok
5/130 ... ok
21/131 ... ok
21/132 ... ok
11/133 ... ok
5/135 ... ok
5/136 ... ok
21/137 ... ok
38/138 ... ok
5/139 ... ok
5/140 ... ok
5/141 ... ok
5/142 ... ok
5/143 ... ok
5/144 ... ok
38/145 ... ok
5/148 ... ok
39/151 ... repository is empty
39/152 ... ok
39/153 ... ok
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 ...
Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)
<snip>
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: ...
5/2 ... yes
2/3 ... yes
5/5 ... yes
5/6 ... yes
5/9 ... yes
5/13 ... yes
5/14 ... yes
5/15 ... yes
5/18 ... yes
5/19 ... yes
5/20 ... yes
5/21 ... yes
5/22 ... yes
5/23 ... yes
5/24 ... yes
5/25 ... yes
5/27 ... yes
5/28 ... yes
5/29 ... yes
5/30 ... yes
5/34 ... yes
5/35 ... yes
5/36 ... yes
22/37 ... yes
5/39 ... yes
5/40 ... yes
21/41 ... yes
21/42 ... yes
21/44 ... yes
21/45 ... yes
21/47 ... yes
21/48 ... yes
21/49 ... yes
9/50 ... yes
9/51 ... yes
5/52 ... yes
15/53 ... yes
22/54 ... yes
5/56 ... yes
21/57 ... yes
21/58 ... yes
21/59 ... yes
5/60 ... yes
21/62 ... yes
5/64 ... yes
5/66 ... yes
5/69 ... yes
5/70 ... yes
5/71 ... yes
5/73 ... yes
21/74 ... yes
21/75 ... yes
5/81 ... yes
21/82 ... yes
5/83 ... yes
21/84 ... yes
5/85 ... yes
5/86 ... yes
5/87 ... yes
30/89 ... yes
3/90 ... yes
5/91 ... yes
5/92 ... yes
5/93 ... yes
5/94 ... yes
5/95 ... yes
5/96 ... yes
5/97 ... yes
5/99 ... yes
21/100 ... yes
21/101 ... yes
5/102 ... yes
21/103 ... yes
21/105 ... yes
21/106 ... yes
21/107 ... yes
21/108 ... yes
21/109 ... yes
21/112 ... yes
21/113 ... yes
21/114 ... yes
5/115 ... yes
5/116 ... yes
21/118 ... yes
2/119 ... yes
21/120 ... yes
21/121 ... yes
21/122 ... yes
5/124 ... yes
5/125 ... yes
21/126 ... yes
21/127 ... yes
21/129 ... yes
5/130 ... yes
21/131 ... yes
21/132 ... yes
11/133 ... yes
5/135 ... yes
5/136 ... yes
21/137 ... yes
38/138 ... yes
5/139 ... yes
5/140 ... yes
5/141 ... yes
5/142 ... yes
5/143 ... yes
5/144 ... yes
38/145 ... yes
5/148 ... yes
39/151 ... yes
39/152 ... yes
39/153 ... 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: 22
Checking GitLab ... Finished
Possible fixes
I'm stumped, what logs are helpful to chase down for more information as to what specifically is failing during import?