Project

General

Profile

Actions

Support #16026

closed

Foreman Installer Fails

Added by Paul Chineye almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[abc.example.com]: Could not evaluate: Proxy nydlx0380.us.net.intra cannot be retrieved: unknown error (response 500)

Actions #1

Updated by Dominic Cleal almost 8 years ago

  • Status changed from New to Need more information

Please try running the command that's raising an error (/usr/sbin/foreman-rake db:migrate) and show the output.

Actions #2

Updated by Paul Chineye almost 8 years ago

# /usr/sbin/foreman-rake db:migrate
rake aborted!
Gem::LoadError: Could not find 'rack-test' (~> 0.6.2) among 83 total gem(s)
Checked in 'GEM_PATH=/opt/theforeman/tfm/root/usr/share/gems:/opt/rh/sclo-ror42/root/usr/share/gems:/usr/share/foreman/.gem/ruby:/opt/rh/rh-ruby22/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems/opt/rh/sclo-ror42/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems', execute `gem env` for more information
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
Gem::LoadError: Could not find 'rack-test' (~> 0.6.2) among 83 total gem(s)
Checked in 'GEM_PATH=/opt/theforeman/tfm/root/usr/share/gems:/opt/rh/sclo-ror42/root/usr/share/gems:/usr/share/foreman/.gem/ruby:/opt/rh/rh-ruby22/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems/opt/rh/sclo-ror42/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems', execute `gem env` for more information
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
LoadError: cannot load such file -- rails/all
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
Gem::LoadError: Could not find 'rack-test' (~> 0.6.2) among 83 total gem(s)
Checked in 'GEM_PATH=/opt/theforeman/tfm/root/usr/share/gems:/opt/rh/sclo-ror42/root/usr/share/gems:/usr/share/foreman/.gem/ruby:/opt/rh/rh-ruby22/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems/opt/rh/sclo-ror42/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems', execute `gem env` for more information
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
Gem::LoadError: Could not find 'rack-test' (~> 0.6.2) among 83 total gem(s)
Checked in 'GEM_PATH=/opt/theforeman/tfm/root/usr/share/gems:/opt/rh/sclo-ror42/root/usr/share/gems:/usr/share/foreman/.gem/ruby:/opt/rh/rh-ruby22/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems/opt/rh/sclo-ror42/root/usr/share/gems:/opt/rh/rh-ruby22/root/usr/local/share/gems', execute `gem env` for more information
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
LoadError: cannot load such file -- rails/all
/usr/share/foreman/config/application.rb:6:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
(See full trace by running task with --trace)
Actions #3

Updated by Dominic Cleal almost 8 years ago

That indicates a possibly corrupt installation. What is the output from:

  • rpm -q sclo-ror42-rubygem-rack-test
  • rpm -qV sclo-ror42-rubygem-rack-test
  • rpm -q sclo-ror42-rubygem-railties
  • rpm -qV sclo-ror42-rubygem-railties
  • rpm -qaV sclo-ror42-\*
Actions #4

Updated by Paul Chineye almost 8 years ago

gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /home/lb20854/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

Actions #5

Updated by Paul Chineye almost 8 years ago

  1. rpm -q sclo-ror42-rubygem-rack-test
    package sclo-ror42-rubygem-rack-test is not installed
  2. rpm -qV sclo-ror42-rubygem-rack-test
    package sclo-ror42-rubygem-rack-test is not installed
  3. rpm -q sclo-ror42-rubygem-railties
    sclo-ror42-rubygem-railties-4.2.5.1-2.el6.noarch
  4. rpm -qV sclo-ror42-rubygem-railties
Actions #6

Updated by Paul Chineye almost 8 years ago

rpm qaV sclo-ror42\*
Unsatisfied dependencies for sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch:
sclo-ror42-rubygem(erubis) >= 2.7.0 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
sclo-ror42-rubygem(erubis) < 2.8 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) >= 1.0.5 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) < 2 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) >= 1.0.2 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) < 2 is needed by sclo-ror42-rubygem-actionview-4.2.5.1-2.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-actionmailer-1:4.2.5.1-1.el6.noarch:
sclo-ror42-rubygem(mail) >= 2.5.4 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(mail) < 3 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) >= 1.0.5 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) < 2 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5.1-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-activerecord-1:4.2.5-2.git.48.0d48965.el6.noarch:
sclo-ror42-rubygem(activesupport) = 4.2.5 is needed by sclo-ror42-rubygem-activerecord-1:4.2.5-2.git.48.0d48965.el6.noarch
sclo-ror42-rubygem(arel) >= 6.0 is needed by sclo-ror42-rubygem-activerecord-1:4.2.5-2.git.48.0d48965.el6.noarch
sclo-ror42-rubygem(arel) < 7 is needed by sclo-ror42-rubygem-activerecord-1:4.2.5-2.git.48.0d48965.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-activejob-4.2.5.1-1.el6.noarch:
sclo-ror42-rubygem(globalid) >= 0.3.0 is needed by sclo-ror42-rubygem-activejob-4.2.5.1-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch:
sclo-ror42-rubygem(actionview) = 4.2.5 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(activesupport) = 4.2.5 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rack-test) >= 0.6.2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rack-test) < 0.7 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) >= 1.0.5 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) < 2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) >= 1.0.2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) < 2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5-2.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch:
sclo-ror42-rubygem(actionview) = 4.2.5 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
sclo-ror42-rubygem(activejob) = 4.2.5 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
sclo-ror42-rubygem(mail) >= 2.5.4 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
sclo-ror42-rubygem(mail) < 3 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) >= 1.0.5 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) < 2 is needed by sclo-ror42-rubygem-actionmailer-1:4.2.5-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-sprockets-3.5.2-1.el6.noarch:
sclo-ror42-rubygem(concurrent-ruby) >= 1.0 is needed by sclo-ror42-rubygem-sprockets-3.5.2-1.el6.noarch
sclo-ror42-rubygem(concurrent-ruby) < 2 is needed by sclo-ror42-rubygem-sprockets-3.5.2-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-turbolinks-2.5.3-1.el6.noarch:
sclo-ror42-rubygem(coffee-rails) is needed by sclo-ror42-rubygem-turbolinks-2.5.3-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-activemodel-4.2.5-1.el6.noarch:
sclo-ror42-rubygem(activesupport) = 4.2.5 is needed by sclo-ror42-rubygem-activemodel-4.2.5-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-rails-1:4.2.5.1-1.el6.noarch:
sclo-ror42-rubygem(activemodel) = 4.2.5.1 is needed by sclo-ror42-rubygem-rails-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(activerecord) = 4.2.5.1 is needed by sclo-ror42-rubygem-rails-1:4.2.5.1-1.el6.noarch
Unsatisfied dependencies for sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch:
sclo-ror42-rubygem(rack-test) >= 0.6.2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rack-test) < 0.7 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) >= 1.0.5 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-dom-testing) < 2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) >= 1.0.2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch
sclo-ror42-rubygem(rails-html-sanitizer) < 2 is needed by sclo-ror42-rubygem-actionpack-1:4.2.5.1-1.el6.noarch

Actions #7

Updated by Dominic Cleal almost 8 years ago

  • Tracker changed from Bug to Support

You have a severely corrupted installation, so I would recommend reinstalling the server unless you can tell precisely why it has failed to install dependencies. It's likely that installation of packages was interrupted somehow.

You may be able to recover using yum reinstall on all affected packages, but it's likely that more subtle issues will remain with your installation.

Actions #8

Updated by Dominic Cleal almost 8 years ago

  • Tracker changed from Support to Bug
  • Status changed from Need more information to Feedback
Actions #9

Updated by Dominic Cleal almost 8 years ago

  • Tracker changed from Bug to Support
Actions #10

Updated by Paul Chineye almost 8 years ago

successfully installed on a complete re-install -

Now am unable to get puppetserver to start, port 8140 is not open

Actions #11

Updated by Dominic Cleal almost 8 years ago

  • Status changed from Feedback to Resolved

Puppet Server has logs that should explain why it doesn't start in /var/log/puppetlabs/puppetserver/.

Actions #12

Updated by Paul Chineye almost 8 years ago

This was resolved by:

a) removing all foreman related packages
b) re-install of foreman 1.12

Actions

Also available in: Atom PDF