Page 1 of 1

files corrupted, SHA not matching

Published: January 10, 2024 - 09:24
by cefinformatique
Good morning,

I updated one of my packages by adding a directory to copy to the clients. I had already instructed the package to copy the following directories: sources\PATCH\REVAO

For this update, I added a "CommunLocal" subfolder in sources\PATCH\REVAO, but after sending the new package to the server via the console, I get the following error when installing it on the client machines:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3956, in install_wapt
    packagetempdir = entry.unzip_package(cabundle=self.cabundle, target_dir = tempfile.mkdtemp(prefix='wapt',dir=self.wapt_temp_dir))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2623, in unzip_package
    raise e
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2615, in unzip_package
    verified_by = self.check_package_signature(cabundle,ignore_missing_files=ignore_missing_files)
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2573, in check_package_signature
    raise EWaptCorruptedFiles('Error in package %s in %s, files corrupted, SHA not matching for %s' % (self.asrequirement(), self.sourcespath, errors,))
waptpackage.EWaptCorruptedFiles: Error in package cef-eic-menufed(=6.21.20.1-2) in C:\Windows\TEMP\wapt3kd11709, files corrupted, SHA not matching for ['sources/PATCH/REVAO/CommunLocal/ISAGI', 'sources/PATCH/REVAO/CommunLocal/Manuels', 'sources/PATCH/REVAO/CommunLocal/ModelesExcel']

EWaptCorruptedFiles: Error in package cef-eic-menufed(=6.21.20.1-2) in C:\Windows\TEMP\wapt3kd11709, files corrupted, SHA not matching for ['sources/PATCH/REVAO/CommunLocal/ISAGI', 'sources/PATCH/REVAO/CommunLocal/Manuels', 'sources/PATCH/REVAO/CommunLocal/ModelesExcel']

Re: files corrupted, SHA not matching

Published: January 10, 2024 - 10:22 AM
by dcardon
Hello Marc,

The "sha not matching" message indicates that after decompression, the file integrity check is inconclusive, meaning that some files have a SHA256 hash that doesn't match the one in the manifest file located in the WAPT directory of the package.

We've already encountered this issue with LNK files that Windows modifies on the fly, or with other files that antivirus software manipulates.

What types of files are in the directory in question?

Best regards,

Denis

Re: files corrupted, SHA not matching

Published: January 10, 2024 - 10:31
by cefinformatique
I was on version 2.3 and I was able to solve the problem by updating to 2.4

Re: files corrupted, SHA not matching

Published: January 10, 2024 - 10:37 AM
by dcardon
Okay, thanks for the feedback.

Were the directories in question empty? It's possible that empty directories were excluded in version 2.3.

You'll soon be able to perform a second update; version wapt 2.5.2 should be released in a few days. :-)

Denis