Introduction
Once the hostname has been changed and RabbitMQ wont start. The Broker service in the monitoring screen would be redn which means RabbitMQ-server would be in a failed state.
Procedure
1) Ensure that hostname is resolved as 127.0.0.1:
To get hostname:
hostname
Then try a ping:
ping [HOSTNAME from the previous command]
If hostname is not resolved as 127.0.0.1, you will have to add your hostname in the /etc/hosts at the end of the 127.0.0.1 line
2) Restart RabbitMQ
systemctl restart rabbitmq-server.service
Check RabbitMQ is running:
systemctl status rabbitmq-server
3) Create systran user in Rabbit
rabbitmqctl list_users
There should be "systran" user as shown below:
If it is missing, please run the following three commands to create one:
rabbitmqctl add_user systran SESpassword
rabbitmqctl set_permissions -p '/' systran '.*' '.*' '.*'
rabbitmqctl set_user_tags systran administrator
4) Then restart SYSTRAN services and also rest Docker:
for i in $(systemctl -a | grep -o "systran.*service"); do systemctl stop $i; done
docker network rm trm_proxy_network
docker swarm leave --force
docker network rm docker_gwbridge
systemctl stop docker
systemctl start docker
for i in $(systemctl -a | grep -o "systran.*service"); do systemctl start $i; done