Open loicguillois opened 2 years ago
Depuis le VPN, nous avons fait une requête HTTPS vers pypi.org (en copiant la requête depuis les devtools Edge):
WebRequestSession
curl
python -m pip install s3cmd
depuis PowerShell ou cmd.exe ne fonctionne pas et termine en timeout.
On a pu un peu avancé en ajoutant une variable d'environnement SETX HTTPS_PROXY=http://squid.shom.fr:3128
. Cela nous a permis de faire marcher python -m pip install s3cmd
. Par contre, nous avons toujours des soucis pour parler à Cellar.
Sortie sans VPN
``` C:\Users\lguillois\Desktop\file_sync\file_sync>python corin_sync.py launch INFO:root:Corin synchronizer launched... after DEBUG:schedule:Running job Job(interval=1, unit=minutes, do=job, args=(), kwargs={}) INFO:root:Syncing Corin to local filesystem... coucou G4 INFO:root:Downloading ouvrage "G4" DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): agora.shom.fr:80 ERROR:root:Error while updating ouvrage "G4" C:\Users\lguillois\Desktop\file_sync\file_sync\corin_local\G4.xml G4.xml DEBUG:boto:path=/sppnaut-corin/G4.xml DEBUG:boto:auth_path=/sppnaut-corin/G4.xml DEBUG:boto:Method: PUT DEBUG:boto:Path: /sppnaut-corin/G4.xml DEBUG:boto:Data: DEBUG:boto:Headers: {'User-Agent': 'Boto/2.49.0 Python/3.7.6 Windows/10', 'Content-Type': 'text/xml', 'Content-MD5': 'Iqf0Vaf9NG6puEoK0SqVzQ==', 'Content-Length': '1062082', 'Expect': '100-Continue'} DEBUG:boto:Host: cellar-fr-north-hds-c1.services.clever-cloud.com:443 DEBUG:boto:Port: 443 DEBUG:boto:Params: {} DEBUG:boto:establishing HTTPS connection: host=cellar-fr-north-hds-c1.services.clever-cloud.com, kwargs={'timeout': 70, 'port': 443} DEBUG:boto:Token: None DEBUG:boto:StringToSign: PUT Iqf0Vaf9NG6puEoK0SqVzQ== text/xml Mon, 01 Aug 2022 09:16:58 GMT /sppnaut-corin/G4.xml DEBUG:boto:Signature: AWS C02LQ3V10SBVQXHW9U37:2nkpyMWwN6JoHclL2jamPrPV1xs= DEBUG:boto:Final headers: {'User-Agent': 'Boto/2.49.0 Python/3.7.6 Windows/10', 'Content-Type': 'text/xml', 'Content-MD5': 'Iqf0Vaf9NG6puEoK0SqVzQ==', 'Content-Length': '1062082', 'Expect': '100-Continue', 'Date': 'Mon, 01 Aug 2022 09:16:58 GMT', 'Authorization': 'AWS C02LQ3V10SBVQXHW9U37:2nkpyMWwN6JoHclL2jamPrPV1xs='} DEBUG:boto:Response headers: [('content-length', '0'), ('etag', '"22a7f455a7fd346ea9b84a0ad12a95cd"'), ('accept-ranges', 'bytes'), ('x-amz-request-id', 'tx0000000000000006a0d93-0062e79a0a-ed24dc-default'), ('date', 'Mon, 01 Aug 2022 09:16:58 GMT')] ERROR:root:Successfully updated ouvrage "C:\Users\lguillois\Desktop\file_sync\file_sync\corin_local\G4.xml" to Cellar g4p INFO:root:Downloading ouvrage "g4p" DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): agora.shom.fr:80 ERROR:root:Error while updating ouvrage "g4p" C:\Users\lguillois\Desktop\file_sync\file_sync\corin_local\g4p.xml g4p.xml DEBUG:boto:path=/sppnaut-corin/g4p.xml DEBUG:boto:auth_path=/sppnaut-corin/g4p.xml DEBUG:boto:Method: PUT DEBUG:boto:Path: /sppnaut-corin/g4p.xml DEBUG:boto:Data: DEBUG:boto:Headers: {'User-Agent': 'Boto/2.49.0 Python/3.7.6 Windows/10', 'Content-Type': 'text/xml', 'Content-MD5': 'DXd3d49NuMtU0/kFdctzvA==', 'Content-Length': '228', 'Expect': '100-Continue'} DEBUG:boto:Host: cellar-fr-north-hds-c1.services.clever-cloud.com:443 DEBUG:boto:Port: 443 DEBUG:boto:Params: {} DEBUG:boto:Token: None DEBUG:boto:StringToSign: PUT DXd3d49NuMtU0/kFdctzvA== text/xml Mon, 01 Aug 2022 09:17:20 GMT /sppnaut-corin/g4p.xml DEBUG:boto:Signature: AWS C02LQ3V10SBVQXHW9U37:y3IgaI4K3tzeINBjvK7Hj/TlOIw= DEBUG:boto:Final headers: {'User-Agent': 'Boto/2.49.0 Python/3.7.6 Windows/10', 'Content-Type': 'text/xml', 'Content-MD5': 'DXd3d49NuMtU0/kFdctzvA==', 'Content-Length': '228', 'Expect': '100-Continue', 'Date': 'Mon, 01 Aug 2022 09:17:20 GMT', 'Authorization': 'AWS C02LQ3V10SBVQXHW9U37:y3IgaI4K3tzeINBjvK7Hj/TlOIw='} DEBUG:boto:encountered RemoteDisconnected exception, reconnecting DEBUG:boto:establishing HTTPS connection: host=cellar-fr-north-hds-c1.services.clever-cloud.com, kwargs={'timeout': 70, 'port': 443} DEBUG:boto:Token: None DEBUG:boto:StringToSign: PUT DXd3d49NuMtU0/kFdctzvA== text/xml Mon, 01 Aug 2022 09:17:20 GMT /sppnaut-corin/g4p.xml DEBUG:boto:Signature: AWS C02LQ3V10SBVQXHW9U37:y3IgaI4K3tzeINBjvK7Hj/TlOIw= DEBUG:boto:Final headers: {'User-Agent': 'Boto/2.49.0 Python/3.7.6 Windows/10', 'Content-Type': 'text/xml', 'Content-MD5': 'DXd3d49NuMtU0/kFdctzvA==', 'Content-Length': '228', 'Expect': '100-Continue', 'Date': 'Mon, 01 Aug 2022 09:17:20 GMT', 'Authorization': 'AWS C02LQ3V10SBVQXHW9U37:y3IgaI4K3tzeINBjvK7Hj/TlOIw='} DEBUG:boto:Response headers: [('content-length', '0'), ('etag', '"0d7777778f4db8cb54d3f90575cb73bc"'), ('accept-ranges', 'bytes'), ('x-amz-request-id', 'tx0000000000000006a0da8-0062e79a20-ed24dc-default'), ('date', 'Mon, 01 Aug 2022 09:17:20 GMT')] ERROR:root:Successfully updated ouvrage "C:\Users\lguillois\Desktop\file_sync\file_sync\corin_local\g4p.xml" to Cellar ```Sortie avec VPN
``` C:\Users\lguillois\Desktop\file_sync\file_sync>python corin_sync.py launch Traceback (most recent call last): File "corin_sync.py", line 29, in