0 votes
1 view
in GCP by (24.3k points)
recategorized by

Whenever I type: rs.initiate(), I get the following error message:


    "info2" : "no configuration explicitly specified -- making one",

    "me" : "VMHOSTNAME:27017",

    "ok" : 0,

    "errmsg" : "No host described in new configuration 1 for replica set rs0 maps to this node",

    "code" : 93


I'm running under google-cloud-engine with the latest MongoDB.

Any suggestions on how to solve this? 

1 Answer

+1 vote
by (61.8k points)
selected by
Best answer

The problem might be in your mongo config. You need to take a look for the following line and comment it out:

#bindIp:  # Listens to local interface only, comment it out to listen on all interfaces.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !