Insights inventory sync task on Red Hat Satellite fails with error duplicate key value violates unique constraint "index_host_status_on_type_and_host_id"

Solution Verified - Updated -

Issue

  • When auto upload/sync is enabled on the satellite, the insights inventory task fails with below error

    PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_host_status_on_type_and_host_id"
    DETAIL:  Key (type, host_id)=(InventorySync::InventoryStatus, 1052) already exists.
    

Environment

  • Red Hat Satellite 6.9.x

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