[RHUI4] Error in syncing Red Hat repository. 'The repository metadata being synced into Pulp is erroneous in a way that makes it ambiguous (duplicate PKGIDs)'
Issue
- Error in syncing Red Hat repository.
# rhui-manager > synchronization status and scheduling > view the details of the last repository sync
:
Repo: Red Hat Enterprise Linux 9 for x86_64 - AppStream from RHUI (RPMs) (9)
Start Time: 2022-10-14 11:35:06
Finish Time: 2022-10-14 11:38:54
Elapsed Time: 0:03:48.657991
Result: Error
Exception: The repository metadata being synced into Pulp is erroneous in a way that makes it ambiguous (duplicate PKGIDs), and therefore we do not allow it to be synced in 'mirror_complete' mode. Please choose a sync policy which does not mirror repository metadata.
Please read https://github.com/pulp/pulp_rpm/issues/2402 for more details.
Traceback: File "/usr/lib/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 384, in _perform_task
result = func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 547, in synchronize
repo_version = dv.create() or repo.latest_version()
File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create
loop.run_until_complete(pipeline)
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
await asyncio.gather(*futures)
File "/usr/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py", line 43, in __call__
await self.run()
File "/usr/lib/python3.8/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 823, in run
await self.parse_repository_metadata(repomd, repomd_files)
File "/usr/lib/python3.8/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 874, in parse_repository_metadata
await self.parse_packages(
File "/usr/lib/python3.8/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 1149, in parse_packages
raise Exception(ERR_MSG.format("PKGIDs"))
Environment
- Red Hat Update Infrastructure 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.