Red Hat Satellite 6.1 upgrade to 6.2 fails with error "/usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]" when migrating unmanaged Hosts

Solution Unverified - Updated -

Issue

  • Red Hat Satellite 6.1 upgrade to 6.2 fails with error /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0] when migrating unmanaged Hosts.
  • Upgrade from Red Hat Satellite 6.1 to 6.2 fails with error captured in /var/log/foreman-installer/satellite.log
(See full trace by running task with --trace)
== 20150508124600 CopyUnmanagedHostsToInterfaces: migrating ===================
-- Migrating Unmanaged Host interfaces to standalone Interfaces
--   ... migrating server1.lab.example.com

[ERROR 2016-10-17 19:43:23 main]  /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]
[ERROR 2016-10-17 19:43:23 main]  /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]
[ERROR 2016-10-17 19:43:23 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 2016-10-17 19:43:23 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]
[ERROR 2016-10-17 19:43:23 main] Upgrade failed during the installation phase. Fix the error and re-run the upgrade.

Environment

  • Red Hat Satellite 6.2
  • Upgrade from Red Hat Satellite 6.1 to 6.2

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