Opened 10 years ago

Last modified 10 years ago

#45093 new defect

after osx 10.9.4 update, cannot connect to mongodb

Reported by: aaronp123@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: mongodb

Description

I re-installed mongodb after updating to osx 10.9.4. However, now after typing "sudo port load mongodb" I am not able to access mongodb. When I try the "mongo" client I see:

MongoDB shell version: 2.6.4
connecting to: test
2014-09-19T10:00:25.941-0700 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2014-09-19T10:00:25.942-0700 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed

Change History (5)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: mongo removed
Owner: changed from macports-tickets@… to ryandesign@…

In the future, please Cc the port maintainers (port info --maintainers mongodb).

comment:2 Changed 10 years ago by aaronp123@…

Same as #42290 -- guessing I have the same problem. Do I manually create the _mongo user?

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 10 years ago by aaronp123@…

Further explained here perhaps there is an improvement possible?

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

You do not need to create the _mongo user; the mongodb port is programmed to create it for you. I cannot explain why it did not.

comment:5 Changed 10 years ago by moderndeveloperllc (Mark Garrett)

The latest version is up to 2.6.4, which changes a few items in the configuration. Search for "bind_ip" in their docs. Also try to connect with

mongo 127.0.0.1/test

You can also do a

ps auxwww | grep mongo

to see if the server itself is running or not.

Note: See TracTickets for help on using tickets.