If you did that as root sometimes in the past then the lock file and the log file are probably now own by root and cannot be written by mongod user.
1 Like
If you did that as root sometimes in the past then the lock file and the log file are probably now own by root and cannot be written by mongod user.