Mongo LAB connection failing <<< connection attempt failed at src/mongo/shell/mongo.js:148 >>>

1,566 views
Skip to first unread message

hann...@myntra.com

unread,
Jul 9, 2014, 4:26:56 AM7/9/14
to mongod...@googlegroups.com
Hi Guys,

I am trying to access mongo db from shell. Below is the command used.

mongo dsxxxxxx.mongolab.com:xxxxx/dbname -u dbuser -p dbpassword
MongoDB shell version: 2.6.3
connecting to: dsxxxxxx.mongolab.com:xxxxx/dbname 
2014-07-09T13:52:44.890+0530 Error: couldn't connect to server dsxxxxxx.mongolab.com:xxxxx (21.12.160.255), connection attempt failed at src/mongo/shell/mongo.js:148
exception: connect failed


What should I do?

Jared Cottrell

unread,
Jul 9, 2014, 3:14:01 PM7/9/14
to mongod...@googlegroups.com

It looks like your network is blocking access to that port. I'd recommend contacting your network administrator or trying from a different network.

To test your network connectivity alone (no credentials necessary) you can run this command. This example was run from my unprivileged laptop just now and demonstrates a successful test.

% mongo ds061158.mongolab.com:61158
MongoDB shell version: 2.6.1
connecting to: ds061158.mongolab.com:61158/test
rs-ds061158:PRIMARY> db.runCommand({ping:1});
{ "ok" : 1 }
rs-ds061158:PRIMARY> exit
bye

Our full connectivity troubleshooting guide is here: http://docs.mongolab.com/connecting/#help

Also, feel free to contact us as sup...@mongolab.com if you'd like us to dig into the specifics of your server or code. We're always happy to help!

Regards,

Jared



--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/18321535-0806-420b-85c5-4a43dced9a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages