Project

Profile

Help

Issue #7208

closed

Error during sync : Path is duplicated

Added by ipanova@redhat.com over 3 years ago. Updated over 2 years ago.

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

Description

Sync repo http://ftp.cs.stanford.edu/centos/7/opstools/x86_64/ and observe traceback

$ http GET $BASE_ADDR/pulp/api/v3/tasks/91ae8e5d-bb4f-4151-a5c3-d24a3c04d81e/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 2558
Content-Type: application/json
Date: Fri, 24 Jul 2020 10:42:54 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [],
    "error": {
        "description": "Cannot create repository version. Path is duplicated: rubygem-elasticsearch-doc-1.0.8-1.el7.noarch.rpm.",
        "traceback": "  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 886, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 664, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 670, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py\", line 206, in synchronize\n    dv.create()\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/declarative_version.py\", line 148, in create\n    loop.run_until_complete(pipeline)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py\", line 775, in __exit__\n    repository.finalize_new_version(self)\n  File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/models/repository.py\", line 145, in finalize_new_version\n    validate_repo_version(new_version)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py\", line 141, in validate_repo_version\n    validate_version_paths(version)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py\", line 128, in validate_version_paths\n    raise ValueError(_(\"Cannot create repository version. {err}.\").format(err=e))\n"
    },
    "finished_at": "2020-07-24T10:40:27.431030Z",
    "name": "pulp_rpm.app.tasks.synchronizing.synchronize",
    "parent_task": null,
    "progress_reports": [
        {
            "code": "downloading.metadata",
            "done": 4,
            "message": "Downloading Metadata Files",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "downloading.artifacts",
            "done": 0,
            "message": "Downloading Artifacts",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "associating.content",
            "done": 1069,
            "message": "Associating Content",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "parsing.packages",
            "done": 1069,
            "message": "Parsed Packages",
            "state": "completed",
            "suffix": null,
            "total": 1069
        }
    ],
    "pulp_created": "2020-07-24T10:40:14.425149Z",
    "pulp_href": "/pulp/api/v3/tasks/91ae8e5d-bb4f-4151-a5c3-d24a3c04d81e/",
    "reserved_resources_record": [
        "/pulp/api/v3/remotes/rpm/rpm/57f994cf-4caf-4c37-b631-0eefdab2b8a1/",
        "/pulp/api/v3/repositories/rpm/rpm/9da9008b-937b-468a-bbaa-f3786b4b7b15/"
    ],
    "started_at": "2020-07-24T10:40:14.597862Z",
    "state": "failed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/9ab80819-e321-4187-83ef-4d8adafd3d80/"
}

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 _scripts]$ 

Related issues

Related to Pulp - Issue #8133: Same package from different repos yields error on syncCLOSED - CURRENTRELEASEggaineyActions
Has duplicate RPM Support - Issue #8043: ValueError: Path is duplicated when syncing http://mirror.centos.org/centos/7/opstools/x86_64/CLOSED - DUPLICATEActions
Has duplicate RPM Support - Issue #7507: Pulp RPM 3.6.2 - ValueError: Cannot create repository version. Path is duplicatedCLOSED - DUPLICATEActions
Copied to RPM Support - Backport #9192: Backport #7208 "Error during sync : Path is duplicated" to 3.14.zCLOSED - CURRENTRELEASEdalley

Actions
Copied to RPM Support - Backport #9285: Backport 'Error during sync : Path is duplicated' to 3.11.zCLOSED - CURRENTRELEASEttereshc

Actions

Also available in: Atom PDF