Homework 2.5 : Update replica set nodes to enable encrypted storage engine

Hi @Kanika

vagrant@database:~/shared$ ./setup-hw-2.5.sh
about to fork child process, waiting until server is ready for connections.
forked process: 12793
ERROR: child process failed, exited with error number 100
about to fork child process, waiting until server is ready for connections.
forked process: 12797
ERROR: child process failed, exited with error number 100
about to fork child process, waiting until server is ready for connections.
forked process: 12801
ERROR: child process failed, exited with error number 100
MongoDB shell version: 3.2.22
connecting to: 127.0.0.1:31250/test
2019-10-01T13:51:53.990+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:31250, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-10-01T13:51:53.991+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:31250, connection attempt failed :
connect@src/mongo/shell/mongo.js:231:14
@(connect):1:6

exception: connect failed
MongoDB shell version: 3.2.22
connecting to: 127.0.0.1:31250/test
2019-10-01T13:52:09.055+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:31250, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-10-01T13:52:09.056+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:31250, connection attempt failed :
connect@src/mongo/shell/mongo.js:231:14
@(connect):1:6

exception: connect failed

I am getting error while running the setup script , i tried to kill mongod process and restart again but it won’t worl

That would have solved the issue. Can you try killing all of mongod by killall mongod command?

Kanika

Fyi, you can check which mongod or mongos processes are running by using:
ps -ef | grep mongo