无法从7.9.4

升级gitlab:无法从7.9.4

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/upgrader.md

我尝试升级我的实例。它用于工作之前:

[email protected]:~/gitlab$ ruby -Ilib -e 'require "gitlab/upgrader"' -e 'class Gitlab::Upgrader' -e 'def latest_version_raw' -e '"vX.X.X"' -e 'end' -e 'end' -e 'Gitlab::Upgrader.new.execute' -- -y 

GitLab 7 upgrade tool

Your version is 7.9.4

Latest available version for GitLab 7 is Unknown

/home/git/gitlab/lib/gitlab/upgrader.rb:30:in `>=': comparison of Gitlab::VersionInfo with Gitlab::VersionInfo failed (ArgumentError)

from /home/git/gitlab/lib/gitlab/upgrader.rb:30:in `latest_version?'

from /home/git/gitlab/lib/gitlab/upgrader.rb:11:in `execute'

from -e:7:in `<main>'

我不知道很多红宝石,但我想有什么毛病“vX.X.X”,作为最新版本7.11.2是。该脚本现已被弃用,但我不想使用omnibus软件包。

回答:

只需将vX.X.X替换为最新的版本标签即可。对于7.11.3命令是

cd /home/git/gitlab; \ 

sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \

sudo service gitlab stop; \

sudo -u git -H ruby -Ilib -e 'require "gitlab/upgrader"' -e 'class Gitlab::Upgrader' -e 'def latest_version_raw' -e '"v7.11.3"' -e 'end' -e 'end' -e 'Gitlab::Upgrader.new.execute' -- -y; \

cd /home/git/gitlab-shell; \

sudo -u git -H git fetch; \

sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_SHELL_VERSION`; \

cd /home/git/gitlab; \

sudo service gitlab start; \

sudo service nginx restart; \

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

以上是 无法从7.9.4 的全部内容, 来源链接: utcz.com/qa/259408.html

回到顶部