|
HTTP 200 OK
|
|
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
|
|
Content-Type: application/json
|
|
Vary: Accept
|
|
|
|
{
|
|
"pulp_href": "/pulp/api/v3/tasks/1f4c4290-f0a1-4d76-a4a8-f28d495988f0/",
|
|
"pulp_created": "2020-07-27T02:45:21.837430Z",
|
|
"state": "failed",
|
|
"name": "pulp_rpm.app.tasks.synchronizing.synchronize",
|
|
"started_at": "2020-07-27T02:45:21.946955Z",
|
|
"finished_at": "2020-07-27T02:45:23.890341Z",
|
|
"error": {
|
|
"traceback": " File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 883, in perform_job
|
|
rv = job.perform()
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 657, in perform
|
|
self._result = self._execute()
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 663, in _execute
|
|
return self.func(*self.args, **self.kwargs)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 208, in synchronize
|
|
dv.create()
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 140, in create
|
|
with self.repository.new_version() as new_version:
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulp_rpm/app/models/repository.py\", line 105, in new_version
|
|
version.save()
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/base.py\", line 741, in save
|
|
force_update=force_update, update_fields=update_fields)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/base.py\", line 779, in save_base
|
|
force_update, using, update_fields,
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/base.py\", line 870, in _save_table
|
|
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/base.py\", line 908, in _do_insert
|
|
using=using, raw=raw)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/manager.py\", line 82, in manager_method
|
|
return getattr(self.get_queryset(), name)(*args, **kwargs)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/query.py\", line 1186, in _insert
|
|
return query.get_compiler(using=using).execute_sql(return_id)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/sql/compiler.py\", line 1375, in execute_sql
|
|
cursor.execute(sql, params)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/utils.py\", line 67, in execute
|
|
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/utils.py\", line 76, in _execute_with_wrappers
|
|
return executor(sql, params, many, context)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/utils.py\", line 84, in _execute
|
|
return self.cursor.execute(sql, params)
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/utils.py\", line 89, in __exit__
|
|
raise dj_exc_value.with_traceback(traceback) from exc_value
|
|
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/utils.py\", line 84, in _execute
|
|
return self.cursor.execute(sql, params)
|
|
",
|
|
"description": "duplicate key value violates unique constraint \"core_repositoryversion_repository_id_number_3c54ce50_uniq\"
|
|
DETAIL: Key (repository_id, number)=(0a1b8ed3-e48c-4baf-870a-45d49271d542, 1) already exists.
|
|
"
|
|
},
|
|
"worker": "/pulp/api/v3/workers/3368eafd-81e6-4265-a6b0-1d232da9f59d/",
|
|
"parent_task": null,
|
|
"child_tasks": [],
|
|
"task_group": null,
|
|
"progress_reports": [],
|
|
"created_resources": [],
|
|
"reserved_resources_record": [
|
|
"/pulp/api/v3/remotes/rpm/rpm/ed91462a-90fe-41b6-8bd2-9a57045a10a0/",
|
|
"/pulp/api/v3/repositories/rpm/rpm/0a1b8ed3-e48c-4baf-870a-45d49271d542/"
|
|
]
|
|
}
|