epel-formula icon indicating copy to clipboard operation
epel-formula copied to clipboard

using epel-formula behind proxy

Open jbober opened this issue 9 years ago • 2 comments

I work inside internal network and we have a proxy to be set when we want to connect to the external world. When using this formula I get: Comment: Failed to cache https://fedoraproject.org/static/0608B895.txt: Error: HTTP 599: Timeout reading https://fedoraproject.org/static/0608B895.txt

I believe the reason is I'm behind proxy. Nothing changes when I have http_proxy set What's best to resolve this? Should I download GPG keys and store them inside my /srv/salt ?

I manage rhel6 and rhel7 as well so I would like to be able to install correct keys to both, can I do it via pillar? Maybe I could modify init.sls and in the pillar I would setup proxy, but I'm not sure how those files with keys are actually downloaded.

jbober avatar Mar 09 '17 12:03 jbober

HTTP 599 is a connection timeout, so I doubt it's anything to do with key negotiations.

This is most likely a configuration issue and not directly related to this repo.

My only suggestion would be, stop using a proxy ;)

PropTim avatar Jul 12 '17 11:07 PropTim

As @PropTim says, it seems you're getting this error because of your proxy.

Is your proxy configured to let you request HTTPS pages? Maybe it's not, and as you're passing all your requests through it, it's just timing out? (of course, I'm totally guessing here 😄 ).

I think the best thing you can do, if you manage the proxy, is to check what's going on with it. You can check it from the CLI using wget

export http_proxy=http://your.proxy.ip:port/
wget --verbose https://fedoraproject.org/static/0608B895.txt

and see what happens.

If you can't fix the proxy issues, you can try downloading the keys' files and pass them to the formula in any of the ways source can handle. You can check here to find out which one is the best for your case.

javierbertoli avatar Jul 12 '17 12:07 javierbertoli