mongodb install issues
The installer does not create the mongodb group, only the user but with
the wrong group id (1002 in my case). The startup script will fail at
checkpath -d -m 0750 -o "${MONGODB_USER}":mongodb "${MONGODB_RUN}"
as
the group does not exist.
The server directories are also created with wrong ownership and the
startup script only checks and corrects the /var/run/mongodb
dir. The
data and the log dir ownership is not checked in the startup script and
the server will fail to start. ${MONGODB_DATA} and /var/log/mongodb
need to be created with the correct ownership and rights or add
checkpath
for them in the startup script.
(from redmine: issue id 5299, created on 2016-03-20, closed on 2017-04-07)