In my case, I attempted to run a snapshot db with docker.
After changing the file ownership to mongodb / 999, I was still having this issue, and what worked was to run
mongod --repair