RabbitMQ / Editorial solution guide
Queue declaration fails with a property conflict
Compare queue declarations and plan a safe topology correction without deleting live messages.
Read-only knowledge base · No public comments
Recognize the symptoms
A client attempting to declare an existing queue receives a channel-level precondition failure mentioning an inequivalent property or argument. The application may repeatedly reconnect and fail at the same declaration.
Understand the likely causes
- The existing queue and the client declaration can disagree on a property or relevant optional argument. Different application versions, virtual hosts or deployment defaults may be involved; behavior depends on the broker version and property.
Preserve the exact failure and identity
Record the sanitized broker error, client version, virtual host, queue name and application deployment that issued the declaration. Identify the property named in the error and capture the existing queue’s relevant attributes through the approved management interface. Compare the same virtual host and queue rather than a similarly named resource elsewhere. A channel-level failure can interrupt later operations on that channel, so inspect the application’s recovery loop without repeatedly recreating the resource.
Compare all topology owners
Find the declarations made by each authorized producer, consumer or infrastructure component and compare their required properties and optional arguments with the existing queue. Include effective policies where relevant, but do not assume every queue property can be changed by policy. Determine which contract is authoritative and whether a recent deployment changed it. A matching queue name does not mean clients agree on durability, type or other declaration settings.
Select a bounded correction
If the client declaration is wrong, correct it to match the approved topology and test with an isolated virtual host. If the intended queue property requires a new queue, plan a separately named destination, bindings, consumer readiness, cutover and rollback with the service owner. Account for existing messages and in-flight acknowledgments before any retirement. Do not delete a live queue, purge messages or broaden permissions merely to remove the error.
Verify declaration and business delivery
In the disposable topology, declare the intended queue from each participating client version and publish a synthetic identifiable message through the intended exchange and routing key. Verify the routing outcome, consumer processing and acknowledgment, then confirm an intentionally unmatched route follows the documented failure path. During a real migration, reconcile old and new queues and destination effects before retiring the former. A successful declaration alone does not establish message processing.
Verify the fix
Capture the corrected declarations and run outcome, including one successful synthetic business effect and the expected handling of an unmatched message. Confirm production queue depth and in-flight work are reconciled under the approved migration plan.
Keep it from recurring
- Version topology contracts with clients, coordinate incompatible changes and use policies for supported adjustable settings where appropriate. Exercise startup declarations and migration in an isolated environment before rollout.