The Samba-Bugzilla – Bug 11560
download ccache-3.2.4.tar.gz invalid gzip file
Last modified: 2015-10-19 20:39:31 UTC
I have shell script which installs ccache but when it downloads it, the tarbal gzipped file ends up invalid
Download ccache-3.2.4.tar.gz ...
ccache 3.2.4 Archive found, skipping download...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: ccache-3.2.4.tar.gz extraction failed.
On centos 6.7 64bit
when i manually download it to my windows 8 pc, similar thing is notice a drastic difference in size of the 3.2.4 tarball file
ccache-3.2.2.tar.gz downloaded on windows 8 is 427KB in size
ccache-3.2.4.tar.gz downloaded on windows 8 is 1730KB in size
To confirm, I extracted ccache-3.2.4.tar.gz contents via windows 7zip app, and re-tar'd it + re-gzipped and now ccache-3.2.4.tar.gz is 387KB in size and my shell script downloads the file and extracts it properly.
My guess is that your shell script somehow doesn't handle http redirects properly. http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz redirects to https://samba.org/ftp/ccache/ccache-3.2.4.tar.gz which redirects to https://www.samba.org/ftp/ccache/ccache-3.2.4.tar.gz. What happens if you download the third URL instead?
The archive is correct, so closing the bug.
I have changed the download links to refer directly to https://www.samba.org/ftp/ccache/ instead, however.