Closed HerbCSO closed 3 years ago
Hi @HerbCSO
I am not sure if you are still facing the same issue. I just faced the same and in my case, it has been resolved by updating my DNS entries /etc/resolv.conf
.
Ah, yes, actually I managed to make it work by modifying the cerebro
script and adding these lines after the initial addJava
call:
addJava "-Dhttp.proxyHost=127.0.0.1"
addJava "-Dhttp.proxyPort=8118"
addJava "-Dhttps.proxyHost=127.0.0.1"
addJava "-Dhttps.proxyPort=8118"
So basically instead of using socksProxyHost
I needed to use http.proxyHost
and http.proxyPort
instead.
I'm running cerebro ad-hoc on my laptop when I need it. (MacOS Catalina 10.15.7, cerebro version 0.9.2) My company has now introduced the need to use local SOCKS5 proxy server to make the connection (it's complicated! ;] ). I've got
http_proxy
,https_proxy
,HTTP_PROXY
, andHTTPS_PROXY
environment variables set tohttp://127.0.0.1:8118
in the terminal window where I'm starting cerebro from. When I connect to http://localhost:9000 (this bit works, I get the cerebro page prompting me for the server URL) and enter the server address, it fails to make a connection with this error:A direct connection from my browser to the URL I gave cerebro works and returns the usual JSON info about the ES cluster, so I know I have the correct URL and the server is working. In the browser I have the proxy setup as well.
I've tried starting it with
bin/cerebro -DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8118
, but that still results in the same error.Since the error appears to come from
InetAddress.getAllByName
, I also tried using the IP address in case it was just a DNS issue, but then the error is this:I've tried playing with some of the other things on https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html but so far haven't been able to make it work. I'm probably missing something obvious, but I have no idea what... :/
Any chance you might have some ideas on what else I could try?