When I did the first lab I could normally initiate mongos.
In the second lab, with the exact Config file for mongos, it is refusing to initiate:
mongos -f mongos.conf
I get the message:
2019-07-08T17:37:58.658+0000 W SHARDING [main] Running a sharded cluster with fewer than 3 config servers should only be done for testing purposes and is not recommended for production.
about to fork child process, waiting until server is ready for connections.
forked process: 2630
And nothing happens. Then I start a new terminal, initiate “vagrant ssh” and I try:
mongo --port 26000 --username m103-admin --password m103-pass --authenticationDatabase admin
This is what I get:
MongoDB shell version v3.6.12
connecting to: mongodb://127.0.0.1:26000/?authSource=admin&gssapiServiceName=mongodb
2019-07-08T17:48:17.868+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:26000, in(checking socket for error after poll), reason: Connection refused
2019-07-08T17:48:17.869+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:26000, connection attempt failed :
exception: connect failed
What is wrong ? and why the IP address is 127.0.0.1?
Here is monogs configuration file: