RabbitMQ "None of the specified endpoints were reachable": causes and fixes
Codemia Knowledge Hub ·
"None of the specified endpoints were reachable" means the RabbitMQ client could not connect to any of the servers in its connection string or configuration. The usual causes are a network or firewall problem, a server that is down, wrong credentials or virtual host, a TLS misconfiguration, or connection limits on the server.
What the client is trying to connect to
RabbitMQ clients connect over protocols such as AMQP, MQTT or STOMP, most commonly AMQP. The connection string or configuration supplies the hostname, port, username, password and virtual host:
The client parses this string and opens a TCP connection to that host and port, then authenticates with the given credentials and virtual host. If that fails for every endpoint, you get this error.
Common causes
- Network issues: no connectivity between the client and the RabbitMQ server.
- Incorrect credentials: wrong username, password or virtual host.
- Firewall restrictions: a firewall blocks RabbitMQ's ports (the default AMQP port is 5672).
- Server downtime: the server is down for maintenance or after a failure.
- SSL/TLS issues: TLS settings are misconfigured when a secure connection is required.
- Resource limits: connection or channel limits set by the server configuration or hosting environment have been reached.
Diagnosing the error step by step
- Check network connectivity: confirm the client can reach the server, for example with ping or telnet:
- Validate credentials: make sure the username, password and virtual host match what is configured on the server.
- Review firewall settings: confirm no rule blocks the required ports.
- Inspect the RabbitMQ logs: look for warnings or errors that explain why connections are refused.
- Check TLS configuration: if you connect over SSL/TLS, make sure the certificates are installed and valid and that client and server settings match.
- Monitor resource usage: high CPU or memory use on the server can stop it accepting new connections.
| Issue | Diagnostic Tool/Approach |
| Network Issues | Ping, Telnet |
| Incorrect Credentials | Check Connection String |
| Firewall Restrictions | Check Firewall Rules |
| RabbitMQ Server Downtime | RabbitMQ Server Logs |
| SSL/TLS Issues | Certificate and Configuration Verification |
| Resource Limits | System Monitoring Tools |
Example connection with Python's pika
Replace 'username', 'password', 'hostname' and 'vhost' with your actual values.
Related reading
- RabbitMQ not starting with message init terminating in do_boot, noproc on Ubuntu 18.04
- RabbitMQ on EC2 Consuming Tons of CPU
- RabbitMQ on Ubuntu 10.04 Server
- Rabbitmq or Gearman - choosing a jobs queue
- RabbitMQ pika.exceptions.Connection
- RabbitMQ PRECONDITION_FAILED - unknown delivery tag
- RabbitMQ persistent message with Topic exchange
- RabbitMQ, Pika and reconnection strategy
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.