Getting warnings related to mongodb directory on Red Hat Satellite Capsule server

Solution Verified - Updated

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

Issue

  • Getting warnings related to mongodb_dir on Red Hat Satellite Capsule server

     1/7/2019, 9:48:05 AM	WARN	File at /var/lib/mongodb defined in mongodb_dir parameter doesn't exist or is unreadable
    

Resolution

  • Change the ownership and group of /var/lib/mongodb folder to mongodb

       # cd /var/lib
    
       # chown -R mongodb:mongodb mongodb/
    
  • If issue persist, grant read access to foreman-proxy user for /var/lib/mongodb using below command:

    # setfacl -m u:foreman-proxy:r /var/lib/mongodb
    

For more KB articles/solutions related to Red Hat Satellite 6.x MongoDB Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x MongoDB-related Issues

Root Cause

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.