Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe

Phenomenon:
When starting the project today, this project used Elasticsearch service. This error was found in the background:
Under Caused by: io.net ty. Channel. AbstractChannel $AnnotatedConnectException: Connection refused: no further information:/127.0.0.1:9300
The error message prompts as follows:

The reason:
This project USES Elasticsearch search service. In the error message, elasticSearch.transport and other key information are shown. In fact, this error is caused by Elasticsearch service which failed to launch successfully.
Solutions:
Restart the Elasticsearch service (if it doesn’t work at one time, try shutting it down and restarting it again).

I rebooted it several times before It worked. Don’t lose heart

Read More: