[SERVER-39486] address already in use failed to setup sockets during startup Created: 10/Feb/19  Updated: 11/Feb/19  Resolved: 11/Feb/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.20
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Jamie Longstreet Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

HI,
Is there something I am missing regarding where in the GUI to go to test and build code for Project 1?

After signing up, the GUI for SimpliLearn, the MongoDB course is great for watching the demos.  The Practice Lab worked the first time in.  On initial start, it appears that 27017 is started as an attempt to start it results in "address already in use failed to setup sockets during startup".  Given it has already started, an attempt to start the second one to try out the project, 

mongod --port 27018 --dbpath /data/data2 -replSet rs0 --smallfiles --oplogSize 128

causes the code to hang. I'd like to take a stab at Project 1 using Sharding to create the telephone java script based on the new regulations for telecom to maintain all details of their customers. To do so, it appear to require mongod running on 27017, 27018, and 27019, and then, to set up the config server on 27019 to host (I think this is right), the three configdbs on 27021, 27022, and 27023 - connect them together, then connect back to the host on 27017 ---- and so on.
But the 27018 won't start thus no way to get to the sharding portion.
Is there something I am missing regarding where in the GUI to go to test and build code for Project 1?



 Comments   
Comment by Danny Hatcher (Inactive) [ 11/Feb/19 ]

Hello Jamie,

Unfortunately, SimpliLearn is not a MongoDB product and we will not be able to help you with those courses. For more hands-on help with learning MongoDB, we offer MongoDB University where you can learn MongoDB from MongoDB itself. If you have further questions regarding MongoDB, please post on the mongodb-user group or Stack Overflow with the mongodb tag.

That being said, your current issue is that you can only have one process running per address (hostname plus port number). If you start one process on localhost:27017 and then try to start a different process on localhost:27017, you will see an error. You should ensure that each process is assigned a different address either by using different machines or by setting different port numbers.

Good luck on the rest of your experience learning MongoDB!

Danny

Generated at Thu Feb 08 04:52:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.