Importing a manifest on Red Hat Satellite 6 fails with error unable to extract export archive.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.X.

Issue

  • Manifest from customer portal fails while importing it into the Red Hat Satellite server WebUI >> Content >> Red Hat Subscription >> Manage Manifest >> Browse and Upload.

    Manifest upload failed with error :
     Caused by: org.candlepin.sync.ImportExtractionException
    

Resolution

  • Ensure that the Manifest is exported in .zip format from the Customer Portal.

  • Try exporting it from other Geographical location or from any other system.

  • Try with different web browsers.

  • Check if there is any antivirus or network scanner running which can corrupt/modify the manifest, try disabling it before downloading and importing the manifest.

  • The local system that is downloading the manifest could be causing the corruption. In this case, try downloading the manifest directly to the Satellite server using the following command.

    # curl -vku USER 'https://subscription.rhsm.redhat.com/subscription/consumers/UUID/export' > manifest.zip
    

    Replace USER and UUID before executing the command. USER is the Customer Portal user that has permission to access the subscription allocation. UUID is the UUID value displayed on the customer portal page of the specific subscription allocation.

    Try uploading the manifest again using the following command.

    # hammer subscription upload --file PATH_TO_MANIFEST_FILE --organization "ORGANIZATION_LABEL"
    
  • Try exporting it by bypassing the Proxy or Firewall.

  • Try downloading the manifest in a different computer from a different network.

  • Check & clean if there are any paused error tasks on Red Hat Satellite server with the help of solution article.

  • Remove all the subscriptions from the manifest file on This content is not included.Red Hat Portal, add them again to the manifest file and export the manifest file on the Red Hat Satellite WebUI.

For more KB articles/solutions related to Red Hat Satellite 6.x Manifest Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Manifest Issues

Root Cause

The downloaded manifest is corrupted due to which caused the import failed.

Diagnostic Steps

Candlepin error log :

org.candlepin.async.JobExecutionException: Unable to extract export archive
        at org.candlepin.async.tasks.ImportJob.execute(ImportJob.java:245)
        at org.candlepin.async.JobManager.executeJob(JobManager.java:1271)
        at org.candlepin.async.JobMessageReceiver$MessageListener.handleMessage(JobMessageReceiver.java:350)
        at org.candlepin.messaging.impl.artemis.ArtemisConsumer$ArtemisMessageForwarder.onMessage(ArtemisConsumer.java:59)
        at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:972)
        at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1121)
        at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:58)
        at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:33)
        at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:69)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
Caused by: org.candlepin.sync.ImportExtractionException: Unable to extract export archive
        at org.candlepin.sync.Importer.unpackExportFile(Importer.java:844)
        at org.candlepin.sync.Importer.extractFromService(Importer.java:307)
        at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:56)
        at org.candlepin.sync.Importer.loadStoredExport(Importer.java:210)
        at org.candlepin.controller.ManifestManager.importStoredManifest(ManifestManager.java:220)
        at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:64)
        at org.candlepin.async.tasks.ImportJob.execute(ImportJob.java:229)
        ... 11 common frames omitted
Caused by: java.io.FileNotFoundException: /var/cache/candlepin/sync/import917499139745369789041892091351188/manifest_vsatapp01-2/signature (Not a directory)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187)
        at org.candlepin.sync.Importer.extractArchive(Importer.java:765)
        at org.candlepin.sync.Importer.unpackExportFile(Importer.java:839)
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.