LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-06-2008, 02:57 PM   #1
duderancher
LQ Newbie
 
Registered: Oct 2005
Posts: 19

Rep: Reputation: 0
tar and gtar fail: Archive contains obsolescent base-64 headers


Tar and gtar are failing with the same error.

I am taking files from a 32 bit server, rsyncing them to a 64 bit server, and then running "tar cvzf filename" on them. That tar is seemingly created with no problems. However, when I try to extract the tar file, I get the following error.

"tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error exit delayed from previous errors"

The results are the same using gtar and tar. Also, It does not matter if the tar extraction is run on a 32 bit or 64 bit machine. It the tar/zip was created on the 64 bit server, it will still fail.

If I do not include the zip option when creating, I am able to extract without error.

However, the create and extract tar with zip option works fine on a 32 bit server. Also, I can create the tar on a 32 bit server and extract on a 64 bit server. This leaves a short list of possibilities. The 64 bit server cannot successfully tar and zip these files although it appears to complete with no problems.

The files I am trying to tar are a set of files generated by svn hotcopy on a 32 bit machine.

Any help would be appreciated

32 bit server is CentOS 4.4
64 bit server is CentOS 5

Thanks,
Dan

Last edited by duderancher; 03-06-2008 at 06:20 PM.
 
Old 03-07-2008, 08:22 AM   #2
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
Thats very strange, if I can I will test on my set up later and let you know how I get on, I would be going from Fedora 7 32bit to RHEL 5.1 64bit - please can you post your rsync syntax so I can do a fair test.

I have on another not done something much like this in the past few days but I used scp to move the data around and had no problems.
 
Old 03-07-2008, 01:40 PM   #3
duderancher
LQ Newbie
 
Registered: Oct 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for your interest. My rsync statement is below. It is run as part of a script call from cron.

rsync -acv -e "ssh -i /root/cron/thisserver-rsync-key -p 2020" $base_dir/$svn_db/* root@192.168.0.106:/data/svn/svn_tmp/

I have authroiztion keys set up for the script but it does not matter if I run the rsync by script or manually. The results of the failed tar with zip option remain consistent.

Thanks,
Dan
 
Old 03-10-2008, 09:35 AM   #4
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
Hi Dan, Sorry but the DB developers have now grabbed my 64bit server so I can't test for you at the moment Will do my best to get it back asap. Can I recommend you try scp for the file copy just to see if you have the same issue, it may narrow things down for us just as a test.
 
Old 03-12-2008, 02:25 PM   #5
duderancher
LQ Newbie
 
Registered: Oct 2005
Posts: 19

Original Poster
Rep: Reputation: 0
I used scp instead of rsync and received only slightly different results. The extraction process went significantly farther before it failed.

scp command:

scp -r -P 2020 ./* root@192.168.0.18:/tmp/test/


tar with zip command:

tar cvzf tarZipScp_liberty.tar.gz ./*


tar extract with unzip option:

tar xvzf tarZipScp_liberty.tar.gz

results (truncated):
./db/revprops/2017
./db/revprops/1001
./db/revprops/1810
./db/revprops/465
./db/revprops/154
./db/revprops/559
./db/revprops/821
./db/revprops/1454
./db/revprops/42
./db/revprops/878

gzip: stdin: invalid compressed data--crc error
./db/revprops/729
./db/revprops/1201
./db/revprops/2802
./db/revprops/400
./db/revprops/1114
./db/revprops/998
./db/revprops/2330
./db/revprops/3088
./db/revprops/2798
./db/revprops/2961
./db/revprops/13
./db/revprops/1796
./db/revprops/1592
./db/revprops/1862
./db/revprops/3673
./db/revprops/2612
./db/revprops/3593
./db/revprops/69
./db/revprops/2885
./db/revprops/2734
./db/revprops/1695
./db/revprops/2311
./db/revprops/1684
./db/revprops/2276
./db/revprops/1320
./db/revprops/2892
./db/revprops/2024
./db/revprops/2173
./db/uuid
./db/fs-type
./format
./hooks/
./hooks/post-commit.tmpl
./hooks/start-commit.tmpl
./hooks/pre-lock.tmpl
./hooks/post-revprop-change.tmpl
./hooks/pre-unlock.tmpl
./hooks/post-unlock.tmpl
./hooks/pre-commit.tmpl
./hooks/post-lock.tmpl
./hooks/pre-revprop-change.tmpl
./locks/
./locks/db-logs.lock
./locks/db.lock
./README.txt
tar: Child returned status 1
tar: Error exit delayed from previous errors


gzip test and list:

[root@liberty try_again]# gzip -tv tarZipScp_liberty.tar.gz
tarZipScp_liberty.tar.gz:
gzip: tarZipScp_liberty.tar.gz: invalid compressed data--crc error
[root@liberty try_again]# gzip -lv tarZipScp_liberty.tar.gz
method crc date time compressed uncompressed ratio uncompressed_name
defla 4dab6bc4 Mar 12 10:56 5971532591 2073176064 -188.0% tarZipScp_liberty.tar
 
  


Reply



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: Archive contains obsolescent base-64 headers ev64 LinuxQuestions.org Member Success Stories 10 12-01-2011 04:12 AM
tar archive gives different results randyepperson Linux - Software 7 10-11-2007 06:50 PM
old tar? archive maenho Linux - Software 4 12-14-2006 07:05 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:31 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
Open Source Consulting | Domain Registration