Upgrade to Red Hat Satellite 6.11 fails with message 'PG::UniqueViolation: ERROR: could not create unique index "index_insights_rules_on_rule_id"'

Solution Verified - Updated -

Issue

  • Red Hat Satellite upgrade to 6.11 from Satellite 6.10 fails with below error
   2023-01-10 08:59:05 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman- 
   rake-db:migrate]/returns:
   2023-01-10 08:59:05 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman- 
   rake-db:migrate]/returns: PG::UniqueViolation: ERROR:  could not create unique index 
   "index_insights_rules_on_rule_id"
   2023-01-10 08:59:05 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman- 
   rake-db:migrate]/returns: DETAIL:  Key (rule_id)= 
   (crashkernel_reservation_value|CRASHKERNEL_RECOMMENDED_VALUE_V2) is duplicated.
   2023-01-10 08:59:05 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman- 
   rake-db:migrate]/returns: /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord- 
   6.0.4.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `async_exec'

Environment

  • Red Hat Satellite 6.10

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