How to fix mongodb with error "Invariant failure false src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp 207" in Red Hat Satellite 6?

Solution Verified - Updated -

Issue

  • After a maintenance activity involving services restart or system reboot, mongod service fails to be running, keeping to segfault a short time after the service (re)start.

  • The mongod service fails with the following error.

    rh-mongodb34-mongod.service - High-performance, schema-free document-oriented database
     Loaded: loaded (/usr/lib/systemd/system/rh-mongodb34-mongod.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Tue 2020-02-11 13:04:54 EST; 12min ago
     Process: 12589 ExecStart=/opt/rh/rh-mongodb34/root/usr/libexec/mongodb-scl-helper enable $RH_MONGODB34_SCLS_ENABLED -- /opt/rh/rh- mongodb34/root/usr/bin/mongod $OPTIONS run (code=exited, status=51)
     Main PID: 20235 (code=exited, status=0/SUCCESS)
    
    Jun 28 13:04:53 satellite.example.com mongod.27017[12594]: [initandlisten]
    Jun 28 13:04:53 satellite.example.com mongod.27017[12594]: [initandlisten] _getOpenFile() invalid file index requested 4
    Jun 28 13:04:53 satellite.example.com mongod.27017[12594]: [initandlisten] Invariant failure false src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp 207
    Jun 28 13:04:53 satellite.example.com mongod.27017[12594]: [initandlisten] 
    

Environment

  • Red Hat Satellite 6.9 or below
  • Red Hat Capsule 6.9 or below

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content