Project

General

Profile

Actions

Bug #31558

closed

Could not synchronize some repositories with error: Package matching query does not exist.

Added by Piotr Pietruszka almost 4 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: pulp: rq.worker:ERROR: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "rpm_package_pkgId_key"
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: DETAIL: Key ("pkgId")=(ea48c7c0c61230641d627b66537ddd47a84f193e) already exists.
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: The above exception was the direct cause of the following exception:
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 102, in run
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: d_content.content.save()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/app/models/base.py", line 115, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return super().save(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 129, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: save(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 744, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: force_update=force_update, update_fields=update_fields)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 782, in save_base
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: force_update, using, update_fields,
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 873, in _save_table
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 911, in _do_insert
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: using=using, raw=raw)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return getattr(self.get_queryset(), name)(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1186, in _insert
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return query.get_compiler(using=using).execute_sql(return_id)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1377, in execute_sql
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return executor(sql, params, many, context)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in exit
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: raise dj_exc_value.with_traceback(traceback) from exc_value
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: django.db.utils.IntegrityError: duplicate key value violates unique constraint "rpm_package_pkgId_key"
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: DETAIL: Key ("pkgId")=(ea48c7c0c61230641d627b66537ddd47a84f193e) already exists.
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: During handling of the above exception, another exception occurred:
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: rv = job.perform()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: self._result = self._execute()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.func(*self.args, **self.kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 266, in synchronize
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: dv.create()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 148, in create
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: loop.run_until_complete(pipeline)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return future.result()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: await asyncio.gather(*futures)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in call
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: await self.run()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 105, in run
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: d_content.content.q()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return getattr(self.get_queryset(), name)(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 408, in get
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: self.model._meta.object_name
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: pulp_rpm.app.models.package.Package.DoesNotExist: Package matching query does not exist.
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "rpm_package_pkgId_key"
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: DETAIL: Key ("pkgId")=(ea48c7c0c61230641d627b66537ddd47a84f193e) already exists.
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: The above exception was the direct cause of the following exception:
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 102, in run
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: d_content.content.save()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/app/models/base.py", line 115, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return super().save(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 129, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: save(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 744, in save
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: force_update=force_update, update_fields=update_fields)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 782, in save_base
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: force_update, using, update_fields,
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 873, in _save_table
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 911, in _do_insert
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: using=using, raw=raw)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return getattr(self.get_queryset(), name)(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 1186, in _insert
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return query.get_compiler(using=using).execute_sql(return_id)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1377, in execute_sql
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return executor(sql, params, many, context)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in exit
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: raise dj_exc_value.with_traceback(traceback) from exc_value
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.cursor.execute(sql, params)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: django.db.utils.IntegrityError: duplicate key value violates unique constraint "rpm_package_pkgId_key"
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: DETAIL: Key ("pkgId")=(ea48c7c0c61230641d627b66537ddd47a84f193e) already exists.
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: During handling of the above exception, another exception occurred:
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: Traceback (most recent call last):
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: rv = job.perform()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: self._result = self._execute()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return self.func(*self.args, **self.kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py", line 266, in synchronize
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: dv.create()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 148, in create
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: loop.run_until_complete(pipeline)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return future.result()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: await asyncio.gather(*futures)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in call
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: await self.run()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 105, in run
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: d_content.content.q()
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: return getattr(self.get_queryset(), name)(*args, **kwargs)
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 408, in get
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: self.model._meta.object_name
Dec 29 08:05:26 oplrepo-cpd-dmz pulpcore-worker-2: pulp_rpm.app.models.package.Package.DoesNotExist: Package matching query does not exist.


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #31988: Could not synchronize some repositories with error: Package matching query does not exist.DuplicateActions
Actions

Also available in: Atom PDF