PDA

View Full Version : Unable to extract TAR



mfoley
07-22-2007, 01:41 PM
Here is what I'm running into.

I'm using CYGWIN to tar a file. This is the command I use


tar -czf phpbb2_plus.tar.gz phpbb2_plus/

I've also tried to do:


tar -czf phpbb2_plus.gz phpbb2_plus

The difference being I'm not terribly certain how the extension plays into this. I was simply blindly following a suggestion I found in another forum re: ".tar.gz". In either case, the file is created without any known errors.

I then use WINSCP to transfer the file.

I then shell in via SSH and attempt to execute the following command


tar -xvf phpbb2_plus.gz phpbb2/

This is the error I get:


tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: phpbb2: Not found in archive
tar: Error exit delayed from previous errors

I've also tried:


tar -xvf phpbb2_plus.gz .

...thinking that it would extract starting from the current directory.

There's a high likelihood...a certainty really, that I'm not a) creating the TAR correctly or b) extracting it correctly or c) both.

Any advice or pointers?

Cheers,
MWF

mfoley
07-22-2007, 02:49 PM
Ok...now I'm getting some evidence that something else is afoot besides my limited Linux vocabulary. I downloaded what I assumed to be a properly compiled tar.gz package.

Using WinSCP, I execute the following command:


tar -xz --directory="." -f "roster173_full-package.tar.gz"

And am getting this error message:


failed with return code 2 and error message
tar: gzip: Cannot exec: Too many levels of symbolic links
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors.

Different error message but I've seen it before on some of my previous attempts to extract via SSH.

Is there anything peculiar with Bluehost in this regard? i.e. do they have restrictions on this type of command? I wouldn't think so but I am puzzled by the difficulty I'm experiencing for something that is quite basic.

Any help or pointers would be appreciated.

Note: the reason I am wanting to upload these tars is simply because the time to upload them is much faster. For the time being, I'll revert to the old method of uploading the full structure of these packages.

cade
07-22-2007, 04:28 PM
This is a pretty simple fix for support. Just submit a ticket.

mfoley
07-22-2007, 06:08 PM
"Fix" as in something is broken or off with my configuration?

siguie
07-23-2007, 03:34 AM
Is the file phpbb2_plus.tar.gz or phpbb2_plus.gz?

You may want to try gunzip phpbb2_plus.tar.gz first OR gunzip phpbb2_plus.gz

I normally use tar -xvf [file] from shell but here I'm generally lazy and use the "extract" option from the "legacy file manager" :)

mfoley
07-23-2007, 11:36 AM
Is the file phpbb2_plus.tar.gz or phpbb2_plus.gz?

It's been both.


You may want to try gunzip phpbb2_plus.tar.gz first OR gunzip phpbb2_plus.gz

GZIP and/or GUNZIP apparently are not in my environment. Running either command results in a "command cannot be found error".


I normally use tar -xvf [file] from shell but here I'm generally lazy and use the "extract" option from the "legacy file manager".

I'll look into using that at some point if the command line doesn't provide a better experience.

mfoley
07-23-2007, 12:07 PM
Per recommendation, I've opened a ticket. A friend of mine has suggested that the symbolic link to gzip is busted.

chrsysco
08-07-2007, 05:57 PM
This seems to be a system wide problem on some of their new boxes. Im running on box308 and many commands are having the same problem. I don't have any problem on my old account on box73.