Skip to content

Cant access project tab in some projects after migration instances

Summary

I have two instance of gitlab in ubuntu servers, 14.04 and 16.04, i need move the all informatión for 14.04 to 16.04. the backup is restored "fine" but in some projects i cant access to tab "project", but if i change the url for issues or MR all information is it,activity, labels, users, commits, all, but the tab "project" shows 500 error.

Steps to reproduce

  • Same gitlab versión 8.12.4.

  • execute the command sudo gitlab-rake gitlab:backup:create

  • backup created fine

  • pass backup with scp to other server(16.04)

  • restore gitlab backup with command sudo gitlab-rake gitlab:backup:restore BACKUP=XXXX

  • gitlab backup restore fine

  • get to any project(not all) and show 500 error server.

Expected behavior

Projects tab works on all projects

Actual behavior

Some projects show 500 error

Relevant logs and/or screenshots

Captura_el_2016-10-07_a_las_16.24.10

Captura_el_2016-10-07_a_las_16.25.24

Output of checks

Results of GitLab application Check

Checking GitLab Shell ...

GitLab Shell version >= 3.6.1 ? ... OK (3.6.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: ...
6/4 ... ok
6/5 ... ok
6/6 ... ok
29/7 ... ok
6/8 ... repository is empty
2/9 ... ok
29/25 ... ok
9/27 ... repository is empty
8/28 ... ok
29/29 ... repository is empty
29/31 ... repository is empty
29/32 ... repository is empty
29/35 ... ok
15/36 ... ok
16/37 ... repository is empty
29/38 ... ok
8/39 ... ok
29/40 ... ok
29/41 ... ok
29/42 ... repository is empty
29/44 ... ok
15/45 ... ok
29/46 ... ok
34/47 ... ok
34/48 ... ok
34/49 ... ok
34/50 ... ok
34/51 ... ok
34/52 ... ok
34/53 ... ok
34/54 ... ok
34/55 ... ok
34/56 ... ok
34/57 ... ok
34/58 ... ok
34/59 ... ok
34/60 ... ok
34/61 ... ok
34/62 ... ok
4/63 ... ok
34/64 ... ok
34/65 ... ok
34/66 ... ok
34/67 ... ok
34/68 ... ok
34/69 ... ok
29/70 ... repository is empty
34/72 ... ok
34/73 ... ok
34/74 ... ok
34/75 ... ok
34/76 ... ok
34/77 ... ok
34/78 ... ok
34/79 ... ok
34/80 ... ok
34/81 ... ok
34/82 ... ok
34/83 ... ok
34/84 ... ok
34/86 ... ok
15/87 ... ok
6/90 ... ok
21/91 ... ok
8/92 ... ok
21/93 ... ok
34/95 ... repository is empty
33/97 ... ok
34/98 ... ok
34/99 ... ok
33/100 ... 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 ...

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: ...
6/4 ... yes
6/5 ... yes
6/6 ... yes
29/7 ... yes
6/8 ... yes
2/9 ... yes
29/25 ... yes
9/27 ... yes
8/28 ... yes
29/29 ... yes
29/31 ... yes
29/32 ... yes
29/35 ... yes
15/36 ... yes
16/37 ... yes
29/38 ... yes
8/39 ... yes
29/40 ... yes
29/41 ... yes
29/42 ... yes
29/44 ... yes
15/45 ... yes
29/46 ... yes
34/47 ... yes
34/48 ... yes
34/49 ... yes
34/50 ... yes
34/51 ... yes
34/52 ... yes
34/53 ... yes
34/54 ... yes
34/55 ... yes
34/56 ... yes
34/57 ... yes
34/58 ... yes
34/59 ... yes
34/60 ... yes
34/61 ... yes
34/62 ... yes
4/63 ... yes
34/64 ... yes
34/65 ... yes
34/66 ... yes
34/67 ... yes
34/68 ... yes
34/69 ... yes
29/70 ... yes
34/72 ... yes
34/73 ... yes
34/74 ... yes
34/75 ... yes
34/76 ... yes
34/77 ... yes
34/78 ... yes
34/79 ... yes
34/80 ... yes
34/81 ... yes
34/82 ... yes
34/83 ... yes
34/84 ... yes
34/86 ... yes
15/87 ... yes
6/90 ... yes
21/91 ... yes
8/92 ... yes
21/93 ... yes
34/95 ... yes
33/97 ... yes
34/98 ... yes
34/99 ... yes
33/100 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 27

Checking GitLab ... Finished

Results of GitLab environment info

For gitlab on ubuntu 16.04 (the error is present on this server)

`System information
System:         Ubuntu 16.04
Current User:   git
Using RVM:      no
Ruby Version:   2.3.1p112
Gem Version:    2.6.6
Bundler Version:1.13.1
Rake Version:   10.5.0
Sidekiq Version:4.1.4

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

GitLab Shell
Version:        3.6.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
sysadmin@famsagitlab:~$

For gitlab on ubuntu 14.04 (the backup its create on this server)

System information
System:         Ubuntu 14.04
Current User:   git
Using RVM:      no
Ruby Version:   2.3.1p112
Gem Version:    2.6.6
Bundler Version:1.13.1
Rake Version:   10.5.0
Sidekiq Version:4.1.4

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

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

```

### Possible fixes

* Import and export manually projects. :confounded: