Project

Profile

Help

Issue #4557

closed

Error on syncing file repo with remote

Added by sajha about 3 years ago. Updated about 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

Following the steps in the readme, I tried to sync a file repo with a remote and the spawned task gave me the follwing error in the progress report:
{
"_created": "2019-03-20T19:46:31.330602Z",
"_href": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"created_resources": [],
"error": {
"code": null,
"description": "insert or update on table \"core_contentartifact\" violates foreign key constraint \"core_contentartifact_artifact_id_f5d9a66b_fk_core_artifact__id\"\nDETAIL: Key (artifact_id)=(f5d1d272-a277-4103-ac05-55cffbdc5b4c) is not present in table \"core_artifact\".\n",
"traceback": " File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 799, in perform_job\n rv = job.perform()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 600, in perform\n self._result = self._execute()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 606, in _execute\n return self.func(*self.args, **self.kwargs)\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulp_file/app/tasks/synchronizing.py\", line 43, in synchronize\n dv.create()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 150, in create\n loop.run_until_complete(pipeline)\n File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 468, in run_until_complete\n return future.result()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 204, in create_pipeline\n await asyncio.gather(*futures)\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 43, in call\n await self.run()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/plugin/stages/content_stages.py\", line 143, in run\n await self._post_save(batch)\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/transaction.py\", line 212, in exit\n connection.commit()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/base/base.py\", line 261, in commit\n self._commit()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/base/base.py\", line 239, in _commit\n return self.connection.commit()\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/utils.py\", line 89, in exit\n raise dj_exc_value.with_traceback(traceback) from exc_value\n File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/backends/base/base.py\", line 239, in _commit\n return self.connection.commit()\n"
},
"finished_at": "2019-03-20T19:46:31.792541Z",
"name": "pulp_file.app.tasks.synchronizing.synchronize",
"non_fatal_errors": [],
"parent": null,
"progress_reports": [
{
"done": 1,
"message": "Downloading Metadata",
"state": "completed",
"suffix": "",
"task": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"total": 1
},
{
"done": 0,
"message": "Downloading Artifacts",
"state": "completed",
"suffix": "",
"task": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"total": null
},
{
"done": 0,
"message": "Associating Content",
"state": "canceled",
"suffix": "",
"task": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"total": null
},
{
"done": 0,
"message": "Un-Associating Content",
"state": "canceled",
"suffix": "",
"task": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"total": null
},
{
"done": 3,
"message": "Parsing Metadata",
"state": "completed",
"suffix": "",
"task": "/pulp/api/v3/tasks/9a09e940-4127-4cdf-9427-3b997a77f677/",
"total": 3
}
],
"spawned_tasks": [],
"started_at": "2019-03-20T19:46:31.468792Z",
"state": "failed",
"worker": "/pulp/api/v3/workers/7b12e732-4fe6-4bc2-9c50-9a6f93863f08/"
}

Using 3.0.0b22 pulpcore and 0.0.1b8 pulp_file

Actions #1

Updated by daviddavis about 3 years ago

I think this was fixed recently here:

https://github.com/pulp/pulpcore-plugin/commit/a420f2bf8d534486d21f39308d4dbd429dc8f33e

If you update pulp_file, you should get this fix. Can you test and confirm?

Actions #2

Updated by sajha about 3 years ago

Confirming that the fix is in latest source sandbox. Thanks!

Actions #3

Updated by daviddavis about 3 years ago

  • Status changed from NEW to CLOSED - CURRENTRELEASE
Actions #4

Updated by ggainey about 2 years ago

  • Tags Katello added
  • Tags deleted (Katello-P1)

Also available in: Atom PDF