May 13, 2022

Gitlab Upgrade Restart ERROR!

Error Message:
Error executing action run on resource 'bash[migrate gitlab-rails database]'
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Command execution failed. STDOUT/STDERR suppressed for sensitive resource

Error executing action run on resource 'rails_migration[gitlab-rails]'
bash[migrate gitlab-rails database] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/rails_migration.rb line 16) had an error:
Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource

進入Docker Container: docker exec -it [container] /bin/bash

step1.> gitlab-rake db:migrate
step2.> gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]']
step3.> gitlab-rake db:migrate
step4.> gitlab-ctl reconfigure
step5.> gitlab-ctl restart
done!