Upgrade to Satellite 6.5 fails at 'migrate_foreman'

Solution Verified - Updated -

Issue

When attempting to upgrade to Red Hat Satellite 6.5, the following error is thrown:

Upgrade Step: migrate_foreman...
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::UniqueViolation: ERROR:  could not create unique index "index_roles_on_name"
DETAIL:  Key (name)=(Register hosts) is duplicated.
: CREATE UNIQUE INDEX  "index_roles_on_name" ON "roles"  ("name")

[...]

foreman-rake db:migrate failed! Check the output for error!
Upgrade step migrate_foreman failed. Check logs for more information.

Environment

Red Hat Satellite 6.5 upgrading from 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content