In Red Hat Satellite mongodb fail to start with pulp_celerybeat.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • Some services are not running (rh-mongodb34-mongod, pulp_celerybeat)

Resolution

  • If article: Mongo repair and pulp will not work then could try the following steps:

      # tar -cvf mongo.tar.gz /var/lib/mongodb/*
    
      # mv /var/lib/mongodb/journal/* /tmp/
    
      # mv /var/lib/mongodb/local.ns /tmp/
    
      # mv /var/lib/mongodb/pulp_database.ns /tmp/
    
      # mv /var/lib/mongodb/mongod.lock /tmp/
    
      # satellite-maintain service restart
    

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

  • Need to remove the stale files which was preventing service to start.

Diagnostic Steps

  • Following error is present in /var/log/mongodb/mongodb.log on Red Hat Satellite server.

      security: { authorization: "disabled" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", 
      logAppend: true, path: "/var/log/mongodb/mongodb.log", quiet: true } }
      [initandlisten] [initandlisten] ** WARNING: Readahead for /var/lib/mongodb is set to 4096KB
      [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less
      [initandlisten] **          http://dochub.mongodb.org/core/readahead
      [initandlisten] journal dir=/var/lib/mongodb/journal
      [initandlisten] recover : no journal files present, no recovery needed
    
SBR
Product(s)
Components
Category
Tags

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.