-
Notifications
You must be signed in to change notification settings - Fork 21
oracle_sso function can't connect from behind proxy #40
Comments
Proxy parameters should be handled by the function but they're currently not (see referenced issue). As an interim solution I would have expected the environment variables to work though. Are you sure these were set in the context of your puppet run? Are you running in agent/server mode? Regarding the broader connection issues, Oracle had the wonderful idea to change their SSO service 2 weeks after I pushed v2.9, effectively breaking my module. It looks like they keep changing the way it works regularly, so I'm waiting for some stability before drafting a patch version. |
Yes, I debugged all ENV's http_proxy, HTTP_PROXY, https_proxy, and HTTPS_PROXY right before the line with I was running Puppet masterless. Not agent/server mode. My initial expectation from reading the documentation of oracle_java, I was hoping that the env vars proxy to be honoured as a fallback, and only overwritten if That Oracle SSO service change is a pain, thanks very much for your work with oracle_java. |
You're absolutely right, I neglected the proxy parameters when I wrote the feature because of the sense of urgency (users of my module were pretty much stuck because of Oracle's SSO), and I use a transparent proxy myself so I didn't see that issue. It's a easy fix, I'll try to push it this week. In the meantime I recommend using v2.8.3. |
Oracle sure doesn't make it easy for the users :). Btw, I tried v2.8.3 and I got this error |
Ah, yes if you absolutely want that version on v2.8 you'll have to pass the checksum and URL manually via parameters. If not, you'll get 8u144 by default. |
I'm happy to downgrade for the time being :). |
…back to 8u151 and 2.9.x after antoineco/aco-oracle_java#40 is solved.
Hello, do we know workaround pls? |
@arteal can you try the branch mentioned above? |
I'm using current HEAD, my Puppetfile : mod 'aco-oracle_java', And I use proxy_server parameter : class { 'oracle_java': It works only if my puppet master can reach internet |
Your current HEAD is the master branch, not the sso-proxy branch. |
Ah, I'm really sorry, I've missed that. Now I am on sso-proxy branch, but unfortunately it is still not working for me :( I have pulled right version, merged that from development to production environment, restarted puppet master, but I still got : Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Connection refused - connect(2) at /etc/puppet/environments/development/modules/oracle_java/manifests/download.pp:33:17 on node mon2.xxx |
Hi @antoineco |
@wysockip this feature has not been released but you can try to checkout the |
so i have this part in my agent.pp: class { 'oracle_java': and it's giving me: Should i put the proxy_server in the config or it will take the $http_proxy value from the environment variables automatically? btw proxy is OK, as i used it for curls, wget's etc and working fine |
I have set it up in code, even in ENV vars, but still not working for me - same error as @wysockip |
Could you please confirm whether oracle_sso function works behind a proxy?
I have tried setting up both
a) environment variables proxy setting (
http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY, no_proxy, and NO_PROXY
)b) oracle_java's
proxy_server
attributebut I kept getting connection error to
download.oracle.com
I could only get it working by explicitly passing the proxy details to
Net::HTTP.start
:Would you expect the above to be necessary? Or should it use environment variables?
I understand that Net::HTTP should inherit the environment variables, but it didn't work.
Using ruby-2.2 with oracle_java 2.9.1 .
The text was updated successfully, but these errors were encountered: