Skip to content

Instantly share code, notes, and snippets.

@chouseknecht
Created November 10, 2020 16:37
Show Gist options
  • Save chouseknecht/7b07d764efe7936293ab73d9a67c9f64 to your computer and use it in GitHub Desktop.
Save chouseknecht/7b07d764efe7936293ab73d9a67c9f64 to your computer and use it in GitHub Desktop.
ov 10 16:33:36 ip-10-0-10-108 rq[16473]: /usr/lib64/python3.6/asyncio/events.py:145: RuntimeWarning: coroutine 'BaseDownloader.run' was never awaited
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: self._callback(*self._args)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: pulp: rq.worker:ERROR: Traceback (most recent call last):
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: psycopg2.IntegrityError: duplicate key value violates unique constraint "unique_is_highest"
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: DETAIL: Key (collection_id, is_highest)=(0ae257f5-5916-4ce9-a617-d04c2059d5a2, t) already exists.
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: The above exception was the direct cause of the following exception:
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: Traceback (most recent call last):
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: rv = job.perform()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: self._result = self._execute()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.func(*self.args, **self.kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 82, in sync
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: d_version.create()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 148, in create
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: loop.run_until_complete(pipeline)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return future.result()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await asyncio.gather(*futures)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in __call__
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await self.run()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 121, in run
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await self._post_save(batch)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 622, in _post_save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: collection_version.save()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/app/models/base.py", line 115, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return super().save(*args, **kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 129, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: save(*args, **kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 744, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: force_update=force_update, update_fields=update_fields)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 782, in save_base
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: force_update, using, update_fields,
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 854, in _save_table
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: forced_update)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 903, in _do_update
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return filtered._update(values) > 0
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 760, in _update
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return query.get_compiler(self.db).execute_sql(CURSOR)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1471, in execute_sql
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: cursor = super().execute_sql(result_type)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return executor(sql, params, many, context)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: raise dj_exc_value.with_traceback(traceback) from exc_value
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: django.db.utils.IntegrityError: duplicate key value violates unique constraint "unique_is_highest"
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: DETAIL: Key (collection_id, is_highest)=(0ae257f5-5916-4ce9-a617-d04c2059d5a2, t) already exists.
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: Traceback (most recent call last):
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: psycopg2.IntegrityError: duplicate key value violates unique constraint "unique_is_highest"
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: DETAIL: Key (collection_id, is_highest)=(0ae257f5-5916-4ce9-a617-d04c2059d5a2, t) already exists.
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: The above exception was the direct cause of the following exception:
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: Traceback (most recent call last):
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: rv = job.perform()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: self._result = self._execute()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.func(*self.args, **self.kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 82, in sync
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: d_version.create()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 148, in create
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: loop.run_until_complete(pipeline)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return future.result()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await asyncio.gather(*futures)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in __call__
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await self.run()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py", line 121, in run
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: await self._post_save(batch)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 622, in _post_save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: collection_version.save()
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/pulpcore/app/models/base.py", line 115, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return super().save(*args, **kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 129, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: save(*args, **kwargs)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 744, in save
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: force_update=force_update, update_fields=update_fields)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 782, in save_base
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: force_update, using, update_fields,
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 854, in _save_table
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: forced_update)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 903, in _do_update
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return filtered._update(values) > 0
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/query.py", line 760, in _update
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return query.get_compiler(self.db).execute_sql(CURSOR)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1471, in execute_sql
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: cursor = super().execute_sql(result_type)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return executor(sql, params, many, context)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: raise dj_exc_value.with_traceback(traceback) from exc_value
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: return self.cursor.execute(sql, params)
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: django.db.utils.IntegrityError: duplicate key value violates unique constraint "unique_is_highest"
Nov 10 16:33:36 ip-10-0-10-108 rq[16473]: DETAIL: Key (collection_id, is_highest)=(0ae257f5-5916-4ce9-a617-d04c2059d5a2, t) already exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment