Technical support on replication

it is possible you have removed too many spaces there. mongodb config files are YAML in essence and indentation matters. please check this first.

if that does not solve, try sudo systemctl status mongod to see if error is written there and check /var/log/mongodb/mongod.log (or the file set systemLog.path in config file) to see you can see the error.