During MongoDB installations or usage, you may encounter various issues. You can review examples on this page for commonly encountered situations.
Installation Error of MongoDb on Centos 7
warning: /var/cache/yum/x86_64/7/MongoDB/packages/mongodb-org-mongos-4.2.13-1.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 058f8b6b: NOKEY
Doing "gpgcheck=0" on the file below
Installation Error of MongoDb on Centos 8
If you have any output like the following in “systemctl status mongodb.service -l”:
SELinux is preventing /usr/bin/mongod from read access on the file snmp.
run these commands and see output of mongodb.service status until errors disappear:
grep mongod /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp grep ftdc /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp
Excessive disk usage by the path /var/lib/mongodb
Althought this is not a problem on it's own, it may be required to get some more disk space to prevent OS problems'. Especially if journaling is enabled or replicaset uses multi node structure.
Deleting a project and its proxies manually
Althought this is not a problem on it's own, it may be required to do so manually.