Skip to content

Docker latest stuck on RabbitMQ startup, direct rabbitmq-server works #326

Description

@fayanimous

Hi,

I think there is an issue with the current ghcr.io/euro-office/documentserver:latest image.

I’m running it with Docker Compose for Nextcloud integration.

The container starts PostgreSQL correctly, then gets stuck here:

Starting PostgreSQL 16 database server
...done.
Postgres schema already present, skipping.
Starting RabbitMQ Messaging Server rabbitmq-server

After that, nothing else starts.

The healthcheck fails with:

curl: (56) Recv failure: Connection reset by peer

I checked the container and start-stop-daemon stays at almost 100% CPU:

start-stop-daemon --quiet --chuid rabbitmq \
  --start --exec /usr/sbin/rabbitmq-server \
  --pidfile /var/run/rabbitmq/pid --background

At this point RabbitMQ is not really started:

rabbitmqctl status

fails, and epmd -names only shows the rabbitmq CLI node.

No listener on 5672.

The interesting part is that RabbitMQ itself works fine if I start it manually inside the container:

su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/rabbitmq-server"

or:

su rabbitmq -s /bin/sh -c \
"RABBITMQ_PID_FILE=/var/run/rabbitmq/pid /usr/lib/rabbitmq/bin/rabbitmq-server -detached"

Then:

rabbitmqctl status

works correctly and ports 5672 and 25672 are listening.

I checked /entrypoint.sh and it currently starts RabbitMQ with:

service rabbitmq-server start

This call seems to be the part that hangs.

As a workaround, I built a small custom image where I replaced:

service rabbitmq-server start

with a direct detached RabbitMQ startup, then wait for:

rabbitmqctl status

before continuing.

With this workaround the container starts normally:

Starting RabbitMQ directly
...done.
Starting redis-server: redis-server.
Starting nginx nginx
...done.

and later:

converter entered RUNNING state
docservice entered RUNNING state

The healthcheck also works again:

HTTP/1.1 200 OK

true

Image used:

ghcr.io/euro-office/documentserver:latest

Created:

2026-08-04T08:22:40.568547219Z

Digest:

sha256:6068075cc247f9283d337b2cf9a105d9df49fcd8cd6b5e82fa90640df1552e80

I also noticed RabbitMQ data already present in the image under:

/var/lib/rabbitmq/mnesia/rabbit@buildkitsandbox

I don’t know if it is related, but I thought it was worth mentioning.

Let me know if you want more logs or tests.

Metadata

Metadata

Assignees

Type

Projects

Status
🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions