LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2013, 01:20 AM   #1
conflicker
Member
 
Registered: Sep 2011
Posts: 89

Rep: Reputation: Disabled
tar exiting with failure due to previous errors


Hi everybody, I have a 13G backup of a cpanel account, I was trying to extract the backup but then an error occurred saying "tar exiting with failure due to previous errors". 2G of the tarball has been extracted except for the homedir directory where all my web files was stored.

Is there another way to extract this huge tarball? Thanks for your help.

I am runing CentOS release 6.4 (Final) server and whm/cpanel in it.
 
Old 11-15-2013, 03:31 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
The tar exiting with failure due to previous errors is shown at the end to tell the user that an error occurred, the error itself should also be present somewhere.

Did you use the -v flag (tar xvf your.tar) and did you notice the actual error? If so, what was the error?

Without any info about the actual error we can only guess what went wrong (tarbal is corrupt?, no more space left?).
 
Old 11-15-2013, 05:06 AM   #3
conflicker
Member
 
Registered: Sep 2011
Posts: 89

Original Poster
Rep: Reputation: Disabled
I used the command
Quote:
tar -zxvf myfile.tar.gz
There is no error before "The tar exiting with failure due to previous errors" showed up. I'm thinking that some files inside the compressed file is corrupted. Is there a way to tell tar to ignore if there's any corrupt files?
 
Old 11-15-2013, 05:16 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
I don't think tar cares about the files inside the archive, tar does care if the archive itself is corrupt.

Maybe this will get some more info:
Code:
tar --index-file=tar.check.out -xvf myfile.tar.gz
The --index-file=tar.check.out part creates a file named tar.check.out that might contain some valuable info.
 
Old 11-17-2013, 10:16 AM   #5
conflicker
Member
 
Registered: Sep 2011
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
tar --index-file=tar.check.out -xvf myfile.tar.gz
Is not working. However, I tried to download the tarball into my local machine which runs windows xp and extract using some external extracting software. It seems the backup is corrupted, but I'm just wondering why the tarball size is 13G if it is corrupted, that means my files still inside the tarball.

Is there any other solution to fix a corrupt tarball?
 
Old 11-17-2013, 10:46 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Quote:
Originally Posted by conflicker View Post
Code:
tar --index-file=tar.check.out -xvf myfile.tar.gz
Is not working.
That doesn't tell us anything. What is not working?

- Is tar.check.out not created?
- Are there no clues in tar.check.out?
- Is tar complaining about the --index-file part?
- ?????

Quote:
It seems the backup is corrupted, but I'm just wondering why the tarball size is 13G if it is corrupted, that means my files still inside the tarball.

Is there any other solution to fix a corrupt tarball?
Not that I know of.

If you try to extract, are there any files extracted at all? Are you able to list the files in the archive (tar tvf myfile.tar.gz).
 
Old 11-17-2013, 11:13 AM   #7
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
@conflicker

If you are getting error message "tar exiting with failure due to previous errors", then there WILL be a previous error message. probably it scrolled up the screen, and you didn't see it.

Try double verbose and error redirection
Code:
tar -xzvvf myfile.tar.gz 2> error.txt
 
  


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
tar: Error exit delayed from previous errors menator Linux - Newbie 13 12-19-2013 07:43 PM
tar:Error exit delayed from previous errors csegau Linux - Newbie 2 12-06-2010 11:26 AM
tar: Error exit delayed from previous errors flyscan Linux - Software 3 05-18-2007 12:22 AM
tar: exit delayed from previous errors thuggette18 Linux - Newbie 5 03-12-2007 07:16 AM
tar: Error exit delayed from previous errors madenan Linux - Software 0 08-06-2003 03:38 PM


All times are GMT -5. The time now is 08:06 PM.

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