Update 11.5.1

Hi.
I have a problem when upgdating gitlab from 11.5.1 to 11.11.0. The error is:

/opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/common.rb:156:in `parse’: 765: unexpected token at ‘’ (JSON::ParserError)

  •    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/common.rb:156:in `parse'*
    
  •    from /opt/gitlab/embedded/service/omnibus-ctl/check_config.rb:32:in `block in load_file'*
    
  •    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:197:in `block in add_command'*
    
  •    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'*
    
  •    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'*
    
  •    from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'*
    
  •    from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'*
    

error: %pre(gitlab-ce-11.11.0-ce.0.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-11.11.0-ce.0.el7.x86_64
gitlab-ce-11.5.1-ce.0.el7.x86_64 was supposed to be removed but is not!

  • Verifying : gitlab-ce-11.5.1-ce.0.el7.x86_64 1/2*
  • Verifying : gitlab-ce-11.11.0-ce.0.el7.x86_64 2/2*

Failed:

  • gitlab-ce.x86_64 0:11.5.1-ce.0.el7 gitlab-ce.x86_64 0:11.11.0-ce.0.el7*

Can you help me?
Tks.
PS

Hi @sousape and welcome to the GitLab Forum!

The error message you’re seeing indicates that ruby version 2.4.0 is being used, whereas v 2.5.3 is required for GitLab v 11.11.0.
The move to ruby 2.5.3 began with version 11.6.x of GitLab.

Can you restore from to backup?

In either case, try running

sudo yum install gitlab-ee-11.6.11-ee.0.el7
sudo gitlab-ctl restart

If it works without error, now try:

sudo yum update gitlab-ee

This should get you the latest version of GitLab EE with v 2.5.3 of Ruby.

Let me know if you have any questions or problems.

Best Regards,
Greg