Project

Profile

Help

Issue #6312

Updated by CodeHeeler over 4 years ago

After downloading the fox rpm and creating an artifact, attempting to create content yields an error: 

 ``` 
 { 
     "created_resources": [], 
     "error": { 
         "description": "{'non_field_errors': [ErrorDetail(string='There is already a package with: arch=noarch, checksum_type=sha256, epoch=0, name=fox, pkgId=eff95a379774c7622037bcb7ff347271dc727ae4ddce9b16017477b58488aa3e, release=2, version=1.1.', code='invalid')]}", 
         "traceback": "    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/worker.py\", line 884, in perform_job\n      rv = job.perform()\n    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 664, in perform\n      self._result = self._execute()\n    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rq/job.py\", line 670, in _execute\n      return self.func(*self.args, **self.kwargs)\n    File \"/home/vagrant/devel/pulpcore/pulpcore/app/tasks/base.py\", line 17, in general_create\n      serializer.is_valid(raise_exception=True)\n    File \"/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/serializers.py\", line 243, in is_valid\n      raise ValidationError(self.errors)\n" 
     }, 
     "finished_at": "2020-03-09T20:03:31.042872Z", 
     "name": "pulpcore.app.tasks.base.general_create", 
     "progress_reports": [], 
     "pulp_created": "2020-03-09T20:03:30.816710Z", 
     "pulp_href": "/pulp/api/v3/tasks/0b8877d7-da6c-4688-9ef7-7d83e51c638d/", 
     "reserved_resources_record": [ 
         "/pulp/api/v3/artifacts/b1780a31-2f7e-4a34-b0d3-ec75df8f4e57/" 
     ], 
     "started_at": "2020-03-09T20:03:30.938317Z", 
     "state": "failed", 
     "worker": "/pulp/api/v3/workers/b08d8807-b42f-4b9a-9fc7-bdec7231f0a5/" 
 } 
 ```

Back