I have Elasticsearch on Ubuntu VM.
I installed curator on the hosting windows server and succeeded to connect to elasticsearch, using the VM IP in the config file (and also succeeded to delete indices)
But when I installed Curator on the Ubuntu VM and try to connect using 127.0.0.1 or the VM IP, it fails.
I get "HTTP 503 error: ... A communication error occurred: "Operation timed out"... "
Not sure how your VM is installed or configured, but it seems odd, indeed, that localhost is not working there. Have you tried pointing Curator to the VM IP from within the VM, instead of 127.0.0.1?
Also, getting a 503 here is a strange response. Curator only logs the responses it receives (it received a 503), so that is whatever Curator is connecting to saying, "we can't process something here, sorry we failed." In other words, if it were Curator's problem, it would be a 4xx error, meaning "Curator made a bad request." A 5xx error, like the 503 you received, implies that the server had a problem. Since you clearly can access the host and port from outside and inside using Curl, something else is going on here. I do not know how VMs networking is handled in Windows, but it certainly sounds strange.
If you set blacklist: [] and also set loglevel: debug in your configuration file, you will receive a lot more logging data. Perhaps something else will show up and help in debugging this.
Do you have a system-level proxy configured? This may be an automatic behavior. Curator won't automatically query a proxy, so I presume this is enforced at the network level, either with the host OS, or the VM itself. It seems an extremely odd thing to do to make a localhost connection reach through a proxy. I do not know a way to work around this, as I do not use VMs in Windows.
So, I expected curator to ignore the proxy for 127.0.0.1 or the VM IP, but it didn't.
Since it is Ubuntu, I thought it might be related to case sensitivity, so I added another environment variable:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.