Connection Refused after a while, restarting helps

(Johan Haest) #1


I'm running the following version of elasticsearch on my ubuntu server.

curl localhost:9200
  "status" : 200,
  "name" : "Desmond Pitt",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.4.5",
    "lucene_version" : "4.10.4",

But after a while (sometimes months sometimes days) I get a connection refused on elasticsearch.
When i just restart the service, it suddenly works again.
But since this runs in production I don't want the elasticsearch service to suddenly break.
It runs on localhost (port 9200), on the same server where the rest of the code resides.

Running curl localhost:9200 also returns a connection refused.

When I look into the logs I see these errors, ES stopped working on ~10:50 when i Restarted at 11:09. The [WARN ][cluster.service ] [George Washington Bridge] failed to reconnect to node seems to constantly appear but has no effect.

[2016-11-15 10:44:48,789][WARN ][cluster.service          ] [George Washington Bridge] failed to reconnect to node [George Washington Bridge][y0XjMTweT-CTRyGtLFObhA][bitnami-nginxstack-50be][inet[/]]
org.elasticsearch.transport.ConnectTransportException: [George Washington Bridge][inet[/]] connect_timeout[30s]
	at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$
	... 3 more
[2016-11-15 11:09:10,252][INFO ][node                     ] [Desmond Pitt] version[1.4.5], pid[33442], build[2aaf797/2015-04-27T08:06:06Z]
[2016-11-15 11:09:10,260][INFO ][node                     ] [Desmond Pitt] initializing ...
[2016-11-15 11:09:10,303][INFO ][plugins                  ] [Desmond Pitt] loaded [], sites []
[2016-11-15 11:09:18,785][INFO ][node                     ] [Desmond Pitt] initialized
[2016-11-15 11:09:18,786][INFO ][node                     ] [Desmond Pitt] starting ...
[2016-11-15 11:09:19,241][INFO ][transport                ] [Desmond Pitt] bound_address {inet[/]}, publish_address {inet[/]}
[2016-11-15 11:09:19,338][INFO ][discovery                ] [Desmond Pitt] elasticsearch/2-uc6WDiRwSTwsSXf8jg6A
[2016-11-15 11:09:23,185][INFO ][cluster.service          ] [Desmond Pitt] new_master [Desmond Pitt][2-uc6WDiRwSTwsSXf8jg6A][bitnami-nginxstack-50be][inet[/]], reason: zen-disco-join (elected_as_master)
[2016-11-15 11:09:23,461][INFO ][http                     ] [Desmond Pitt] bound_address {inet[/]}, publish_address {inet[/]}
[2016-11-15 11:09:23,462][INFO ][node                     ] [Desmond Pitt] started
[2016-11-15 11:09:25,327][INFO ][gateway                  ] [Desmond Pitt] recovered [6] indices into cluster_state
[2016-11-15 11:10:19,419][WARN ][cluster.service          ] [Desmond Pitt] failed to reconnect to node [Desmond Pitt][2-uc6WDiRwSTwsSXf8jg6A][bitnami-nginxstack-50be][inet[/]]
org.elasticsearch.transport.ConnectTransportException: [Desmond Pitt][inet[/]] connect_timeout[30s]
	at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(
	at org.elasticsearch.transport.netty.NettyTransport.connectToNode(
	at org.elasticsearch.transport.netty.NettyTransport.connectToNode(
	at org.elasticsearch.transport.TransportService.connectToNode(
	at org.elasticsearch.cluster.service.InternalClusterService$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: Connection refused: /
	at Method)
	... 3 more

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.