● GitLab Upgrade 502 Error

在升级GitLab后,进行gitlab-ctl reconfigure的时候,碰到问题:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 55) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'

报错database_migrations问题涉及数据库。依次执行以下指令即可:

gitlab-ctl stop
chmod 0755 /var/opt/gitlab/postgresql
systemctl restart gitlab-runsvdir
gitlab-ctl reconfigure
gitlab-ctl restart