> Source: [sk114334](https://support.checkpoint.com/results/sk/sk114334)

# sk114334 - "migrate import" operation fails with "invalid compressed data--crc error" and "invalid compressed data--length error" errors

| Property | Value |
|----------|-------|
| Solution ID | sk114334 |
| Date Created | 2017-01-02 |
| Last Modified | 2017-02-12 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- * The "`migrate import /path_to/mgmt_migrate_package.tgz`" command fails with:

  ```
  
  The import operation will eventually stop all Check Point services (cpstop).
  Do you want to continue? (y/n) [n]? y
  
  Extracting the database...
  
  gzip: mgmt_migrate.tgz.tar.gz: invalid compressed data--crc error
  
  gzip: mgmt_migrate.tgz.tar.gz: invalid compressed data--length error
  Execution finished with errors. See log file '/opt/CPshrd-RXX/log/migrate-YYYY.MM.DD_HH.MM.SS.log' for further details
  ```

* The */opt/CPshrd-RXX/log/migrate-YYYY.MM.DD_HH.MM.SS.log* file shows:

  ```
  
  ... ...
  [Date Time] [TgzExtractor::exec] Going to run command: '"/opt/CPsuite-RXX/fw1/bin/upgrade_tools/././/gzip" -d mgmt_migrate.tgz.tar.gz'
  [Date Time] [runShellCommand] Executing command: '"/opt/CPsuite-RXX/fw1/bin/upgrade_tools/././/gzip" -d mgmt_migrate.tgz.tar.gz'
  [Date Time] [runShellCommand] Execution result: 1, exit code: 1
  [Date Time] [TgzExtractor::exec] ERR: Execution failed
  ... ...
  ```

* When trying to manually unpack the "*mgmt_migrate_package.tgz*" package, the following errors are displayed:

  ```
  
  [Expert@HostName:0]# tar zxvf mgmt_migrate.tgz
  ... ...
  tar: Skipping to next header
  tar: Archive contains obsolescent base-64 headers
  
  gzip: stdin: invalid compressed data--crc error
  
  gzip: stdin: invalid compressed data--length error
  tar: Child returned status 1
  tar: Error exit delayed from previous errors
  [Expert@HostName:0]#
  ```

## Cause

The TGZ archive file was not transferred to the machine in a Binary format.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
