jclouds.proxy-host not working
See original GitHub issueExpected Behavior
I was expecting that I could use proxy settings of jclouds, but there seems to be some problem with dependencies. Looks to me like the use of guice pulls versions of guice and guava that are incompatible with jclouds, and especially in the case of accessing Jenkins over http proxy.
Current Behavior
Properties props = new Properties()
props.setProperty('jclouds.proxy-host', '10.10.10.10')
props.setProperty('jclouds.proxy-port', '8080')
JenkinsClient client = JenkinsClient.builder()
.endPoint("https://some.com")
.credentials("none:secret")
.overrides(props)
.build()
SystemInfo info = client.api().systemApi().systemInfo()
Returns:
SystemInfo{errors=[Error{context=null, message=Unexpected exception being thrown: error=Error{context=null, message='java.lang.String com.google.common.net.HostAndPort.getHostText()', exceptionName=java.lang.NoSuchMethodError} connecting to HEAD https://some.com/ HTTP/1.1, exceptionName=org.jclouds.http.HttpResponseException}], hudsonVersion=-1, jenkinsVersion=-1, jenkinsSession=-1, instanceIdentity=-1, sshEndpoint=-1, server=-1}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[#JCLOUDS-1553] STSApi does not go through proxy
STSApi does not understand that the server uses a proxy. And the connection does not go through the proxy. STSApi api = ContextBuilder....
Read more >"Connect time out" error for jClouds via proxy - Stack Overflow
Caused by: java.net.SocketTimeoutException: connect timed out. I am able to access the horizon web interface of the same without any issues.
Read more >jclouds/Constants.java at master - GitHub
* If a proxy server is configured, it will be used for all types of schemes. * Set to false to not use...
Read more >[JENKINS-40515] The "no proxy host" seems to be ignored
Hi everybody,. The "No proxy hosts" variable in the advanced tab of the plugin management screen seems to be ignored. When i setup...
Read more >Re: Starting up hadoop cluster programatically
The Jsch source doesn't have any references to "proxyHost ", so I'm guessing ... < problem applying options to node(556284): > org.jclouds.ssh.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cdancy ,@sorend You can try to use jvm proxy as alternative until jclouds released there changes Properties props = new Properties(); props.setProperty(“jclouds.enable-jvm-proxy”, “true”);
then pass the arguments as run time -Dhttp.proxyHost={host} -Dhttp.proxyPort={port}
I have not used the library extensively yet, but haven’t run into other problems as of now (when using the library with a Jenkins that is not behind proxy)
It appears it might’ve been fixed in Jclouds: https://github.com/apache/jclouds/commit/62767a14610fc1c97c440dbd5ee0f02b276a1069#diff-01bcf54846bea2a9e8cd661cde19f0fd
But, as far as I can see there is no release after the fix.
BR, Søren