Operating System - HP-UX
1753614 Members
6045 Online
108797 Solutions
New Discussion юеВ

invalid compressed data - - format violated

 
Patrick_85
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 4
curt larson_1
Honored Contributor

Re: invalid compressed data - - format violated

did you specify a binary file when ftp'ing the file.
Jim Mallett
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
Caesar_3
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
A. Clay Stephenson
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.