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

urlopen error : proxy issue? #40

Open
Fabien98 opened this issue Mar 15, 2017 · 11 comments
Open

urlopen error : proxy issue? #40

Fabien98 opened this issue Mar 15, 2017 · 11 comments

Comments

@Fabien98
Copy link

Hello,

I'm wondering if anybody is experiencing connection issue with this plugin when behind a proxy?
As for me, (I'm behind a proxy) , I can't download any collections and I systematically encounter:

Error : <urlopen error [Errno 10060] ..Failed attempt.. etc..

I precise that I can normally browse to Github with a regular browser through my proxy.

@akbargumbira
Copy link
Collaborator

akbargumbira commented Mar 17, 2017 via email

@lbartoletti
Copy link

Hi,

I can confirm this issue.
For me the error is "Error: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>"

Why? The plugin try to fetch resource directly without using proxy setting of QGis.

Regards.

@akbargumbira
Copy link
Collaborator

akbargumbira commented Nov 13, 2017

Hi,
Yes, the problem is that using git protocol, I need to inject the proxy to the connection. The work is still unfinished here https://github.com/akbargumbira/qgis_resources_sharing/tree/bug_fix_dulwich

@havatv
Copy link
Collaborator

havatv commented Mar 3, 2020

@Fabien98, @lbartoletti, in PR #85 I have upgraded dulwich to 0.19.15 (my impression is that dulwich is supposed to respect client proxy settings - https://www.dulwich.io/docs/).
It would be nice if you could check if that helps.

The PR has has been merged into master, so to test the dulwich upgrade:

  1. download: https://github.com/QGIS-Contribution/QGIS-ResourceSharing/archive/master.zip
  2. unzip in your plugin directory
  3. remove the directory that contains your current Resource Sharing plugin
  4. (re)start QGIS
  5. enable the plugin in the plugin manager
  6. run

@havatv
Copy link
Collaborator

havatv commented Mar 29, 2020

@Fabien98, @lbartoletti, version 0.12.0 of the Resource Sharing plugin is now on plugins.qgis.org, and can be installed from QGIS. It includes a number of fixes that can be relevant to this issue. Could you test with that version and report back?

@havatv
Copy link
Collaborator

havatv commented Apr 27, 2020

@borysiasty, you seem to have some experience with network access (the plugin manager) in QGIS.
What (if anything) do we need to do to support users that are behind proxies, so that they can benefit from Resource Sharing through this plugin?

@Fabien98
Copy link
Author

Hello, I've juste tested the last 0.14.1 version with QGIS 3.4.5.

It's OK to see description of different collections in the QGIS Resource Sharing plugin window, but it's still not possible for me to install them

Here's the last line debug log console information:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /qgis/QGIS-Resources.git/info/refs?service=git-upload-pack (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu'))

@havatv
Copy link
Collaborator

havatv commented Apr 29, 2020

Thanks a lot for testing, @Fabien98.
I think that the list of repositories is downloaded using the QGIS network manager. It is good to see that it seems work behind a proxy.
The collections are downloaded using "dulwich" - a Python library for working with git repositories. So the problem seems to be with dulwich. I have not been able to find out what to do to make dulwich use proxy settings.

jelmer/dulwich#545 indicates that it should be possible to get dulwich / porcelain to use proxy settings. @Fabien98, do you have these settings in place?

From what I can see from the dulwich documentation and code, it seem to be assumed that you are in a setting where you can use git from the command line on your computer to clone and pull repositories.
@Fabien98, if you do not already have git installed, could you install it, clone the github.com/qgis/QGIS-Resources.git repository and test if you can get git to work (pull)?
Unfortunately, I am not able to test myself, since I am not behind a proxy, and have not experienced this type of problem.

@borysiasty
Copy link

@havatv I'm afraid I don't have any direct experience with the proxy stuff :(

@havatv
Copy link
Collaborator

havatv commented May 5, 2020

@havatv I'm afraid I don't have any direct experience with the proxy stuff :(

Anyone else we/you could ask, @borysiasty?

@borysiasty
Copy link

Three ideas:

  1. @elpaso or e.g. @nyalldawson who knows everything (now they'll kill me :) )
  2. ask on qgis-developer list
  3. ask git blame who was involved in QgsNetwork.* classes

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

5 participants