Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881815 - net-misc/rabbitmq-server-3.11.2 crashes immediately after starting
Summary: net-misc/rabbitmq-server-3.11.2 crashes immediately after starting
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 905791
  Show dependency tree
 
Reported: 2022-11-18 17:45 UTC by Michał Górny
Modified: 2024-07-02 21:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from starting rabbitmq-server (rabbitmq.log,13.92 KB, text/plain)
2022-11-18 17:45 UTC, Michał Górny
Details
erl_crash.dump.xz (erl_crash.dump.xz,89.99 KB, application/x-xz)
2022-11-18 17:46 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 17:45:57 UTC
Created attachment 833455 [details]
Output from starting rabbitmq-server

Honestly, I have no clue about rabbitmq.  I've noticed this because the test suite of dev-python/pika tries to start the server, and it threw a huge backtrace immediately.  I can reproduce when executing rabbitmq-server directly.

I'm attaching the output.  I'll also attach erl_crash.dump compressed.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 17:46:34 UTC
Created attachment 833457 [details]
erl_crash.dump.xz
Comment 2 Tom Gillespie 2022-12-13 22:30:02 UTC
A quick fix for this is to move/remove /var/lib/rabbitmq/mnesia. The problem seems to be that there is a migration step required. I assume that folks that actually run rabbitmq know how to do this, but for the rest of us that don't care about persisting the datastore this fix should be sufficient.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-06 05:03:40 UTC
Nope, still crashing.

Mind you, I'm only trying to run pika's test suite, and FWICS src_test() is using a fresh directory anyway.
Comment 4 Henning Schild 2024-07-02 21:39:42 UTC
I tried to reproduce this with a focus on the src_test of dev-python/pika. But for me that code just worked.

I first installed net-misc/rabbitmq-server and ran a test in a shell.

> T=/tmp/rmq
> mkdir $T
> export RABBITMQ_LOG_BASE="${T}/rabbitmq/log"
> export RABBITMQ_MNESIA_BASE="${T}/rabbitmq/mnesia"
> export RABBITMQ_LOGS="${T}/rabbitmq.log"
> export RABBITMQ_PID_FILE="${T}/rabbitmq.pid"
> export RABBITMQ_ENABLED_PLUGINS_FILE="${T}/rabbitmq/enabled_plugins"
> /usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672

The service came up as expected.

It also worked in src_test() of pika. But in the end there was an import error on "nose" in that function. Which indicates a problem in the pika ebuild, not surprising because that ebuild is actually test restricted.

So this bug here needs more info and a repro. The src_test of pika can not be used as reasoning, because it is in fact restricted and can not be done on a clean tree.