Migrate Non omnibus 6.6.5 to Omnibus installation 6.6.5
Created by: khepri2
Hello,
I have search whitout success the solution to migrate our solution gitlab CE.
I migrate from mysql / apache installation to postgres / nginx.
I do the advise process on this link whitout problem. https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update.md
*export and convert the existing MySQL database (without importing to PostgreSQL). mysqldump --compatible=postgresql --default-character-set=utf8 -r gitlab.mysql -u root gitlabhq_production python db_converter.py gitlab.mysql gitlab.psql
replace unpacked_backup/db/database.sql with the converted gitlab.psql cp gitlab.pSql unpacked_backup/db/database.sql repack the modified backup. cd unpacked_backup tar cvf ../converted_gitlab_backup.tar *
The fresh installation work fine, but when I try to restore with the backup file upgraded by the psql converted file, I have the following issue:
[root@gitlab ~]# gitlab-rake gitlab:backup:restore --trace ** Invoke gitlab:backup:restore (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute gitlab:backup:restore Unpacking backup ... done GitLab version mismatch: Your current GitLab version (6.6.5) differs from the GitLab version in the backup! Please switch to the following version and try again: version: ad5e5b5c
I have note this :
[root@gitlab .git]# rpm -qa gitlab gitlab-6.6.5_omnibus-1.el6.x86_64
[root@gitlab .git]# git log commit ad5e5b5c Merge: 8f48f386 d50cbb6a Author: Dmitriy Zaporozhets [email protected] Date: Wed Mar 5 13:21:29 2014 +0200 Merge branch '6-6-stable' of github.com:gitlabhq/gitlabhq into 6-6-stable
Can you advise or redirect me to a post that indicate the solution ?