IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR Server: Rabbitmq Process Won't Start With "enabled_plugins" Error

EDR Server: Rabbitmq Process Won't Start With "enabled_plugins" Error

Environment

  • EDR Server: 6.1.0 and above

Symptoms

  • Error in the terminal during startup
    • Process execution failure(70):
      Error: {cannot_write_enabled_plugins_file,"/etc/cb/rabbitmq/enabled_plugins",
      eacces}
      Traceback (most recent call last):
      File "/opt/jenkins/build/workspace/build-cbent-signed-staging/code/coreservices/src/cb/utils/exceptions.py", line 62, in decorator
      File "/usr/lib/python2.6/site-packages/cb/maintenance/cbstartup/main.py", line 152, in main
      File "/usr/lib/python2.6/site-packages/cb/maintenance/cbstartup/main.py", line 98, in run
      File "/opt/jenkins/build/workspace/build-cbent-signed-staging/code/coreservices/src/cb/maintenance/cbstartup/actions/init_rabbitmq.py", line 74, in execute
      File "/opt/jenkins/build/workspace/build-cbent-signed-staging/code/coreservices/src/cb/maintenance/cbstartup/actions/init_rabbitmq.py", line 79, in _install_builtin_plugins
      File "/opt/jenkins/build/workspace/build-cbent-signed-staging/code/coreservices/src/cb/maintenance/cbstartup/actions/init_rabbitmq.py", line 99, in _enable_plugin
      File "/opt/jenkins/build/workspace/build-cbent-signed-staging/code/coreservices/src/cb/maintenance/cbstartup/actions/init_rabbitmq.py", line 116, in _run_process
      Exception: Process execution failure(70):
      Error: {cannot_write_enabled_plugins_file,"/etc/cb/rabbitmq/enabled_plugins",
      eacces}

  • Master or minions are out of disk space on one of the drives

Cause

Rabbitmq is unable to write to the /etc/cb/rabbitmq/ directory

Resolution

  1. Set proper permissions on master and minions:
    • chmod 770 /etc/cb/rabbitmq/

    • chown root:cb /etc/cb/rabbitmq/

    • chown cb:cb /etc/cb/rabbitmq/enabled_plugins

  2. Confirm /etc/cb/rabbitmq has space available on both master and minions. If at 100% disk usage, space will need to be added
    • df -h
  3. Rename or remove enabled_plugins.tmp on master and minions.
    • mv /etc/cb/rabbitmq/enabled_plugins.tmp /etc/cb/rabbitmq/enabled_plugins.backup
  4. Start services

Additional Notes

The enabled_plugins.tmp file will get recreated if the partition is full. Remove it after disk space has been cleared.

Related Content


Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎11-27-2018
Views:
2053
Contributors