Mongo deamon, localhost connection and node on OSX Maverick
Issue while trying to connect to mongodb
At first it was a classic warning while connecting to the db using $ mongo
:
** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
So I tried:
launchctl limit maxfiles 1024 1024
Then restart the demon:
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
(using homebrew, it might varry depending on your install)
The warning is gone but stills... the error is here.
No success
So, I keep look left and right...
Need more information about mongo
Go there :
it might help you or at least give you some useful understanding of you db.
Finally figuring it out... it was this nice longjohn module which was blocking the connection... do not ask why now, but I guess I have to read a bit more...