Article ID: 118549, created on Nov 11, 2013, last review on Aug 12, 2014

  • Applies to:
  • Plesk Automation

Symptoms

I started migration, but it failed with the following error:

File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file
[ERROR] | Unexpected error: 'Not a gzipped file', migration is aborted. See the traceback above for more information.

Cause

The issue is caused by a bug in python "zipfile" library.

Resolution

  1. Backup original file:

    cp /usr/lib/python2.7/zipfile.py /usr/lib/python2.7/zipfile.py.orig
    
  2. Download attached zipfile.py.patch and apply it to your system:

    wget https://kb.odin.com/Attachments/kcs-14814/zipfile.py.patch
    patch /usr/lib/python2.7/zipfile.py zipfile.py.patch
    

NOTE: It might be needed to install "patch" utility: yum install patch

Search Words

Not a gzipped file

migration is aborted

e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF