AMQP reconnect storm

Landscape Server 26.04.0.1 on Ubuntu 26.04 with RabbitMQ 4.0.5 enters an AMQP reconnect storm during update_security_db.sh/process-usns.

process-usns inherits BatchScript _setup_amqp=True and loads canonical/txlongpoll/specs/amqp0-8.xml via txAMQP 0.8.2.

strace shows:
sendto(…, “AMQP\1\1\10\0”, 8, …)
recvfrom(…, “AMQP\3\1\0\0”, 8, …)

RabbitMQ logs:
{bad_version,{1,1,8,0}}
AMQFactory has initialDelay = 0.01, causing rapid reconnects and multi-GB logs.

Fresh install using manual install process with an app and db server.

1 Like

I did some investigating because I was having the same issue. Fresh install on 26.04. Here’s the problem:

Landscape only supports RabbitMQ versions 3.x, but 3.x was End-of-Life’d July 31, 2025 and more importantly, 26.04 only includes 4.x in its repo.
Major oversight, clearly Landscape needs to be updated to support RabbitMQ 4.x. I’ll open a bug report in Launchpad, hopefully this will get some visibility. I don’t know how they published instructions for installing Landscape on 26.04 without actually testing this because it clearly won’t work.

1 Like

Here’s the bug report.

1 Like

Encountered the rabbitmq version problem myself when upgrading our Landscape server.

Its somewhat documented, although not as good as it should be:

Landscape requires RabbitMQ 3.x. RabbitMQ 4.0 dropped support for the AMQP 0-8 protocol that Landscape depends on, so RabbitMQ 4.0 and later are not supported. Ubuntu 26.04 LTS (Resolute) ships RabbitMQ 4.x, so the Quickstart installation is not supported on Ubuntu 26.04. For a manual installation on Ubuntu 26.04, RabbitMQ must run on a separate machine with Ubuntu 22.04 LTS or Ubuntu 24.04 LTS.

Used this manual approach, but still ran the service on a separate VM:

2 Likes

Yeah I finally found the note you referenced. I think when I first went through the instructions I read that note up to the point where it said “Quickstart installation is not supported” and went “Ok, I saw that already, I’m doing a manual installation so I’m fine.” The bit about running RabbitMQ on a separate machine is right at the end of that note.

I think I’m just going to rebuild on 24.04 for now. Running a separate VM just for RabbitMQ seems like a waste.

1 Like