000038646 - Rabbitmq Failed in RSA NetWitness Platform due to missing directory

Document created by RSA Customer Support Employee on Mar 31, 2020
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000038646
Applies ToRSA Product Set: Security Analytics
RSA Product/Service Type: Core Appliance, Security Analytics UI
RSA Version/Condition: 11.3.x
Platform: CentOS
O/S Version: EL7
IssueThe issue was rabbitmq-server service was not starting with below error in journalctl -xe after getting "failed" state in "systemctl status rabbitmq-server"
 

Failed at step CHDIR spawning /usr/lib/rabbitmq/bin/rabbitmq-server: No such file or directory




 
CauseThere is a missing WokingDirectory so we must check what the WorkingDirectory points to.

To do that:
  1. cat  /etc/systemd/system/multi-user.target.wants/rabbitmq-server.serviceCheck the [Service] part.
    [Service]
    Type=notify
    User=rabbitmq
    Group=rabbitmq
    NotifyAccess=all
    TimeoutStartSec=3600
    WorkingDirectory=/var/lib/rabbitmq
    ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
    ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop
    Restart=always

     Here, the WorkingDirectory path is /var/lib/rabbitmq 
     
  2. Cd /var/lib
    the rabbitmq directory will be missing. 
     
Resolution
  1. Create rabbitmq directory under  /var/lib
    mkdir rabbitmq
     
  2. Adjust the ownership of rabbitmq directory 
    chown rabbitmq:rabbitmq rabbitmq/
     
  3. Restart rabbitmq-server service 
    systemctl restart rabbitmq-server
     
The Rabbitmq-server service will start. 

Attachments

    Outcomes