Upgrade Gitlab from 6.1 to 7.8
Created by: MLChen
Hi there,
I'm follow this guide to upgrade my gitlab 6.1, when do db migration (Step 7) it happed error.
git@gitlab:~/gitlab$ bundle exec rake db:migrate RAILS_ENV=production == 20140903115954 MigrateToNewShell: migrating ================================ rake aborted! StandardError: An error has occurred, all later migrations canceled:
"""
Failed to rewrite gitlab-shell hooks in repositories/srv/git/gitlab/db/migrate/20140903115954_migrate_to_new_shell.rb:7:in change' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:595:in
exec_migration'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:579:in block (2 levels) in migrate' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:578:in
block in migrate'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in with_connection' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:577:in
migrate'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:752:in migrate' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:992:in
block in execute_migration_in_transaction'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:1040:in ddl_transaction' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:991:in
execute_migration_in_transaction'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:953:in block in migrate' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:949:in
each'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:949:in migrate' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:807:in
up'
/srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/migration.rb:785:in migrate' /srv/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:34:in
block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
"""
How to solve this problem and Thanks :)