Symptoms
IPv6 has been disabled on the vProxy appliance.The vProxy's /data01/runtime/logs/vrapid/vrapid-engine.log log contains the following:
2021-02-03T08:47:55Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused
2021-02-03T08:48:10Z TRACE: Engines IPC: Connection 1: Connecting to the message bus...
2021-02-03T08:48:10Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused
2021-02-03T08:48:25Z TRACE: Engines IPC: Connection 1: Connecting to the message bus...
2021-02-03T08:48:25Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused
Cause
rabbitmq fails to start up when ipv6 is disabled and due to this vrapid is down
Resolution
Workaround:
Re enable IPV6 ensure vrapid is up, connect to the vProxy as admin and su to root:
sudo su -
Create a copy of rabbitmq.conf:
cp -P /etc/rabbitmq/rabbitmq.config /etc/rabbitmq/rabbitmq.config.orig
Check the current listners:
rabbitmq-diagnostics listeners
Example:
Interface: 127.0.0.1, port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: [::1], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Modify the rabbitmq.config file to remove ipv6 listner:
vi /etc/rabbitmq/rabbitmq.config
From :
######################################
[
{rabbit,
[{tcp_listeners,
[{"127.0.0.1", 5672}, {"::1", 5672}]}]
}
].
######################################
######################################
To
######################################
[
{rabbit,
[{tcp_listeners,
[{"127.0.0.1", 5672}]}]
}
].
######################################
######################################
Reboot vProxy:
reboot
Confirm rabbit and vrapid services are up and running:
systemctl status rabbitmq-server.service
systemctl status vrapid.service
Check connectivity on port 9090 using the curl command:
curl -v localhost:9090