Docker upgrade to 14.10.0-ce.0 from 14.9.3-ce.0 results in migration failure
Summary
Upgrading from 14.9.3-ce.0 to 14.10.0-ce.0 results in database migration failure when using docker-ce image.
Steps to reproduce
- Stop and delete existing docker container image
- Pull image with version 14.10.0-ce.0
- Start container
Example Project
What is the current bug behavior?
During initial startup reconfigure the following is displayed and the container exits.
Recipe: gitlab::database_migrations
* ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
* rails_migration[gitlab-rails] action run
* bash[migrate gitlab-rails database] action run
================================================================================
Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Command execution failed. STDOUT/STDERR suppressed for sensitive resource
Resource Declaration:
---------------------
suppressed sensitive resource output
Compiled Resource:
------------------
suppressed sensitive resource output
System Info:
------------
chef_version=15.17.4
platform=ubuntu
platform_version=20.04
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
bash[migrate gitlab-rails database] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb line 16) had an error: Mixlib::ShellOut::ShellComm
andFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
What is the expected correct behavior?
Database migration completes successfully.
I have reverted to 14.9.3-ce.0 and it is working.