Project

Profile

Help

Issue #8028

closed

Cannot sync Ubuntu repositories

Added by nhavens almost 4 years ago. Updated almost 3 years ago.

Status:
CLOSED - WORKSFORME
Priority:
Low
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

With the following remote configuration, I'm unable to sync to a pulp repository:

{
  "pulp_href": "/pulp/api/v3/remotes/deb/apt/d5143b62-3f97-4f10-a466-734dcd4d5146/",
  "pulp_created": "2020-12-29T02:49:24.689377Z",
  "name": "ubuntu",
  "url": "http://mirror.us.leaseweb.net/ubuntu",
  "ca_cert": null,
  "client_cert": null,
  "client_key": null,
  "tls_validation": true,
  "proxy_url": null,
  "username": null,
  "password": null,
  "pulp_last_updated": "2020-12-29T03:06:33.546708Z",
  "download_concurrency": 10,
  "policy": "immediate",
  "total_timeout": null,
  "connect_timeout": null,
  "sock_connect_timeout": null,
  "sock_read_timeout": null,
  "distributions": "bionic bionic-backports bionic-proposed bionic-security bionic-updates",
  "components": null,
  "architectures": "amd64 i386",
  "sync_sources": false,
  "sync_udebs": true,
  "sync_installer": true,
  "gpgkey": null,
  "ignore_missing_package_indices": false

I get the following error message:

Dec 28 21:32:42 pulp-server rq[48697]: psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "core_artifact_sha256_key"    
Dec 28 21:32:42 pulp-server rq[48697]: DETAIL:  Key (sha256)=(e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855) already exists.

If I subsequently patch the remote to set ignore_missing_package_indices=true, the sync also fails, but with a different error message:

Dec 28 21:36:19 pulp-server rq[48741]: psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "core_contentartifact_content_id_relative_path_d2ef8231_uniq"
Dec 28 21:36:19 pulp-server rq[48741]: DETAIL:  Key (content_id, relative_path)=(6bfcee15-6b12-4c36-831d-9b34d1dc9cf8, dists/bionic-backports) already exists.

I'd be happy to provide full stack traces if that would be helpful.


Related issues

Related to Debian Support - Issue #6920: Pulp 3 - pulp-deb : Issue synchronizing bullseye-security repoCLOSED - WORKSFORMEActions

Also available in: Atom PDF