How to reset Mnesia for RabbitMQ
search cancel

How to reset Mnesia for RabbitMQ

book

Article ID: 286306

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

Reset the RabbitMQ working directory after corruption.

Environment

  • EDR Server: 5.x and Higher

Resolution

  1. Check disk storage /var/cb/data and /var/log/cb. These directories need at least 50 mb for RabbitMQ to start:
  •  In a clustered environment, complete the following on all nodes (starting with the primary server)
df -h /var/cb/data /var/log/cb
  1. Stop the EDR services using these instructions for EDR 7.4 and Higher
  2. Remove any hanging processes

E.g: 

  • ps -ef | grep cb

NOTE: cbdaemon and event-forwarder services should not affect the startup and shutdown of server services

  • killall -KILL -u cb kills any processes owned by the cb user. A similar effect can be achieved by manually killing any pids returned with the above ps command

  4. Remove mnesia directory:

  • In a clustered environment, complete the following on all nodes (starting with the primary server)
rm -rf /var/cb/data/rabbitmq/mnesia

  5. Start the EDR Services.