[Wapt] somme md5 erronée sur paquet un peu "enrobé"

Gaëtan SEGAT gsegat at tranquil.it
Lun 13 Sep 11:48:25 CEST 2021


Est-ce possible de resigner les paquets ?

https://www.wapt.fr/fr/doc/wapt-command-line-interface.html?highlight=scanpackages#re-signing-packages-on-the-server-using-a-command-line

En ajoutant l'option -f pour forcer.

Gaëtan

Le 13/09/2021 à 10:46, Vincent Degat a écrit :
>
> Bonjour Gaetan,
>
> Merci de ta réponse. Oui, j'upload mes paquets via scp.
>
> Je n'ai peut être pas été très clair dans la description de mon 
> problème. J'ai un soucis à sa génération depuis mon poste de dev 
> (Windows 10, agent  2.0.0.9450-48).
>
> La somme md5 n'est pas bonne et cela bloque lors de l'étape de 
> téléchargement depuis les clients. (La signature est bien valide).
>
> Si je télécharge manuellement le paquet sur le client, celui 
> s'installe correctement.
>
>
> Je viens de faire l'essai en renommant à la main le paquet directement 
> sur mon serveur avec la bonne somme md5 et cela fonctionne. Je pense 
> que j'ai un bug sur mon agent Wapt et je m'étonne que le nom du 
> fichier (qui est non signé) soit utilisé quelque part dans le 
> processus d'installation!
>
> J'espère être plus clair.. :)
>
>
> Bonne journée
> Vincent
>
>
>
> ## Sur le serveur
> 10:33:10 root at WAPT.SRV:/datas/waptarchives # md5sum 
> xxxXXx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>
> ea5b2f5a6673a80e5ecad17e8139fda2 
> xxxXXx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>
> ## Sur le client
> 10:37:44 PC-xxXXxx33\installation C:\Program Files (x86)\wapt\cache # 
> wapt-get  install xxXXxx-config-w10-21h1-datas
> Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
> installing WAPT packages xxXXxx-config-w10-21h1-datas
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 39845888 / 4422211150 (1%) (72218 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 89128960 / 4422211150 (2%) (82570 KB/s)
>
> .....
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 4395630592 / 4422211150 (99%) (76540 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 4422211150 / 4422211150 (100%) (76600 KB/s)
> 2021-09-13 10:38:53,346 CRITICAL Error downloading package from http 
> repository, please update... error : Downloaded file 
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
> d41d8cd98f00b204e9800998ecf8427e
> 2021-09-13 10:38:53,348 CRITICAL Error downloading some files : 
> [('https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt', 
> 'Downloaded file 
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
> d41d8cd98f00b204e9800998ecf8427e')]
> 2021-09-13 10:38:53,350 CRITICAL Package xxXXxx-config-w10-21h1-datas 
> [x64_fr_PROD] not installed due to errors : EWaptDownloadError: 
> Package file 
> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> not downloaded properly.
>
>
>
>
>
> ## Je renomme le paquet sur le serveur:
> 10:36:42 root at wapt: /datas/waptarchives # mv 
> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt
>
>
>
> ## Et la ca fonctionne sur le client!
> https://WAPT.SRV/wapt-hostBonjour Gaetan,
>
> Oui, j'upload mes paquets via scp.
>
> Je n'ai peut etre pas été très clair dans la description de mon 
> probleme. J'ai un soucis à sa génération depuis mon poste de dev 
> (Windows 10, agent  2.0.0.9450-48).
>
> La somme md5 n'est pas bonne et cela bloque lors de l'étape de 
> téléchargement depuis les clients. (La signature est bien valide).
>
> Si je télécharge mannuellement le paquet sur le client, celui 
> s'installe correctement.
>
>
> Je viens de faire l'essai en renomant à la main le paquet avec la 
> bonne somme md5 et cela fonctionne. Je pense que j'ai un bug sur mon 
> agent Wapt et cela m'étonne que le nom du fichier (qui est non signé) 
> soit utilisé quelque part dans le processus d'installation!
>
> J'espère être plus clair.. :)
>
>
> Bonne journée
> Vincent
>
>
>
> ## Sur le serveur
> 10:33:10 root at WAPT.SRV:/datas/waptarchives # md5sum 
> xxxXXx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>
> ea5b2f5a6673a80e5ecad17e8139fda2 
> xxxXXx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>
>
> ## Sur le client
> 10:37:44 PC-xxXXxx33\installation C:\Program Files (x86)\wapt\cache # 
> wapt-get  install xxXXxx-config-w10-21h1-datas
> Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
> installing WAPT packages xxXXxx-config-w10-21h1-datas
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 39845888 / 4422211150 (1%) (72218 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 89128960 / 4422211150 (2%) (82570 KB/s)
> .....
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 4395630592 / 4422211150 (99%) (76540 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> : 4422211150 / 4422211150 (100%) (76600 KB/s)
> 2021-09-13 10:38:53,346 CRITICAL Error downloading package from http 
> repository, please update... error : Downloaded file 
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
> d41d8cd98f00b204e9800998ecf8427e
> 2021-09-13 10:38:53,348 CRITICAL Error downloading some files : 
> [('https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt', 
> 'Downloaded file 
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
> d41d8cd98f00b204e9800998ecf8427e')]
> 2021-09-13 10:38:53,350 CRITICAL Package xxXXxx-config-w10-21h1-datas 
> [x64_fr_PROD] not installed due to errors : EWaptDownloadError: 
> Package file 
> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> not downloaded properly.
>
>
>
>
>
> ## Je renomme le paquet sur le serveur:
> 10:36:42 root at wapt: /datas/waptarchives # mv 
> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
> xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt
>
>
>
> ## Et la ca fonctionne sur le client!
>
> 10:40:04 PC-xxXXxx33\installation C:\Program Files (x86)\wapt\cache # 
> wapt-get  install xxXXxx-config-w10-21h1-datas
> Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
> installing WAPT packages xxXXxx-config-w10-21h1-datas
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 33554432 / 4422211150 (1%) (60230 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 74448896 / 4422211150 (2%) (68256 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 113246208 / 4422211150 (3%) (69954 KB/s)
>
> ....
>
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 4350541824 / 4422211150 (98%) (71528 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 4392484864 / 4422211150 (99%) (71597 KB/s)
> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_ea5b2f5a6673a80e5ecad17e8139fda2.wapt 
> : 4422211150 / 4422211150 (100%) (71572 KB/s)
> Installing xxXXxx-config-w10-21h1-datas(=1-1)
>
> Le 13/09/2021 à 09:06, Gaëtan SEGAT via WAPT a écrit :
>>
>> Bonjour Vincent,
>>
>> cette méthode a-t-elle été testée ?
>>
>> https://www.wapt.fr/fr/doc/wapt-common-problems-and-questions.html#my-wapt-package-is-too-big-and-i-can-not-upload-it-on-the-repository
>>
>> Gaëtan
>>
>> Le 10/09/2021 à 19:32, Vincent Degat a écrit :
>>> Re-bonjour,
>>>
>>> pour compléter mon précédent mail, l'erreur me semble être 
>>> déclenchée  à la fin  du processus de téléchargement du paquet car 
>>> un upload/installation manuelle du paquet "initial" fonctionne bien 
>>> sur le client
>>>
>>>
>>>
>>> ########## LOG POWERSHELL d'installation manuelle
>>>
>>> 19:28:00 PC-xxXXxx326\installation C:\Users\installation # 
>>> Get-FileHash -Algorithm md5 -Path 
>>> .\xxXXxx-config-w10-21h1-datas_1-2_windows_0f4137ed1502b5045d6083aa258b5c42.wapt
>>>
>>> Algorithm Hash Path
>>> --------- ---- ----
>>> MD5 AA3F8F7B10B5E14C5F58D56430EF8203 
>>> C:\Users\installation\xxXXxx-config-w10-21h1-datas_1-2_windows_0f4137ed1502b5045d6083aa258b5c42.wapt 
>>>
>>>
>>>
>>> 19:28:24 PC-xxXXxx326\installation C:\Users\installation # wapt-get 
>>> install 
>>> .\xxXXxx-config-w10-21h1-datas_1-2_windows_0f4137ed1502b5045d6083aa258b5c42.wapt
>>> Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
>>> Installing WAPT files 
>>> .\xxXXxx-config-w10-21h1-datas_1-2_windows_0f4137ed1502b5045d6083aa258b5c42.wapt
>>> ##############
>>>
>>>
>>>
>>>
>>> Le 10/09/2021 à 19:01, Vincent Degat a écrit :
>>>>
>>>> Bonjour tout le monde,
>>>>
>>>> Ma config:
>>>> - serveur debian 10
>>>> - tis-waptserver: 2.0.0.9450-7bc6920c-debian-10-amd64
>>>>
>>>>
>>>> J'ai un problème de paquet qui refuse de s'installer sur mes 
>>>> clients du a une mauvaise sommes de contrôle.  La seule différence 
>>>> entre ce paquet et les autres est sa taille (4,26 gigas), pour info 
>>>> c'est l'iso d'installation de Windows 10.
>>>>
>>>> J'ai essayé de générer le paquet via la commande "wapt-get 
>>>> build-upload" et via l'IDE vscode. Je ne vois pas d'erreur à sa 
>>>> génération (voir si dessous) mais j'ai bien une différence entre le 
>>>> md5 du nom du paquet et sa somme "véridique".
>>>>
>>>>
>>>> Je pense que c'est un bug car via la console d'admin j'ai modifié 
>>>> sa "maturité" pour déclencher le processus de re-génération et le 
>>>> paquet de sorti  est fonctionel !
>>>>
>>>> Soit j'ai un bug sur la configuration de mon poste de développement 
>>>> (c'est possible je viens de le réinstaller), mais pourquoi mon 
>>>> paquet est alors autorisé sur le serveur et que sa regénération 
>>>> fonctionne sur le client?
>>>>
>>>>
>>>> D'avance merci, dites moi si des infos complémentaires peuvent être 
>>>> utiles.
>>>>
>>>> Bon week-end!
>>>> Vincent
>>>>
>>>>
>>>> PS: j'ai forcé le format HTML sur le mail pour avoir une mise en 
>>>> forme au mieux lisible.
>>>>
>>>>
>>>> ####  Génération du paquet
>>>> 17:46:10 VM-xxXXxx-DEV\installation 
>>>> Z:\waptdev\xxXXxx-config-w10-21h1-datas-wapt # wapt-get 
>>>> build-upload . Using config file: 
>>>> C:\Users\installation\AppData\Local\waptconsole\waptconsole.ini
>>>> Building packages 1 packages
>>>> Personal certificate is xxXXxx-vincent
>>>> Please type the password to decrypt the private key 
>>>> Z:\waptdev\private\WAPT-CERT
>>>> Password:
>>>> Private key is <SSLPrivateKey 'Z:\\waptdev\\private\\WAPT-CERT'>
>>>> Personal certificate is SSLCertificate cn=xxXXxx-vincent
>>>> Private key is <SSLPrivateKey 'Z:\\waptdev\\private\\WAPT-CERT'>
>>>> Building  .
>>>> Signing . with key <SSLPrivateKey 
>>>> 'Z:\\waptdev\\private\\WAPT-CERT'> and certificate xxXXxx-vincent 
>>>> (Z:\waptdev\private\WAPT-CERT.crt)
>>>> Package . signed : signature : mGpJzRovwm...betV8V4A=
>>>> ...done building. Package filename 
>>>> Z:\waptdev\xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>>>> 1 packages successfully built
>>>> 0 packages failed
>>>> Building and uploading packages to https://WAPT.SRV
>>>> Please get login for https://WAPT.SRV/api/v3/upload_xxx:USERNAME
>>>> Password:
>>>> Uploading 
>>>> Z:\waptdev\xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt: 
>>>> 2097152 / 4422211150
>>>> Uploading 
>>>> Z:\waptdev\xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt: 
>>>> 4194304 / 4422211150
>>>> Uploading 
>>>> Z:\waptdev\xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt: 
>>>> 6291456 / 4422211150
>>>> ....
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> #### Sommes MD5
>>>> md5sum 
>>>> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>>>>
>>>> ea5b2f5a6673a80e5ecad17e8139fda2 
>>>> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt
>>>>
>>>>
>>>>
>>>> ## Logs d'erreurs  d'installation côté client
>>>>
>>>> .......
>>>> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
>>>> : 4422211150 / 4422211150 (100%) (69958 KB/s)
>>>> 2021-09-10 18:13:39,550 CRITICAL Error downloading package from 
>>>> http repository, please update... error : Downloaded file 
>>>> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
>>>> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
>>>> d41d8cd98f00b204e9800998ecf8427e
>>>> 2021-09-10 18:13:39,555 CRITICAL Error downloading some files : 
>>>> [('https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt', 
>>>> 'Downloaded file 
>>>> https://WAPT.SRV/wapt/xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
>>>> md5 ea5b2f5a6673a80e5ecad17e8139fda2 does not match expected 
>>>> d41d8cd98f00b204e9800998ecf8427e')]
>>>> 2021-09-10 18:13:39,560 CRITICAL Package 
>>>> xxXXxx-config-w10-21h1-datas [x64_fr_PROD] not installed due to 
>>>> errors : EWaptDownloadError: Package file 
>>>> xxXXxx-config-w10-21h1-datas_1-1_d41d8cd98f00b204e9800998ecf8427e.wapt 
>>>> not downloaded properly.
>>>> Installing xxXXxx-config-w10-21h1-install(=1-8)
>>>> 2021-09-10 18:13:39,683 CRITICAL Package 
>>>> xxXXxx-config-w10-21h1-install(=1-8) [x64_fr_PROD] not installed 
>>>> due to errors : EWaptUnavailablePackage: Missing dependencies: 
>>>> xxXXxx-config-w10-21h1-datas
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Vincent Degat
>>>> Tél: 02 40 37 16 82
>>>> Laboratoire de recherche en Hydrodynamique,
>>>> Énergétique et Environnement Atmosphérique.
>>>> École Centrale de Nantes - CNRS - UMR 6598
>>>>
>>>> _______________________________________________
>>>> WAPT mailing list
>>>> WAPT at lists.tranquil.it
>>>> http://lists.tranquil.it/listinfo/wapt
>>>
>>>
>>> -- 
>>> Vincent Degat
>>> Tél: 02 40 37 16 82
>>> Laboratoire de recherche en Hydrodynamique,
>>> Énergétique et Environnement Atmosphérique.
>>> École Centrale de Nantes - CNRS - UMR 6598
>>>
>>> _______________________________________________
>>> WAPT mailing list
>>> WAPT at lists.tranquil.it
>>> http://lists.tranquil.it/listinfo/wapt
>>
>> _______________________________________________
>> WAPT mailing list
>> WAPT at lists.tranquil.it
>> http://lists.tranquil.it/listinfo/wapt
> -- 
> Vincent Degat
> Tél: 02 40 37 16 82
> Laboratoire de recherche en Hydrodynamique,
> Énergétique et Environnement Atmosphérique.
> École Centrale de Nantes - C.N.R.S. UMR 6598
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20210913/ecebf02d/attachment.htm>


Plus d'informations sur la liste de diffusion WAPT