invalid compressed data - - format violated (37 Views)
Reply
Occasional Contributor
Patrick_85
Posts: 8
Registered: ‎05-22-2003
Message 1 of 5 (37 Views)

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
Please use plain text.
Honored Contributor
curt larson_1
Posts: 764
Registered: ‎08-23-2002
Message 2 of 5 (37 Views)

Re: invalid compressed data - - format violated

did you specify a binary file when ftp'ing the file.
Please use plain text.
Honored Contributor
Jim Mallett
Posts: 519
Registered: ‎07-09-2001
Message 3 of 5 (37 Views)

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
Please use plain text.
Esteemed Contributor
Caesar_3
Posts: 952
Registered: ‎06-05-2003
Message 4 of 5 (37 Views)

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
Please use plain text.
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 5 of 5 (37 Views)

Re: invalid compressed data - - format violated

Best guess: The ftp transfer was not binary.
If it ain't broke, I can fix that.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation