I'm getting this error when, in fact, I don't think I'm even trying
to do anything with 27017 because that's not the port I'm running
MongoDB on.
Set-up: 5 replica nodes, ports 37017..37021.
I am trying to run the MongoDB shell and do stuff in the database on
the VM running the node whose port number is 37017. I see this:
uas-replicas:PRIMARY> db.connect( "partnerdb" )
Tue Jan 22 14:19:43 Error: couldn't connect to server
127.0.0.1:27017 src/mongo/shell/mongo.js:91
Database partnerdb doesn't exist yet. I'm trying to create it new
and stuff a new document inside a new collection inside it. It could
be a peculiarity of replica sets, though I think I've done this
before and it's worked. I can do all kinds of other things from the
shell inside this running instance of MongoDB with no problem at
all.
What am I missing?
Thanks for any help!
Russ