sameersbn / sameersbn/docker-gitlab
Upgrade from 14.1.3 (and prior) to 14.2.1 fails due to database migration issue
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
Currently i experience an error when trying to upgrade to 14.2.1 form any 13.x and 14.x Version.
The message prior to the error:
Caused by:
gitlab_1 | Expected batched background migration for the given configuration to be marked as 'finished', but it is 'active': {:job_class_name=>"CopyColumnUsingBackgroundMigrationJob", :table_name=>"ci_job_artifacts", :column_name=>"id", :job_arguments=>[["id", "job_id"], ["id_convert_to_bigint", "job_id_convert_to_bigint"]]}
gitlab_1 |
gitlab_1 | Finalize it manualy by running
gitlab_1 |
gitlab_1 | sudo gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,ci_job_artifacts,id,'[["id", "job_id"], ["id_convert_to_bigint", "job_id_convert_to_bigint"]]']
I tracked the error down and found a hint at
https://docs.gitlab.com/ee/update/#1410 mentioning the migration issue.
Just wanted to point that out, maybe there is a patch missing?
Best,
Chris
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the GitLab 14.1.0 update guidance linked in the report and reproduce the upgrade from 13.x or 14.x using the reported Docker setup. Check the CopyColumnUsingBackgroundMigrationJob state for ci_job_artifacts and the supplied gitlab-rake finalize command; done means the upgrade completes without the migration remaining active.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- database, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100