Hello, Getting time out while accessing server remotely. After entering root password getting 'abrt-cli status' timed out' Please help.
I followed this doc to install MongoDB 3.2.1 on CentOS 7. After installing, I change the owner and group of
var/lib/mongo
and var/log/mongodb/mongod.log
to root:root
.When I start the mongodb with
service mongod start
, it just shows I have run the two commands to show details.
systemctl status mongod.service
shows journalctl -xn
showsI accessed the server with ssh key, no password.
Brick YangBrick Yang
3 Answers
Is the any reason to change ownership to root?
Both
/var/lib/mongo
and /var/log/mongodb
should be writable by mongodb user. By default it is
mongodb:mongodb
. Check which user runs mongodb service in /etc/init.d/mongodb
. If it is something like DAEMONUSER=${DAEMONUSER:-mongodb}
then chown your directories back to this user.Alex BlexAlex Blex
A very similar issue can be caused by selinux permissions, which is enabled by default in CentOS 7. This can be fixed by disabling selinux or adding the correct context to the mongo database path using:
MarkMark
Well I tried everything people mentioned with no luck, so I ended building a simple unit service file for it, since in my case the problem looks to be related to the init script (https://jira.mongodb.org/plugins/servlet/mobile#issue/SERVER-18439/comment/915785).
I created the service file here:
with this as the content:
After that all I do was to start it as:
I hope this can help anybody else.
David ChaverriDavid Chaverri