Upgrade to Red Hat Satellite 6.10.5 fails with error 'update or delete on table "katello_erratum_packages" violates foreign key constraint'

Solution Verified - Updated -

Issue

  • The upgradation of the Red Hat Satellite server to version 6.10.5 fails with one of the following errors:

    PG::ForeignKeyViolation: ERROR: update or delete on table "katello_erratum_packages" violates foreign key constraint "katello_msep_erratum_package_id_fk" on table "katello_module_stream_erratum_packages"
    

    OR

    PG::ForeignKeyViolation: ERROR: update or delete on table "katello_errata" violates foreign key constraint "katello_content_facet_errata_errata_id"
    

Environment

  • Red Hat Satellite 6.10.5

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