[SOLVED] "Files corrupted" problem during package installation

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
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

June 5, 2023 - 1:51 PM

Good morning,

I recently created a package for installing the Ardublock 2.0 software. I verified its successful installation/uninstallation with PyScriptor. After importing it into the server (package creation), when I try to install it from the console, I get the following error message:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1282, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['col73-ardublock-2.0(=2.0-1)']: erreurs dans les paquets [[PackageRequest(package='col73-ardublock-2.0',version=(Version('2.0.0.0'), 1),architectures=['x64'],locales=['fr'],maturities=['PROD', 'DEV'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19044.2965'),max_os_version=Version('10.0.19044.2965')), PackageEntry('col73-ardublock-2.0','2.0-1' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3956, in install_wapt\n    packagetempdir = entry.unzip_package(cabundle=self.cabundle, target_dir = tempfile.mkdtemp(prefix=\'wapt\',dir=self.wapt_temp_dir))\n  File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2623, in unzip_package\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2615, in unzip_package\n    verified_by = self.check_package_signature(cabundle,ignore_missing_files=ignore_missing_files)\n  File "C:\\Program Files (x86)\\wapt\\waptpackage.py", line 2573, in check_package_signature\n    raise EWaptCorruptedFiles(\'Error in package %s in %s, [b][size=150]files corrupted, SHA not matching[/size] [/b]for %s\' % (self.asrequirement(), self.sourcespath, errors,))\nwaptpackage.EWaptCorruptedFiles: Error in package col73-ardublock-2.0(=2.0-1) in C:\\Windows\\TEMP\\wapto3v5s3pi, files corrupted, SHA not matching for [\'ArduBlock 2.0/app/compilation/python/Lib/site-packages/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_internal/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/chardet/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/distlib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/html5lib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/contrib/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pip/_vendor/urllib3/packages/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/pyflakes/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/serial/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/setuptools/__pycache__\', \'ArduBlock 2.0/app/compilation/python/Lib/site-packages/setuptools/_vendor/__pycache__\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.due.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.esp32.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.m4.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/print/.zero.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.due.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.esp32.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.m4.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-Fingerprint-Sensor-Library-master/examples/res/.zero.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-GFX-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-GFX-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/.gitignore\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/.travis.yml\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/examples/miniTFTWing/basic/.mega2560.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit-ST7735-Library-master/examples/miniTFTWing/graphicstest/.mega2560.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/RGBWstrandtest/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/RGBWstrandtest/.trinket.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/StrandtestBLE/.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/buttoncycler/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/simple/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/simple_new_operator/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/Adafruit_NeoPixel-master/examples/strandtest/.esp8266.test.skip\', \'ArduBlock 2.0/install/libraries/HX711/.gitignore\', \'ArduBlock 2.0/install/libraries/IRremote/.gitignore\', \'ArduBlock 2.0/install/libraries/IRremote/.travis.yml\', \'ArduBlock 2.0/install/libraries/TEA5767-master/.gitignore\', \'ArduBlock 2.0/install/libraries/iarduino_MultiServo-1.1.3/.gitattributes\', \'ArduBlock 2.0/install/libraries/iarduino_Pressure_BMP-2.0.2/.gitattributes\']\n']]
I recently encountered this error problemfiles corrupted, SHA not matching"during installation from the console, especially when the installation requires copying locally, from the package, of files with names containing accented characters (é, è, à ...) or empty folders.

I saw that a topic had been opened about this: viewtopic.php?p=11573&hilit=corrupted+files#p11573

It seems the problem hasn't been completely resolved? Is there a way to deploy the package in question while working around the issue until it's fixed? Will the upcoming version 2.4 fix this problem?
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 5, 2023 - 2:10 PM

Hello,

I just tested version 2.4 using the package build from the console. It works well, however, the pyc files are deleted from the folders during the build process. I'll look into how to prevent this deletion.

Simon
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

June 5, 2023 - 5:10 PM

Hello Simon,

Thank you for your reply. We will soon be upgrading to version 2.4. I will try again once the version change has been completed.
Best regards,
Brice
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

June 13, 2023 - 2:16 PM

Hi Brice,
version 2.4 with the fix is ​​out, I'm marking this topic as resolved.
Regards,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked