Issue when changing default data and log directory

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