Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in GCP by (19.7k 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? 

closed

1 Answer

+1 vote
by (62.9k 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: 127.0.0.1  # Listens to local interface only, comment it out to listen on all interfaces.

Related questions

0 votes
1 answer
asked Nov 21, 2020 in GCP by chandra (29.3k points)
0 votes
1 answer
0 votes
1 answer
asked Jan 3, 2021 in SQL by Appu (6.1k points)
0 votes
1 answer
asked Dec 5, 2020 in SQL by Appu (6.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers

501 comments

104k users

Browse Categories

...