RabbitMQ Fails to Start with "BACKOFF" During SELinux Port Rule Check
search cancel

RabbitMQ Fails to Start with "BACKOFF" During SELinux Port Rule Check

book

Article ID: 413994

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

RabbitMQ Failing to start with a "BACKOFF" during the SELinux port rule check

  • Startup shows this message 
    cb-rabbitmq           Exited too quickly (process log may have details)   BACKOFF
  • "journalctl -u cb-enterprise" shows this message 
    cb-enterprise[88717]: Error creating SELinux port rule for rabbitmq_port_t on port 5004: Traceback (most recent call last):
    cb-enterprise[88717]:   File "/sbin/semanage", line 1000, in <module>
    cb-enterprise[88717]:     do_parser()
    cb-enterprise[88717]:   File "/sbin/semanage", line 970, in do_parser
    cb-enterprise[88717]:     commandParser = createCommandParser()
    cb-enterprise[88717]:   File "/sbin/semanage", line 900, in createCommandParser
    cb-enterprise[88717]:     import seobject
    cb-enterprise[88717]:   File "/usr/lib/python3.6/site-packages/seobject.py", line 33, in <module>
    cb-enterprise[88717]:     import sepolicy
    cb-enterprise[88717]:   File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 7, in <module>
    cb-enterprise[88717]:     import setools
    cb-enterprise[88717]:   File "/usr/lib64/python3.6/site-packages/setools/__init__.py", line 24, in <module>
    cb-enterprise[88717]:     __version__ = pkg_resources.get_distribution("setools").version
    cb-enterprise[88717]: AttributeError: module 'pkg_resources' has no attribute 'get_distribution'
    cb-enterprise[88717]: Error creating SELinux port rule for rabbitmq_port_t on port 5005: Traceback (most recent call last):
    cb-enterprise[88717]:   File "/sbin/semanage", line 1000, in <module>
    cb-enterprise[88717]:     do_parser()
    cb-enterprise[88717]:   File "/sbin/semanage", line 970, in do_parser
    cb-enterprise[88717]:     commandParser = createCommandParser()
    cb-enterprise[88717]:   File "/sbin/semanage", line 900, in createCommandParser
    cb-enterprise[88717]:     import seobject
    cb-enterprise[88717]:   File "/usr/lib/python3.6/site-packages/seobject.py", line 33, in <module>
    cb-enterprise[88717]:     import sepolicy
    cb-enterprise[88717]:   File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 7, in <module>
    cb-enterprise[88717]:     import setools
    cb-enterprise[88717]:   File "/usr/lib64/python3.6/site-packages/setools/__init__.py", line 24, in <module>
    cb-enterprise[88717]:     __version__ = pkg_resources.get_distribution("setools").version
    cb-enterprise[88717]: AttributeError: module 'pkg_resources' has no attribute 'get_distribution'

Environment

  • Carbon Black EDR Server: All Versions

Cause

Server is missing python3 files

Resolution

  1. In a terminal session run the following command: 
    dnf reinstall platform-python-setuptools
  2. Attempt to startup services. 

Additional Information

  • For more information see: https://access.redhat.com/solutions/6996402