This tag is for you when you get ETIMEDOUT errors trying to connect to a server or some other network-accessible service. If you're trying to connect to a service (redis, postgreSQL ...) show the service.
What is this?
ECONNREFUSED is an error from your operating system. It may come from some network communication protocol, or in rare cases from communication with other devices.
It means your operation did not complete within an allotted time, typically 30-60 seconds.
A related error is econnrefused. That one comes back promptly.
It means your request never arrived at the target machine or service, or that the machine or service completely ignored it.
Firewalls can cause this error, as can disconnected or switched-off servers.
Denial-of-service attacks on host machines can cause legitimate clients of those machines to get ETIMEDOUT errors.
Specific troubleshooting steps
- You do not know you can reach the host machine you're connecting to: that's the nature of timeouts.
- You cannot tell whether the service you want is running on the host machine.
- You cannot tell whether you have a username / password problem; those don't generate ETIMEDOUT errors.
- If you have a shell (command line program) try
ping example.com
whereexample.com
is the machine you want to connect to. If that doesn't work you have a network connection problem.
Make sure you use the correct hostname or IP address for your target machine.