MongoDB 6.0.4: Secondary replicaset node crash

Looks like you started the mongod as root and with just any parameter dbpath but nothing else. So, you don’t configure any replica set.
What is your config file (if any) and how do you start the service?