I shut down one of the secondaries and deleted all the files within the corresponding folder.
When I restarted the server passing the enableEncryption and encryptionKeyFile options along with other options for spinning up a member of the replica set, i got an error below
ERROR: child process failed, exited with error number 14
Don’t know why. If i removed the encryption related options, I could spin up the server.
So something is wrong with my encryption syntax but I thought I use the same syntax provided in the lecture.
Also I am reusing the mongodb-keyfile file created from previous exercises and just moved that file to the relevant folder and granted permission again. Not sure if that’s the problem.