Search code examples
gitlabbitnami

Gitlab migration from 6.2.3 to 7.8.1


We are using GitLab 6.2.3 and I'm currently migrating all our servers to 7.8.1.
We had moved gitlab db to mysql server during 6.2.3 installation.

Since these servers don't talk to outside world, I did fresh 7.8.1 installation in different area and pointed to the earlier database.

GitLab is not starting now. To diagnose I did

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

, and found:

hooks directories in repos are links: ... rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Table 
  'bitnami_gitlab.projects' doesn't exist: SHOW FULL FIELDS FROM `projects`

What could be the issue please?


Solution

  • All migration scenarios described in doc/updates involve a database upgrade step:

    sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
    

    Make sure you have done that step, or the database wouldn't be compliant with a 7.x GitLab server.

    The OP maestromani adds in the comments:

    /home/git got link to old gitlabshell path. Linking to new one worked.