• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

无法从7.9.4

ruby 来源:mastier 3次浏览

升级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 

版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)