更新Gitlab后,gitlab-ctl reconfigure报错:
Running handlers: There was an error running gitlab-ctl reconfigure: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: 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::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
执行了一下:
sudo gitlab-rake db:migrate
结果让我执行:
sudo gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]']
显示执行成功后,再执行:
sudo gitlab-ctl reconfigure
然后再执行:
sudo gitlab-ctl restart
成功重启了。
这玩意儿是真的复杂,一般人玩不转。
绕道,玩不转。
@xqiushi 确实,光组件就有十几个。