LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-11-2017, 02:09 PM   #1
Jakealope
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, 03:36 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,805
Blog Entries: 14

Rep: Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069
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, 12:58 PM   #3
Jakealope
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
 
  


Reply


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 02:29 AM
Convert many files to individual .bz2 files retaining original name? touser Linux - Newbie 5 03-29-2010 12:58 AM
Missing or corrupted compressed kernel file arpflux Linux - Kernel 2 03-08-2007 12:45 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
corrupted bz2's .... hdd problem? SiQDiZ Slackware 7 06-04-2003 01:47 AM


All times are GMT -5. The time now is 02:42 AM.

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