How to check the RabbitMQ version
Codemia Knowledge Hub ·
Run rabbitmqctl version to print just the RabbitMQ version (for example, 3.13.2). Use rabbitmqctl status when you also need the Erlang/OTP version. If the management plugin is enabled, the version also appears at the top of the web UI on port 15672. In Docker, prefix the commands with docker exec <container>.
rabbitmqctl version
This prints the server version and exits.
Output:
The command exists in RabbitMQ 3.8.6 and later. On older versions you get an error like "Error: could not recognise command."; use rabbitmqctl status instead.
rabbitmqctl status
status reports the RabbitMQ version, Erlang/OTP version, uptime, listeners and resource usage.
The output is long. To pull out just the version lines:
Typical output:
Because it includes the exact Erlang/OTP release, the full output is useful for bug reports and compatibility checks.
rabbitmq-diagnostics server_version
The rabbitmq-diagnostics CLI (available since RabbitMQ 3.8) has targeted commands:
Output:
For the Erlang version alone:
Output:
Add -q to either command to drop the "Asking node" line.
Management UI and HTTP API
With the rabbitmq_management plugin enabled:
- Open
http://your-server:15672/in a browser. - Log in (default is
guest/gueston localhost). - The overview page header shows the version, for example: "RabbitMQ 3.13.2, Erlang 26.2.3".
The plugin is not enabled in a fresh installation. If nothing is listening on port 15672, enable it:
The same information is available from the REST API:
Output:
For scripts, parse the JSON directly:
The default guest/guest credentials only work over loopback. Calling curl -u guest:guest http://remote-server:15672/api/overview from another machine returns 401. Create a new admin user or change the loopback_users configuration.
Docker, Docker Compose and Kubernetes
rabbitmqctl is not available on the Docker host, so run it inside the container:
With Docker Compose:
You can also read the image tag, but that is the image version, not necessarily the running server version if the image was rebuilt:
In Kubernetes:
Package manager queries
If RabbitMQ came from a system package manager, query the installed package:
The package version can differ from the running server. If you upgraded the package without restarting the service, dpkg -l shows the new version while rabbitmqctl version still shows the old one. Check the running server, not just the package.
Comparing the methods
| Method | Requires running server | Shows Erlang version | Scriptable | Available since |
rabbitmqctl version | Yes | No | Yes | 3.8.6+ |
rabbitmqctl status | Yes | Yes | Yes (parse output) | All versions |
rabbitmq-diagnostics server_version | Yes | No (separate command) | Yes | 3.8+ |
| Management UI | Yes + plugin enabled | Yes | No | 3.x with plugin |
Management API (/api/overview) | Yes + plugin enabled | Yes | Yes (JSON) | 3.x with plugin |
| Package manager query | No | No | Yes | N/A |
Checking Erlang compatibility
Each RabbitMQ release supports a specific range of Erlang/OTP versions. An unsupported combination can cause crashes, silent data corruption or performance degradation, so check Erlang after you check RabbitMQ.
| RabbitMQ version | Minimum Erlang | Maximum Erlang | Notes |
| 3.13.x | 26.0 | 26.x | Current release series |
| 3.12.x | 25.0 | 26.x | Previous release |
| 3.11.x | 25.0 | 25.x | End of life |
| 3.10.x | 24.3 | 25.x | End of life |
The authoritative, up-to-date table is the official compatibility matrix at rabbitmq.com/docs/which-erlang.
RabbitMQ 3.12+ requires Erlang 25+, and upgrading RabbitMQ without upgrading Erlang first causes startup failures. Check the matrix before upgrading either component.
Related reading
- RabbitMQ virtual host error when starting service
- RabbitMQ Visibility Timeout
- RabbitMQ vs Socket.io?
- RabbitMQ vs Web API + SignalR
- RabbitMQ Wait for a message with a timeout
- RabbitMQ wait for multiple queues to finish
- RabbitMQ What are Ready and Unacked types of messages?
- RabbitMQ What Does Celery Offer That Pika Doesn't?
System design interview problems on this topic
- Design a Distributed Messaging System: solution and walkthrough
- Design a Log Collection and Analysis System: solution and walkthrough
- Design an Ad Click Aggregation System: solution and walkthrough
- Design a Webhook Notification Service: solution and walkthrough

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.