I followed the MongoDB Docs to run my MongoDB in macOS,
When I start MongoDB using the terminal get this error:
Shutting down with code: 62>
Although the accepted answer works, it removes all your data.
What worked for me without need to lose my DB is using mongodump to create a backup of the data. Then removing it by sudo rm -r /path/to/dbdata and finally restoring it with mongorestore.
That made systemctl start mongodb to not fail and the data was in perfect state.