mongolab / mongoctl

Manage MongoDB servers and replica sets using JSON configurations!
MIT License
178 stars 25 forks source link

install-mongdb fails on osx, bad architecture #9

Closed dmacd closed 9 years ago

dmacd commented 11 years ago

It looks like its trying to fetch a nonexistent i386 version

dmacd$ mongoctl install 2.2.5

Running install for osx 32bit to mongoDBInstallationsDirectory (/Users/dmacd/mongodb)... ERROR: Unable to download from url 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.2.5.tgz' (response code '403'). It could be that version '2.2.5' you specified does not exist. Please double check the version you provide

Running the python 2.7.5 build from python.org.

Would love to use your tool, is there any way to provide a literal url?

abdulito commented 11 years ago

Hi!

Thanks for reporting this. Seems to be a bug there. Unfortunately, there is no way of providing a literal url but what you can do is manually download/extract MongoDB and place it under ~/mongodb/

Really sorry for the inconvinience. I'll work on fixing this soon but if you can please tell what architecture do you have running your osx? Can you please run the following in your python shell and paste the print result here? Thanks!

[terminal] python
import platform
print platform.architecture()[0]
dmacd commented 11 years ago

Sure thing! My machine thinks it is 64bit, and python seems to agree. Initially I did have a 32bit python installed so when I saw this problem I assumed that was the reason and went and installed the one you see below (and reinstalled pip, and then mongoctl with the new python):

Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import platform print platform.architecture()[0] 64bit

On 7/8/13 3:53 PM, abdulito wrote:

Hi!

Thanks for reporting this. Seems to be a bug there. Unfortunately, there is no way of providing a literal url but what you can do is manually download/extract MongoDB and place it under ~/mongodb/

Really sorry for the inconvinience. I'll work on fixing this soon but if you can please tell what architecture do you have running your osx? Can you please run the following in your python shell and paste the print result here? Thanks!

[terminal] python import platform print platform.architecture()[0]

— Reply to this email directly or view it on GitHub https://github.com/mongolab/mongoctl/issues/9#issuecomment-20642233.

abdulito commented 11 years ago

I see. Now according to the output you provided above, the "install-mongodb" command should install the osx 64bit distribution of MongoDB. Is it the case now? or was the error you got earlier happened after you did all that?

Thanks!

-abdul

dmacd commented 11 years ago

Yes, I wanted it to install the 64bit distribution of mongo, but even after reinstalling with a 64bit python it still refuses to do so.

On 7/9/13 11:08 AM, abdulito wrote:

I see. Now according to the output you provided above, the "install-mongodb" command should install the osx 64bit distribution of MongoDB. Is it the case now? or was the error you got earlier happened after you did all that?

Thanks!

-abdul

— Reply to this email directly or view it on GitHub https://github.com/mongolab/mongoctl/issues/9#issuecomment-20693692.

abdulito commented 10 years ago

Hi,

Apologies but i wasnt able to track down the cause if your issue. Are you still running in to it? I did some refactoring in the install-mongodb command (will be releasing soon). If you would like to try it you can install mongoctl from github https://github.com/mongolab/mongoctl/archive/master.zip

Thanks!

-abdul

abdulito commented 9 years ago

Cannot reproduce. Closing. Please create a new issue if you are still seeing this. Thanks!