.tgz file – tar: Unrecognized archive format

9

1

I'm trying to install a 10gen build of MongoDB on my local Mac running Mountain Lion (10.8.3):

I fetch it with curl at:

curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > mongodb.tgz

But I can't extract the build:

Attempt 1:

$ tar -zxvf mongodb.tgz

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

Attempt 2:

$ gunzip mongodb.tgz

gzip: mongodb.tgz: not in gzip format

Attempt 3:

$ unzip mongodb.tgz

Archive:  mongodb.tgz
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of mongodb.tgz or
        mongodb.tgz.zip, and cannot find mongodb.tgz.ZIP, period.

Double Clicking: If I double click the tgz file in the finder, it creates a new file mongodb.tgz 2.cpgz


Any idea what I'm doing wrong here? I tried various builds and they all reproduce this issue:

http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.3.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_32-2.4.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_32-2.3.tgz > mongodb.tgz

AlienWebguy

Posted 2013-03-19T19:20:44.137

Reputation: 195

3do a "file mongodb.tgz" to identify the content type... – andrekeller – 2013-03-19T19:36:52.763

Answers

8

you are trying to gunzip/untar not the archive file but the error page:

<html>
<head><title>403 Forbidden</title></head>
<body>
<h1>403 Forbidden</h1>
<ul>
<li>Code: AccessDenied</li>
<li>Message: Access Denied</li>
</ul>
<hr/>
</body>
</html>

try this link http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.0.tgz

Alex P.

Posted 2013-03-19T19:20:44.137

Reputation: 2 592

I can't believe I didn't think to open that link in a browser. I'm reporting it to 10gen so they can fix the link. Cheers mate :) – AlienWebguy – 2013-03-19T20:23:55.297

2

Apologies, try http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.0.tgz The download URL changed with the release which we'll fix in the docs.

epc

Posted 2013-03-19T19:20:44.137

Reputation: 121

@Scott. It is nice to get an official answer, where available. – TRiG – 2017-03-15T11:35:32.357

@TRiG: (1) Wow!  If you had just waited another four days, you could have observed the four-year anniversary of this answer.  Is this four-year-old information still valid/useful?  (2) Thanks, but I understood the significance of @epc’s comment that he is the owner of the MongoDB docs website; i.e., that his answer represented an “official” one.  (3) After four years, *the answer* still doesn’t include any claim to authority by association. – Scott – 2017-03-16T16:41:13.307

(Cont’d) …  And, while we at [SE] believe in the rules of Be Nice and assume good intentions/good faith, we also prefer statements that are supported by evidence. What evidence is there that this is an official answer? What evidence is there that epc is who he says he is? He claims it in his Super User profile, but not his profile on Stack Overflow or Stack Exchange, or his personal home page. … (Cont’d)

– Scott – 2017-03-16T16:41:36.170

(Cont’d) …  Furthermore, this is the only answer he has ever posted on Super User.  In fact, he created his Super User account just to post this answer, and, after posting the follow-up comment, he has never logged in again.  These are red flags.  I’m not calling him a liar, just questioning the authenticity of his claims. – Scott – 2017-03-16T16:42:11.247

What are you apologizing for?  Why are you repeating the link that Alex already gave? – Scott – 2013-03-19T21:27:39.030

Because I own the docs website where this was in error? We recently changed to version the MongoDB documentation, as a sideeffect instead of including the release (2.4.0) we were including the version (2.4) in these URLs which are updated when we do a new release. – epc – 2013-03-20T17:45:15.363

1

(1) No error, but it might have been nice to (briefly) state your affiliation/association in your answer, rather than forcing us to open your user page.  (2) Why are you repeating the link that Alex P. already gave in his answer, which he posted more than an hour before you posted yours?

– Scott – 2013-03-20T18:09:46.697