rabbitmq failed to start

1,218 views
Skip to first unread message

Alexandra Dávila

unread,
Jan 7, 2021, 1:18:07 PM1/7/21
to rabbitmq-users
Dear All,

I am using:
rabbitmqctl --version 3.8.2
erlang 22.2.7
in Ubuntu 20.04.1 LTS Virtual Machine.

I am having trouble with rabbitmq-server. I tried to restart the rabbitmq, but I got an error message:

a) sudo service rabbitmq-server restart
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

b) systemctl status rabbitmq-server.service
rabbitmq-server.service - RabbitMQ Messaging Server
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2021-01-07 16:06:37 CET; 7s ago
Process: 22496 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 22496 (code=exited, status=1/FAILURE)

It seemed that the server has died and tries to reconnect. Then I tried to stop it:

c) systemctl stop rabbitmq-server.service
(no message error)

d) Then I start but I got the same message error again
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

I attached the log file. There I observed that when I tried to start rabbitmq-server, I observed the following error message:

Line 37598
2021-01-07 18:56:10.865 [info] <0.301.0> ra: meta data store initialised. 0 record(s) recovered
2021-01-07 18:56:10.866 [info] <0.312.0> WAL: recovering ["/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum/rabbit@alexandra-VirtualBox/00000055.wal"]
2021-01-07 18:56:10.867 [error] <0.312.0> CRASH REPORT Process <0.312.0> with 0 neighbours exited with reason: no case clause matching {ok,<<>>} in ra_log_wal:open_existing/1 line 646 in gen_batch_server:init_it/6 line 165

The first error appeared in line 605
2021-01-07 15:12:07.080 [info] <0.306.0> ra: meta data store initialised. 0 record(s) recovered
2021-01-07 15:12:07.081 [info] <0.318.0> WAL: recovering ["/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum/rabbit@alexandra-VirtualBox/00000055.wal"]
2021-01-07 15:12:07.083 [error] <0.318.0> CRASH REPORT Process <0.318.0> with 0 neighbours exited with reason: no case clause matching {ok,<<>>} in ra_log_wal:open_existing/1 line 646 in gen_batch_server:init_it/6 line 165
2021-01-07 15:12:07.083 [error] <0.317.0> Supervisor ra_log_wal_sup had child ra_log_wal started with ra_log_wal:start_link(#{compute_checksums => true,dir => "/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum...",...}, [{max_batch_size,32768}]) at undefined exit with reason no case clause matching {ok,<<>>} in ra_log_wal:open_existing/1 line 646 in context start_error

I hope someone can help me with this!

Many thanks in advance,
Alexandra
error_rabbit.log

Alex K

unread,
Jan 7, 2021, 2:55:33 PM1/7/21
to rabbitm...@googlegroups.com
Seems like a syntax error at some config file.


The first error appeared in line 605
2021-01-07 15:12:07.080 [info] <0.306.0> ra: meta data store initialised. 0 record(s) recovered
2021-01-07 15:12:07.081 [info] <0.318.0> WAL: recovering ["/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum/rabbit@alexandra-VirtualBox/00000055.wal"]
2021-01-07 15:12:07.083 [error] <0.318.0> CRASH REPORT Process <0.318.0> with 0 neighbours exited with reason: no case clause matching {ok,<<>>} in ra_log_wal:open_existing/1 line 646 in gen_batch_server:init_it/6 line 165
2021-01-07 15:12:07.083 [error] <0.317.0> Supervisor ra_log_wal_sup had child ra_log_wal started with ra_log_wal:start_link(#{compute_checksums => true,dir => "/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum...",...}, [{max_batch_size,32768}]) at undefined exit with reason no case clause matching {ok,<<>>} in ra_log_wal:open_existing/1 line 646 in context start_error

I hope someone can help me with this!

Many thanks in advance,
Alexandra

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/7476244a-2d08-476f-bdab-51ce9ea7b3e9n%40googlegroups.com.

Alexandra Dávila

unread,
Jan 7, 2021, 3:54:35 PM1/7/21
to rabbitm...@googlegroups.com
Hi, 
Thanks!

But I am not sure about it, because it has been working until today. Would it make sense?

Thanks in advance,



Luke Bakken

unread,
Jan 8, 2021, 11:58:44 AM1/8/21
to rabbitmq-users
Hello,

You can delete this file and re-try -

/var/lib/rabbitmq/mnesia/rabbit@alexandra-VirtualBox/quorum/rabbit@alexandra-VirtualBox/00000055.wal

Please note that by running RabbitMQ in virtualbox there are no guarantees as to when data is actually written to a physical disk. RabbitMQ uses the "fsync" call to write data but virtualbox does not actually ensure the data is written to disk.

Thanks,
Luke

Reply all
Reply to author
Forward
0 new messages