Support Center > Search Results > SecureKnowledge Details
Migrate-import-domain failed with the error "Failed: Error detected parsing the header" Technical Level
Symptoms
  • Domain import to the Multi-Domain Server failed on 100% with error "Failed: Error detected parsing the header"
  • When trying to extract the export file locally on our windows client, this message shows: "the file is corrupt"
  • The $MDS_FWDIR/log/api.elg file of the Multi-Domain Server shows this output:
    comments: "Failed: Error detected parsing the header"
      color: "black"
      icon: "General/globalsNa"
      tags: []
      meta-info: 
        lock: "unlocked"
        validation-state: "ok"
        last-modify-time: 
          posix: 1628077469907
          iso-8601: "2021-08-04T12:44+0100"
        last-modifier: "System"
        creation-time: 
          posix: 1628077469269
          iso-8601: "2021-08-04T12:44+0100"
        creator: "System"
      read-only: false 
  • The $MDS_FWDIR/log/cpm.elg file of the Multi-Domain Server shows this output:
     03/08/21 16:35:45,320 ERROR upgrade.ngmImport.MigrateImportDomainTask [taskExecutor-36]: Domain migration failed for domain  - (id:null)
    java.io.IOException: Error detected parsing the header
    	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:249)
    	at com.checkpoint.infrastructure.utils.TarGzArchiver.extractTar(TarGzArchiver.java:50)
    	at com.checkpoint.management.upgrade.ngmImport.MigrateImportDomainTask.extractFile(MigrateImportDomainTask.java:89)
    	at com.checkpoint.management.upgrade.ngmImport.MigrateImportDomainTask.runTask(MigrateImportDomainTask.java:196)
    	at com.checkpoint.management.upgrade.common.impl.VersionIndependentUnattendedTask.run(VersionIndependentUnattendedTask.java:11)
    	at com.checkpoint.management.coresvc.CPRunnable.run(CPRunnable.java:2)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    	at java.lang.Thread.run(Thread.java:820)
    Caused by: java.lang.IllegalArgumentException: Invalid byte 83 at offset 0 in 'Sing.upa' len=8
    	at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:142)
    	at org.apache.commons.compress.archivers.tar.TarUtils.parseOctalOrBinary(TarUtils.java:173)
    	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:951)
    	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:940)
    	at org.apache.commons.compress.archivers.tar.TarArchiveEntry.(TarArchiveEntry.java:324)
    	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:247)
    	... 8 more 
Cause

When extracting the exported file, the $MDS_FWDIR/log/cpm.elg file shows an exception which indicates an issue with the exported file:

at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:249)
    at com.checkpoint.infrastructure.utils.TarGzArchiver.extractTar(TarGzArchiver.java:50)

    at com.checkpoint.management.upgrade.ngmImport.MigrateImportDomainTask.extractFile(MigrateImportDomainTask.java:89)


Caused by: java.lang.IllegalArgumentException: Invalid byte 83 at offset 0 in 'Sing.upa' len=8
    at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:142)
    at org.apache.commons.compress.archivers.tar.TarUtils.parseOctalOrBinary(TarUtils.java:173)
    at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:951)
    at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:940)
    at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:324)
    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:247)



Solution
Note: To view this solution you need to Sign In .