oc-mirror command is failing with one or more errors occurred while uploading images

Solution Verified - Updated -

Issue

  • While mirroring the RHOCP container images for air-gapped deployments, it fails with below errors.

    time="2025-02-12T03:32:18Z" level=debug msg="Reading blob body from https://quay.io/v2/openshift-release-dev failed (&errors.errorString{s:\"unexpected EOF\"}), decision inputs: total 8388608 @617.468 ms, last retry -1 @NaN ms, last progress @0.311 ms"
    time="2025-02-12T16:08:49Z" level=debug msg="Error pulling candidate quay.io/openshift-release-dev: reading blob sha256:xxxxxxx Digest did not match, expected sha256:xxxxxxx, got sha256:xxxxxxx" Error: reading blob sha256:xxxxxxx: Digest did not match, expected sha256:xxxxxxx, got sha256:xxxxxxx
    ERROR: failed attempt 16941 of quay.io/openshift-release-dev
    Error: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:xxxxxxx image not known
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content