Just Published! Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

EDR: How to reset Mnesia for RabbitMQ

EDR: How to reset Mnesia for RabbitMQ

Environment

  • EDR (formerly Cb Response) Server: 5.x and Higher

Objective

Reset the RabbitMQ working directory after corruption

Resolution

  1. Check disk storage /var/cb/data and /var/log/cb. These directories need at least 50mb for RabbitMQ to start:
    •  

      In a clustered environment, complete the following on all nodes (starting with the master)

       
    • df -h /var/cb/data /var/log/cb
  2. Stop services:
    1. For a cluster, run this command on the master only: 
      • /usr/share/cb/cbcluster stop

    2. For a standalone server:
      1. service cb-enterprise stop
    3. Verify services are stopped.
      • service cb-enterprise status
  3. Remove any hanging processes: Remove Hanging Processes
  4. Rename mnesia directory:
 

In a clustered environment, complete the following on all nodes (starting with the master)

 
  • rm -rf /var/cb/data/rabbitmq/mnesia
  1. Start Services:
    1. For a cluster, run this command on the master:
      • /usr/share/cb/cbcluster start
    2. For a standalone server:
      • service cb-enterprise start

Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎01-10-2019
Views:
3117
Contributors