Project

Profile

Help

Issue #7864

Proxy settings not passed to Bandersnatch when syncing PyPi

Added by ByteSore 11 days ago. Updated 9 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
11/19/2020
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
Platform Release:
Target Release - Python:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When setting up a remote with a proxy, the settings are not being passed to Bandersnatch. When syncing there are errors in journalctl like:

Connection timeout to host https://pypi.org/pypi

History

#1 Updated by dalley 10 days ago

  • Project changed from Pulp to Python Support

#2 Updated by dalley 10 days ago

  • Triaged changed from No to Yes

#3 Updated by ByteSore 10 days ago

gerrod> hey ByteSore, I'm looking into your issue https://pulp.plan.io/issues/7864, and I was wondering if you have HTTP_PROXY or HTTPS_PROXY environment variables set to anything?

  • Yes, I did try with those environment vars. Also the all_proxy. But none of these worked out.

I've changed file site-packages/bandersnatch/master.py:81 to:

socks_connector = ProxyConnector.from_url("<proxy_url">)

Which bypasses self._check_for_socks_proxy()

Please register to edit this issue

Also available in: Atom PDF