RabbitMQ cannot be re-established

Hi Team,

We are getting this issue. Please help to resolve.

2021-06-01 12:36:22,302 ERROR [-] Connections to RabbitMQ cannot be re-established: [Errno 111] Connection refused
Traceback (most recent call last):
File “/opt/stackstorm/st2/lib/python3.6/site-packages/amqp/transport.py”, line 137, in _connect
host, port, family, socket.SOCK_STREAM, SOL_TCP)
File “/usr/lib64/python3.6/socket.py”, line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -9] Address family for hostname not supported

This looks like the message generated when the RabbitMQ service does not start. I would check to make sure the service is running, restart it (if possible) and try again. It does not say what version of ST2 or what OS it is being run on, but there was an issue with a Centos upgrade to RabbitMQ that caused it to not start properly. The fix was to remove the one installed from the Centos repos and install the version distributed by RabbitMQ instead.