Gunzip Crc Length Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers gzip data stream error or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Gunzip Invalid Compressed Data--crc Error
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it
Gzip Invalid Compressed Data--length Error
only takes a minute: Sign up gunzip after Automatic ftp crc length error up vote 0 down vote favorite I am facing an crc error/length error on .gz file of a file to server. While manually retrieving the file, I
Gzip Crc
am getting a size 1932 bytes and gunzips fine without any problem. But when I retrieve it through a shell script, the file arriving is 1931 bytes. Funny part is I am ftping 3 files and 2 of them are arriving correctly. This is how I automated it : echo "user $username $password" > $BATCH echo "get reston.txt.gz reston.txt.gz" >> $BATCH echo "get tuffnel.txt.gz tuffnel.txt.gz" >> $BATCH echo "get atlanta.txt.gz atlanta.txt.gz" >> $BATCH echo "exit" >> $BATCH ftp -n -v gzip: stdin: invalid compressed data--length error $ipaddress < $BATCH > $LOG then gunzip *.txt.gz tuffnel, atlanta works fine, reston wont gunzip unless downloaded manually. Thanks in advance, Lebu linux unix ftp gunzip share|improve this question edited Jun 22 '12 at 14:03 asked Jun 22 '12 at 13:42 Lordlebu 911211 Maybe FTP defaults to ascii mode? try "BIN" as the first command. –wildplasser Jun 22 '12 at 13:46 Try using wget or curl to download a file via FTP. They are better designed for file download. –dAm2K Jun 22 '12 at 13:47 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Maybe FTP defaults to ASCII/text mode? try "BIN" as the first command: echo "user $username $password" > $BATCH echo "BIN" >> $BATCH echo "get reston.txt.gz reston.txt.gz" >> $BATCH echo "get tuffnel.txt.gz tuffnel.txt.gz" >> $BATCH echo "get atlanta.txt.gz atlanta.txt.gz" >> $BATCH echo "exit" >> $BATCH ftp -n -v $ipaddress < $BATCH > $LOG share|improve this answer edited Jun 23 '12 at 12:27 answered Jun 22 '12 at 13:47 wildplasser 24.3k22748 no luck yet, invalid compressed data--crc error –Lordlebu Jun 22 '12 at 14:11 does changing the order of files sent change the file that has the error? If its the last file in the group that always fails, then maybe you can add a dummy file as the last one? Good luck. –shellter Jun 22 '12 at 14:36 add a comment| Your Answ
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with gzip invalid compressed data--format violated us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange repair gzip file is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's gzrecover how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error with a .gz file decompression in Mint, but works perfectly in Windows, so the file is not corrupt up http://stackoverflow.com/questions/11157355/gunzip-after-automatic-ftp-crc-length-error vote 2 down vote favorite I've downloaded some .csv files from the OECD Stats website, since I need them to plot some graphs with gnuplot. When I open them with File Roller 3.4.1 (the default program to handle archive files), there's a file that seems empty (0 byte). When I try on the terminal, I get: gunzip Financial\ Indicators\ –\ Stocks.gz gzip: Financial Indicators – Stocks.gz: invalid compressed data--length error gzip: Financial Indicators – Stocks.gz has more than one entry -- unchanged So the file seems http://unix.stackexchange.com/questions/101254/error-with-a-gz-file-decompression-in-mint-but-works-perfectly-in-windows-so corrupted, but I sent it to a friend who uses Windows. He extracted the file on his computer and sent me the output: it's a zip files which, in turn, contains two .csv files. So the file is not corrupt, there must be a problem with the packages used to handle them. Any suggestion? compression gzip share|improve this question edited Nov 19 '13 at 13:27 Zelda 3,9621023 asked Nov 15 '13 at 11:25 Luigi 15128 1 Run file Financial\ Indicators\ –\ Stocks.gz, to see what's actually there. –angus Nov 15 '13 at 11:28 The output is: Financial Indicators – Stocks.gz: Zip archive data, at least v3.0 to extract –Luigi Nov 15 '13 at 11:35 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted If it is a zip then the file extension is wrong, and you can not use gunzip. If it contains 2 files then it is not a gzip file, gunzip works with single files, it just compresses, sometimes we use it with tar to combine file. It may be zip or tarred zip .taz Use file command to find out. If zip You need unzip. Also if zip change the file extension, as some tools may use this to detect file type. share|improve this answer edited Feb 23 '14 at 20:50 answered Nov 15 '13 at 11:30 richard 5,27311334 The output of file is: Financial Indicators – Stocks.gz: Zip archive data, at least v3.0 to extract Now I'll try with unzip –Lu
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive https://www.experts-exchange.com/questions/26930430/gzip-stdin-invalid-compressed-data-crc-error.html Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live https://www.kaggle.com/c/avazu-ctr-prediction/forums/t/10779/error-occured-when-i-tried-to-extract-the-file-train-rev1-gz Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > gzip: stdin: invalid compressed data--crc error Want to Advertise Here? Solved gzip: stdin: invalid invalid compressed compressed data--crc error Posted on 2011-04-03 Linux OS Dev 1 Verified Solution 6 Comments 5,340 Views Last Modified: 2012-05-11 I am trying to open file and i am getting the following error. could you please advise $ tar xvfz examples.tar.gz ch01_hello tar: Skipping to next header tar: Archive contains obsolescent base-64 headers gzip: stdin: invalid compressed gzip invalid compressed data--crc error gzip: stdin: invalid compressed data--length error tar: Child returned status 1 tar: Error exit delayed from previous errors 0 Question by:sumanth_ora Facebook Twitter LinkedIn Google LVL 31 Best Solution byfarzanj As I said before, it may be corrupted file. Try gunzip Also try If that does not work too, you can try recovering some data by Go to Solution 6 Comments LVL 31 Overall: Level 31 Linux OS Dev 10 Message Expert Comment by:farzanj2011-04-03 Appears that the file is corrupt. Please issue the following as well tar tvf example.tar.gz See what you get You can also try with tar tvfz example.tar.gz But I think the tar archive is corrupted 0 LVL 31 Overall: Level 31 Linux OS Dev 10 Message Expert Comment by:farzanj2011-04-03 Another thing. Please try this gzip -d file.tar.gz and then do tar -xf file.tar 0 Message Author Comment by:sumanth_ora2011-04-06 No Luck $ gzip -d examples.tar.gz gzip: examples.tar.gz: invalid compressed data--crc error gzip: examples.tar.gz: invalid compressed data--length error
Tue 18 Nov 2014 – Mon 9 Feb 2015 (20 months ago) Dashboard ▼ Home Data Make a submission Information Description Evaluation Rules Prizes Timeline Forum Leaderboard Public Private Competition Forum All Forums » Click-Through Rate Prediction Error occured when I tried to extract the file train_rev1.gz Start Watching « Prev Topic » Next Topic 0 votes gzip gave the following message: gzip: train_rev1.gz: invalid compressed data--crc error gzip: train_rev1.gz: invalid compressed data--length error can anybody help me? #1 | Posted 23 months ago Permalink Tyrion Posts 1 Joined 5 Apr '12 | Email User 0 votes Not sure about your errors, but I can confirm that I downloaded and extracted it (with gzip) with no problems. #2 | Posted 23 months ago Permalink Tim Evans Posts 7 | Votes 3 Joined 26 Jul '11 | Email User 0 votes I downloaded the filetrain_rev1.gz, the decompression was OK #3 | Posted 23 months ago Permalink Steve Wang Competition Admin Posts 35 | Votes 59 Joined 17 Sep '14 | Email User 1 vote gunzip train_rev1.gz #4 | Posted 23 months ago Permalink rcarson Competition 60th | Overall 13th Posts 740 | Votes 1089 Joined 9 May '13 | Email User Reply You must be logged in to reply to this topic. Log in » Flagging notifies Kaggle that this message is spam, inappropriate, abusive, or violates rules. Do not use flagging to indicate you disagree with an opinion or to hide a post. Start Watching « Back to forum © 2016 Kaggle Inc Our Team Careers Terms Privacy Contact/Support