Issue on mongodb replication. Bad keyfile

Hello Im having trouble adding my second replica. My key file prompting bad file whenever I restart my mongo after i edit the /etc/mongod.cnf.

ive already change the ff:
sudo chmod 400 /opt/mongo/mongo.key
sudo chown mongod:mongod /opt/mongo/mongo.key

Post the output of running the commands:

ls -l /opt/mongo/
file /opt/mongo/mongo.key
head /opt/mongo/mongo.key
1 Like