General
Showing results for 
Search instead for 
Do you mean 

invalid compressed data - - format violated

Occasional Contributor

invalid compressed data - - format violated

Hello, I run a cron job that tar's, compresses (using gzip)and ftp's the .gz file to an ftp server. The tar file contains a small database and a series of files and directories. When I try to gunzip the .gz file I get the following error....

"invalid compressed data - - format violated"

Any ideas why?

Running HP-UX 11.00.

Thank you
4 REPLIES
Honored Contributor Honored Contributor

Re: invalid compressed data - - format violated

did you specify a binary file when ftp'ing the file.
Honored Contributor Honored Contributor

Re: invalid compressed data - - format violated

Be sure to specify binary in your FTP script.
You can either have a line with:
binary or
bin

I believe it is the default though.

Hindsight is 20/20
Esteemed Contributor Esteemed Contributor

Re: invalid compressed data - - format violated

Hello!

Try to made the whole process that you
making in cron.
Compress the file with the command/script
what you use, after try to unzip it ans see
if you have problems.
If no problems continue to check the ftp
and after you transfer the file unzip it
ans see if you have problem so it's the
transfer via ftp, check the configuration
of ftp transfer (binary method not ascii)

Caesar
Acclaimed Contributor Acclaimed Contributor

Re: invalid compressed data - - format violated

Best guess: The ftp transfer was not binary.
If it ain't broke, I can fix that.