Hello, a junior and a Mongo Newbie/Enthusiast here,
I have noticed in your log files the following line:
{“t”:{"$date":“2022-05-24T18:09:47.098-04:00”},“s”:“W”, “c”:“ASIO”, “id”:22601, “ctx”:“main”,“msg”:“No TransportLayer configured during NetworkInterface startup”}
You should check permissions in your /data/db folder, try applying these steps :
sudo mkdir /data/db
sudo chown -R $USER /data/db
now run mongo shell with access control
mongod --port 27017 --dbpath /data/db --auth
As can be seen:
{“t”:{"$date":“2022-05-24T18:09:47.580-04:00”},“s”:“W”, “c”:“CONTROL”, “id”:22120, “ctx”:“initandlisten”,“msg”:“Access control is not enabled for the database. Read and write access to data and configuration is unrestricted”,“tags”:[“startupWarnings”]}
I hope my review atleast gives you insight in what to do next.