Bug 2224738 - Repository sync failed with error: PG::ForeignKeyViolation: ERROR: insert or update on table "katello_module_stream_rpms" violates foreign key constraint "katello_msrpm_rpm_id_fk" DETAIL: Key (rpm_id)=(116782) is not present in table "katello_rpms".
Summary: Repository sync failed with error: PG::ForeignKeyViolation: ERROR: insert or ...
Keywords:
Status: CLOSED DUPLICATE of bug 2224031
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.14.0
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-22 15:24 UTC by Aniket
Modified: 2023-08-03 17:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-31 12:25:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19206 0 None None None 2023-07-27 04:57:55 UTC

Description Aniket 2023-07-22 15:24:13 UTC
Description of the problem:

I have enabled the following repositories and initiated a bulk sync:

Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8

Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8

Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs


However, "Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8" failed with the following error message: 

~~~
PG::ForeignKeyViolation: ERROR:  insert or update on table "katello_module_stream_rpms" violates foreign key constraint "katello_msrpm_rpm_id_fk"
DETAIL:  Key (rpm_id)=(116782) is not present in table "katello_rpms".
~~~


Re-synchronizing 'Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8' resolved the issue.

Comment 1 Ashish Humbe 2023-07-27 04:54:34 UTC
This is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2224031

Comment 5 Ron Lavi 2023-07-31 12:25:45 UTC

*** This bug has been marked as a duplicate of bug 2224031 ***


Note You need to log in before you can comment on or make changes to this bug.