Gitlab version upgrade from 14.0.5 to 15.0.4 - DB Migration Error

Viewed 85

I tried to upgrade 14.0.5 to 15.0.4, got follwing errors.

while run gitlab-rake reconfigure command getting .. rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: ....

while run gitlab-rake db:migrage command getting ... pg::duplicateschema: error: schema "gitlab_partitions_dynamic" already exists

***Operating system name: ubuntu 20.04 & Architecture: x86_64 & Ruby version: 2.7.5p203

1 Answers

You cannot upgrade directly between these two versions. You must follow the upgrade path. You should try again following the proper upgrade path. Also make sure you read the version-specific notes, too and allow for background migrations to complete at each stop in the upgrade path.

For you, that would be: 14.0.12 -> 14.3.6 -> 14.9.5 -> 14.10.Z -> 15.0.Z

Related