Skip to content

RabbitMQ: Issue service can not start

Initial state

OS: Amazon Linux 2 Try to install and start rabbitmq-server from packages Packages

$ rpm -qa |grep 'erlang\|rabbitmq'
erlang-22.3.4.19-1.el7.x86_64
rabbitmq-server-3.7.24-1.el7.noarch

Repos:

[rabbitmq_erlang]
baseurl = https://packagecloud.io/rabbitmq/erlang/el/7/$basearch
enabled = 1
gpgcheck = 0
gpgkey = https://packagecloud.io/rabbitmq/erlang/gpgkey
metadata_expire = 300
name = RabbitMQ-Erlang Repo
repo_gpgcheck = 1
sslverify = 1

[rabbitmq_rabbitmq-server]
baseurl = https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/$basearch
enabled = 1
gpgcheck = 0
gpgkey = https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
metadata_expire = 300
name = RabbitMQ-Server Repo
repo_gpgcheck = 1
sslverify = 1

Problem: service can not start

Symptoms:

$ tail -f /var/log/rabbitmq/startup_err 
init terminating in do_boot ({{nocatch,{error,{[_],[_]}}},[{app_utils,load_applications,2,[{_},{_}]},{app_utils,load_applications,1,[{_},{_}]},{rabbit_lager,configure_lager,0,[{_},{_}]},{rabbit_lager,

Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...done

Checking process

sudo /usr/sbin/rabbitmq-server

Solution

### Remove packages
sudo yum remove erlang*

#### Main point - clear all previously installed erlang files
sudo rm -rf /usr/lib64/erlang

### Install packages again
sudo yum install erlang-22.3.4.19-1.el
sudo yum install rabbitmq-server-3.7.24-1.el7