So I have the following code:
self.es.cluster.health(wait_for_status='yellow', request_timeout=1)
It was running originally but for some reason it stoped and I can't work out why, but no matter if I restart the server I will always get the following error.
{ConnectionError}ConnectionError(<urllib3.connection.HTTPConnection object at 0x00000203122196A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x00000203122196A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed)
Here is what ES is saying:
[2019-12-13T00:46:21,572][INFO ][o.e.l.LicenseService ] [DESKTOP-1N1BV30] license [5b61fe00-df18-4550-835d-24705d536ea9] mode [basic] - valid
[2019-12-13T00:46:21,574][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [DESKTOP-1N1BV30] Active license is now [BASIC]; Security is disabled
[2019-12-13T00:46:21,592][INFO ][o.e.g.GatewayService ] [DESKTOP-1N1BV30] recovered [2] indices into cluster_state
[2019-12-13T00:46:21,716][INFO ][o.e.h.AbstractHttpServerTransport] [DESKTOP-1N1BV30] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2019-12-13T00:46:21,723][INFO ][o.e.n.Node ] [DESKTOP-1N1BV30] started
[2019-12-13T00:46:22,031][INFO ][o.e.c.r.a.AllocationService] [DESKTOP-1N1BV30] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[forex][0]]]).
Why is this?
Thank you,
Merry Christmas.