Project

General

Profile

Actions

Bug #12921

closed

Unable to upgrade from 2.3 to 2.4.0

Added by Brian Shaw over 8 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I run "katello-installer --upgrade" it errors out. The following errors are logged in /var/log/katello-installer/katello-installer.log.

[ INFO 2015-12-21 16:10:18 main] Upgrade Step: update_gpg_urls (this may take a while) ...
[ERROR 2015-12-21 16:13:03 main] Performance on MRI may be improved with the concurrent-ruby-ext gem. Please see http://concurrent-ruby.com
rake aborted!
Katello::Resources::Candlepin::Content: Request Timeout (GET /candlepin/content/1447419823598)

Tasks: TOP => katello:upgrades:2.2:update_gpg_key_urls
(See full trace by running task with --trace)
Importing GPG Key Urls to support Capsule Communication

[ERROR 2015-12-21 16:13:03 main] Upgrade step update_gpg_urls failed. Check logs for more information.
[DEBUG 2015-12-21 16:13:03 main] Exit with status code: 1 (signal was 1)
[ERROR 2015-12-21 16:13:03 main] Repeating errors encountered during run:
[ERROR 2015-12-21 16:13:03 main] Performance on MRI may be improved with the concurrent-ruby-ext gem. Please see http://concurrent-ruby.com
rake aborted!
Katello::Resources::Candlepin::Content: Request Timeout (GET /candlepin/content/1447419823598)

Tasks: TOP => katello:upgrades:2.2:update_gpg_key_urls
(See full trace by running task with --trace)
Importing GPG Key Urls to support Capsule Communication

[ERROR 2015-12-21 16:13:03 main] Upgrade step update_gpg_urls failed. Check logs for more information.
[DEBUG 2015-12-21 16:13:03 main] Cleaning /etc/katello-installer/d20151221-2683-1yvu2w3
[DEBUG 2015-12-21 16:13:03 main] Cleaning /tmp/default_values.yaml

When I run that particular task with --trace, I get the following:

Performance on MRI may be improved with the concurrent-ruby-ext gem. Please see http://concurrent-ruby.com
  • Invoke katello:upgrades:2.2:update_gpg_key_urls (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute katello:upgrades:2.2:update_gpg_key_urls
    Importing GPG Key Urls to support Capsule Communication
    rake aborted!
    Connection reset by peer - SSL_connect
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:800:in `connect'
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:800:in `block in connect'
    /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout'
    /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:100:in `timeout'
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:800:in `connect'
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:756:in `do_start'
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in `start'
    /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/app/lib/katello/http_resource.rb:84:in `get'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/app/lib/katello/resources/candlepin.rb:556:in `get'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/app/models/katello/candlepin/content.rb:11:in `find'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/app/models/katello/glue/candlepin/content.rb:15:in `content'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake:11:in `block (6 levels) in <top (required)>'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `each'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake:10:in `block (5 levels) in <top (required)>'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `each'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `block in find_each'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:in `find_in_batches'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:20:in `find_each'
    /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:8:in `find_each'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0.rc3/lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake:8:in `block (4 levels) in <top (required)>'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
    /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
    /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
    /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
    Tasks: TOP => katello:upgrades:2.2:update_gpg_key_urls

This has made our Katello installation unusable.

Please advise on how we can work around this and get our environment functioning again.

Thank you.

Actions #1

Updated by Eric Helms over 8 years ago

Can you try restarting katello services and re-running the upgrade?

Actions #2

Updated by Brian Shaw over 8 years ago

We have rebooted and re-run the upgrade a number of times with the same results.

Actions #3

Updated by Justin Sherrill over 8 years ago

Looking at the error, it looks like the rails app is having issues contacting candlepin and getting SSl errors. Would you be able to upload a foreman-debug for us to look at?

Actions #4

Updated by Justin Sherrill over 8 years ago

  • Translation missing: en.field_release changed from 70 to 113
Actions #5

Updated by Brian Shaw over 8 years ago

The foreman-debug file has been uploaded at http://debugs.theforeman.org/foreman-debug-iqlmz.tar.xz

Actions #6

Updated by Justin Sherrill over 8 years ago

  • Translation missing: en.field_release changed from 113 to 150
Actions #7

Updated by Justin Sherrill about 8 years ago

  • Translation missing: en.field_release changed from 150 to 144
Actions #8

Updated by Eric Helms about 8 years ago

  • Translation missing: en.field_release deleted (144)
Actions #9

Updated by Justin Sherrill about 8 years ago

  • Status changed from New to Rejected

Can you retry with 3.0? We've had many successful upgrades to that. Please reopen if you get the same issue there.

Actions #10

Updated by Justin Sherrill about 8 years ago

  • Translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF