Greetings Good People,

I pray this reaches you in the best of health and highest of spirits today. I am trying to implement a MongoDB Sharding Lab but running into one last hitch. I have spun up four (4) virtual machines (one config server, two [2] shards and a router server). I have been able to finish configuring the config server and the two (2) shards but I am running into problems when I try configuring the router server. When I try to launch the MongoDB shell, I am unable to do so and run into the below attached error. The tutorial I followed when setting up this lab can be found here, moreover, I am using Ubuntu 22.04.4 as the server operating system. Is there a misconfiguration somewhere? I am passionate about MongoDB ever since a former colleague introduced me to it. Any assistance would be very highly appreciated!

Warm regards,

Michael.




11 months later

Do you want to connect to mongoS?

Is it running?
if not, you should start it using command below

mongos --configdb rsconfig/192.168.123.456:20001,192.168.123.456:20002,192.168.123.456:20003 --port 10001 --fork --logpath /log/mongos_10001.log --bind_ip_all

Which’s format is
mongos --configdb <config-replica-set-name>/<list-of-config-servers> --port <mongos-port> <other-options>

If it’s running, you can connect using the same method as you used to connect to the data servers.
mongo or mongosh either, I can’t get your version cleary

referring manual

also It’s better to attach full log of base situation with text rather than screenshots
have a good day :slight_smile: