Installing RabbitMQ – Stack Overflow
I am trying to install rabbitMQ on a server. Here are my system details
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
I followed this instruction
https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith
The last step in that guide is
sudo apt-get install rabbitmq-server -y --fix-missing
but that command gives an error in my case
# sudo apt-get install rabbitmq-server -y --fix-missing
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
socat
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
rabbitmq-server
0 upgraded, 1 newly installed, 0 to remove and 108 not upgraded.
Need to get 0 B/15.7 MB of archives.
After this operation, 24.3 MB of additional disk space will be used.
Selecting previously unselected package rabbitmq-server.
(Reading database ... 80908 files and directories currently installed.)
Preparing to unpack .../rabbitmq-server_3.12.4-1_all.deb ...
Unpacking rabbitmq-server (3.12.4-1) ...
Setting up rabbitmq-server (3.12.4-1) ...
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xeu rabbitmq-server.service" for details.
invoke-rc.d: initscript rabbitmq-server, action "restart" failed.
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-09-01 22:29:06 UTC; 10ms ago
Process: 121759 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 121759 (code=exited, status=1/FAILURE)
Status: "Standing by"
CPU: 3.378s
Sep 01 22:29:06 ubuntu-s-4vcpu-8gb-amd-lon1-01 systemd[1]: rabbitmq-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 01 22:29:06 ubuntu-s-4vcpu-8gb-amd-lon1-01 systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
Sep 01 22:29:06 ubuntu-s-4vcpu-8gb-amd-lon1-01 systemd[1]: Failed to start RabbitMQ broker.
Sep 01 22:29:06 ubuntu-s-4vcpu-8gb-amd-lon1-01 systemd[1]: rabbitmq-server.service: Consumed 3.378s CPU time.
dpkg: error processing package rabbitmq-server (--configure):
installed rabbitmq-server package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
rabbitmq-server
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
and I can’t figure out what is going wrong?
Read more here: Source link