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

Windows installer does not work behind proxy #7

Open
faph opened this issue Jan 27, 2015 · 12 comments
Open

Windows installer does not work behind proxy #7

faph opened this issue Jan 27, 2015 · 12 comments
Assignees
Labels

Comments

@faph
Copy link
Contributor

faph commented Jan 27, 2015

The Windows installer uses conda to install the application packages. Conda needs proxy details for it to work behind a proxy.

@faph faph added the bug label Jan 27, 2015
@faph faph self-assigned this Jan 27, 2015
@faph
Copy link
Contributor Author

faph commented Jan 28, 2015

Conda uses requests which is supposed to be able to pick up the proxy settings from the Windows registry. It seems that there may be some issues with some complex (authenticating?) proxies?

@neilnutt
Copy link
Member

Yes it would be an authentication proxy as to use the qgis repos I need to
supply my username and password. If that is the best qgis can do I suspect
that might be reasonable to set manually entering as a best achievable
scenario.
On 28 Jan 2015 12:57, "Florenz A. P. Hollebrandse" notifications@github.com
wrote:

Conda uses requests which is supposed to be able to pick up the proxy
settings from the Windows registry. It seems that there may be some issues
with some complex (authenticating?) proxies?


Reply to this email directly or view it on GitHub
#7 (comment)
.

@faph
Copy link
Contributor Author

faph commented Jan 28, 2015

Thanks. Are you able to figure out where QGIS stores the username and password?

@faph
Copy link
Contributor Author

faph commented Jan 28, 2015

Found it. It saves it in plain text in the Windows registry. I'm assuming your proxy password is the same as your Windows/domain logon? Are your sysadmins happy that QGIS stores this in plain text?

@faph
Copy link
Contributor Author

faph commented Jan 28, 2015

It would be useful if you're able to run the urllib and requests getproxies() methods to see whether python detects the proxy address itself.

Note that all of this equally applies to downloading NRFA data, not just the installer.

@neilnutt
Copy link
Member

I'll take a look tomorrow
On 28 Jan 2015 20:32, "Florenz A. P. Hollebrandse" notifications@github.com
wrote:

It would be useful if you're able to run the urllib and requests
getproxies() methods to see whether python detects the proxy address
itself.

Note that all of this equally applies to downloading NRFA data, not just
the installer.


Reply to this email directly or view it on GitHub
#7 (comment)
.

@faph
Copy link
Contributor Author

faph commented Jan 28, 2015

It seems that QGIS is using some QT libraries for network access (http://qt-project.org/doc/qt-4.8/qnetworkproxy.html). In python it doesn't seem very straightforward dealing with NTLM proxies... It would be worth seeing if urllib gets through if you supplied it with your credentials. The problem of course is that I can't test any of this.

@neilnutt
Copy link
Member

My work proxy is pretty complex and possibly not typical. I think it would
just be best to neatly catch the failure, tell the user what has gone wrong
and suggest trying outside the proxy/firewall.
On 28 Jan 2015 20:58, "Florenz A. P. Hollebrandse" notifications@github.com
wrote:

It seems that QGIS is using some QT libraries for network access (
http://qt-project.org/doc/qt-4.8/qnetworkproxy.html). In python it
doesn't seem very straightforward dealing with NTLM proxies... It would be
worth seeing if urllib gets through if you supplied it with your
credentials. The problem of course is that I can't test any of this.


Reply to this email directly or view it on GitHub
#7 (comment)
.

@faph
Copy link
Contributor Author

faph commented Jan 30, 2015

It's likely that your company's proxy is Microsoft NTLM proxy (which seems to be a non-standard beast). Unfortunately there are probably quite a few big companies out there who use it.

@faph
Copy link
Contributor Author

faph commented Jan 30, 2015

For those amongst us that don't mind storing their proxy details in user environment variables, as a work-around please set these before installing OH Auto Statistical:

HTTP_PROXY: http://user:password@server:port
HTTPS_PROXY: http://user:password@server:port

Not sure if that works on all proxies.

@neilnutt
Copy link
Member

Will try this on Monday.

@faph
Copy link
Contributor Author

faph commented Feb 17, 2015

See also:
pypa/pip#1182
https://github.com/kennethreitz/requests/issues/2036

One option we can try is to install the Firewall Client for ISA Server, unset (system-wide) environment variables HTTP_PROXY and HTTPS_PROXY (if set) and set NO_PROXY=1.

We can easily integrate this in the installer, but if someone behind an MS proxy can first tell me that this actually works, that would be great. I can't test it.

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

No branches or pull requests

2 participants