While installing or upgrading Red Hat Satellite 6, katello-installer fails with error "/usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]"

Solution Verified - Updated -

Issue

  • While installing Red Hat Satellite v 6, the installer fails with the error below:
# foreman-installer     # or katello-installer before 6.2
.
.
/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]
Installing             Done                                               [100%] [.....................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log
  • During Satellite Server minor upgrade from v.6.2.8 to v.6.2.9, fails with below error :
[DEBUG 2017-05-10 15:04:54 main]  /Stage[main]/Certs::Candlepin/Exec[import client certificate into Candlepin keystore]/unless: keytool error: java.lang.Exception: Alias <katello-default-ca> does not exist
[ WARN 2017-05-10 15:05:13 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: Net::HTTPFatalError: 502 "Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL).  )"
[ERROR 2017-05-10 15:05:13 main]  /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]
[ERROR 2017-05-10 15:05:13 main]  /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]
[ INFO 2017-05-10 15:05:13 main] /usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:106:in `fail'
[ERROR 2017-05-10 15:05:35 main] Upgrade failed during the installation phase. Fix the error and re-run the upgrade.

Environment

  • Red Hat Satellite 6
  • katello-installer / foreman-installer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.