Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using epel-formula behind proxy #33

Open
jbober opened this issue Mar 9, 2017 · 2 comments
Open

using epel-formula behind proxy #33

jbober opened this issue Mar 9, 2017 · 2 comments

Comments

@jbober
Copy link

jbober commented Mar 9, 2017

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.

@PropTim
Copy link
Contributor

PropTim commented Jul 12, 2017

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 ;)

@javierbertoli
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants