oc-mirror fails with error "opening next file: unexpected EOF" in RHOCP 4

Solution Verified - Updated -

Issue

  • oc mirror fails to sync, generated tar to internal registry with following error:

     Checking push permissions for internal-registry-url:8443
     Publishing image set from archive "mirror/mirror_seq_000000.tar" to registry "internal-registry-url:8443"
     Unarchiving metadata into oc-mirror-workspace/images.2245
     error: opening next file: unexpected EOF
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.15
  • oc-mirror plugin
  • Disconnected environment

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