Hi, just updated my test server (Ubuntu 20.04) from a previous 5.x release to 5.18 and I’m now getting this error when restarting:
Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding “processManagement.fork” to false
Mongod is configured to run as a single-node replicaset on this server, more details here:
I saw this, but it comes with no explanation and looks like a word-around more than a proper solution.
What does mongod.log shows
So mongod does not start?
Mongod does start, but systemd doesn’t detect it as running so it then triggers a shutdown. I’m using the default unit file. All of this is related to the changes down starting with 5.15 related to forking.
If I remember correctly, forking was needed to achieve a sane behavior with logrotate.
Try to comment the fork parameter in config file and start the service
May be it is already taken care in the mongod.service
I reverted to 5.13 until I have a better understanding of this.
Please note that MongoDB 5.13, 5.15, and 5.18 are not official MongoDB versions. Did you mean MongoDB 5.0.18 instead?
Either way, could you post how did you install MongoDB, and whether you’re using Docker or similar?
Obviously I meant 5.0.x. No docker, standard Ubuntu install (apt).
5.0.13 works with the forking option, but not 5.0.18, I recall that forking was needed for logrotate.