Skip to content

Mongo restart on QCNOTELDB001

laxmirad edited this page Sep 30, 2019 · 2 revisions

To stop and restart mongo on QCNOTELDB001:

sudo service mongod stop sudo service mongod restart

In case the restart throws error:

Run the following command to understand why the error occurred:

sudo journalctl -xe

Usually the issue is access to some folder. Here is the fix:

Run:

sudo ausearch -c 'mongod' --raw | audit2allow -M my-mongod

Then: sudo semodule -i my-mongod.pp

Now try: sudo service mongod restart