yum -y update系统升级导致gitlab凉凉

为了安全原因,为了剩下200美金一个月aws四核7.5G的服务器费用,弄到内网服务器吧。内网的一个虚拟机有近两个月装过专门拿来装gitlab的服务器。只是办公司一直断电所以一直就没用内网的gitlab服务器。

有喜欢新版本的习惯,升级了一下,看到提示同时升级了gitlab,但是怎么看到是升级gitlab-ee呢?

搜了一下说是用gitlab-ctl reconfigure解决

Running handlers:
There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
—- Begin output of “bash” “/tmp/chef-script20190728-29603-rqc88z” —-
STDOUT: rake aborted!
Your current database version is too old to be migrated. You should upgrade to GitLab 11.11.0 before moving to this version. Please see https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/migrate/schema_check.rake:13:in block in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:56:inblock (3 levels) in ‘
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
Tasks: TOP => db:migrate => schema_version_check
(See full trace by running task with –trace)
STDERR:
—- End output of “bash” “/tmp/chef-script20190728-29603-rqc88z” —-
Ran “bash” “/tmp/chef-script20190728-29603-rqc88z” returned 1

然后干脆再次蛋疼运行升级命令

再次升级看到的是升级gitlab-ce了。

Running handlers:
There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
—- Begin output of “bash” “/tmp/chef-script20190728-2049-19chsyy” —-
STDOUT: rake aborted!
Your current database version is too old to be migrated. You should upgrade to GitLab 11.11.0 before moving to this version. Please see https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/migrate/schema_check.rake:13:in block in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:56:inblock (3 levels) in ‘
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
Tasks: TOP => db:migrate => schema_version_check
(See full trace by running task with –trace)
STDERR:
—- End output of “bash” “/tmp/chef-script20190728-2049-19chsyy” —-
Ran “bash” “/tmp/chef-script20190728-2049-19chsyy” returned 1

反正本地那个是空的还是重新安装最新版本吧。

发表评论

电子邮件地址不会被公开。 必填项已用*标注