Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-11-2017, 03:09 PM   #1
LQ Newbie
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
Wink BZ2 Compressed Files are getting corrupted

We are running a website that produces output files that are .csv files that are BZ2 Compressed Files. Personally I have not had much of an issue with these files, which are never larger than 40 Mb usually ~ 1 Mb in size. But lately some customers have complained that the files won't decompress but we have been using the same PERL script for years, which executes this linux commnand: tar cjCf BZ2FILENAME TEXTFILENAME
Old 01-11-2017, 04:36 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
So the customers are downloading the bz2 compressed csv from the website?

Are they doing an ftp for the transfer and turning on binary mode for that? If not how is the file being transferred?

Does it save the file locally so you can check it with commands like "file" and "tar tvf" to see if the saved copy is corrupted?

Have you asked the customer to send you one of the files they say is corrupted to run commands like "file" and "tar tvf" on the copy they got and/or run md5sum or cksum against the copy you have and the one they have?

Have you verified the path of the tar command they're using as opposed to the one used to create it. Some 3rd party backup products like NetBackup actually provided modified versions of tar so can cause issues when you use that binary as opposed to the default Linux one. Also of course there are different versions of tar as time goes by.
Old 01-12-2017, 01:58 PM   #3
LQ Newbie
Registered: Jan 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile Download type

Thanks for getting back to me so fast. The files are downloaded through the browser. We had been doing that way for years but all of a sudden in the last couple of months, we are having issues with some people unpacking the files


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting files...installing files.....from *.tar.bz2 and *ipk vinodhkumarvk Linux - Newbie 19 02-27-2013 03:29 AM
Convert many files to individual .bz2 files retaining original name? touser Linux - Newbie 5 03-29-2010 01:58 AM
Missing or corrupted compressed kernel file arpflux Linux - Kernel 2 03-08-2007 01:45 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 09:36 AM
corrupted bz2's .... hdd problem? SiQDiZ Slackware 7 06-04-2003 02:47 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration