[SOLVED] Proxy error accessing the repository

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
root2.0
Messages: 6
Registration: June 18, 2018 - 11:35

June 18, 2018 - 11:46

Hello everyone,
I'm new to the forum. I was using version 1.13 until now, and I've upgraded to 1.15.
My problem is that I can no longer access the main repository. In version 1.13, you could search and find all the packages.
In advanced preferences, the proxy (http://proxy.lan.fr:2121) doesn't require authentication.
I've checked "Enable proxy for access to the main repository.

" When I go to "Private Repository," then "Import from Internet," and search
without a proxy, it asks me for "Repository settings." In version 1.13, we didn't have to fill anything in
with the proxy. I get the error: "An unhandled exception has occurred realTimeout HTTPConnectionPool(host='proxy.lan.fr'port=2121): read timed out. (read timeout=2)."
The proxy hasn't changed since then; it worked fine in version 1.13.
Thank you.
Last edited by root2.0 on June 18, 2018 - 3:54 PM, edited 1 time.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 18, 2018 - 12:49

The default 2-second timeout for repository access is likely too short for your infrastructure.
Any timeout settings in wapt-get.ini are not being applied due to a bug.

To work around this, simply modify the value in the file c:\program files(x86)\wapt\waptpackage.py on line 2288:

def __init__(self,url=None,name='',verify_cert=None,http_proxy=None,timeout=20.0, cabundle=None,config=None):
Tranquil IT
root2.0
Messages: 6
Registration: June 18, 2018 - 11:35

June 18, 2018 - 1:58 PM

Hi,
thanks, I changed the line, the error is gone. However, I'm still getting the "repository settings" request.
What should I enter?
Before, we didn't have to enter anything; it would retrieve it directly from the repository.
Thanks.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 18, 2018 - 2:37 PM

For the Tranquil IT repository and if your proxy is proxy.lan.fr who is listening on port 2121

Code: Select all

Nom du dépôt : store
Dépôt externe de paquets : https://store.wapt.fr/wapt
Proxy http à utiliser : http://proxy.lan.fr:2121
Tranquil IT
root2.0
Messages: 6
Registration: June 18, 2018 - 11:35

June 18, 2018 - 2:41 PM

That's awesome, it still works, thank you!
Locked