No more packages in the private repository and an error message

Questions about WAPT Server / Requests and help related to the WAPT server
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
Answer
deguilhl63r
Messages: 1
Registration: Apr 17, 2024 - 12:13

April 17, 2024 - 12:31

Current WAPT configuration
WAPT Server version: 1.7.4
WAPT Agent version: 1.7.4.6229
WAPT Setup version: 1.7.4.6229
WAPT Deploy version: 1.7.4.6229
Database status: OK (1.7.4.0)
Disk space: 80% free

Hello everyone,

Problem encountered
When I try to list the packages in the private repository, I get the message "BadZipFile is not a zip File".

The following command, in root mode on the server, returns the following:

Code: Select all

wapt-scanpackages /var/www/wapt -ldebug
Traceback (most recent call last):
  File "/opt/wapt/wapt-scanpackages.py", line 114, in <module>
    main()
  File "/opt/wapt/wapt-scanpackages.py", line 99, in main
    canonical_filenames=options.canonical_filenames)
  File "/opt/wapt/waptpackage.py", line 3690, in update_packages
    return repo.update_packages_index(force_all=force,proxies=proxies,canonical_filenames=canonical_filenames)
  File "/opt/wapt/waptpackage.py", line 3079, in update_packages_index
    for package in self.packages():
  File "/opt/wapt/waptpackage.py", line 2632, in packages
    self._load_packages_index()
  File "/opt/wapt/waptpackage.py", line 2929, in _load_packages_index
    with zipfile.ZipFile(StringIO.StringIO(packages_data_str)) as packages_file:
  File "/opt/wapt/custom_zip.py", line 843, in __init__
    self._GetContents()
  File "/opt/wapt/custom_zip.py", line 878, in _GetContents
    self._RealGetContents()
  File "/opt/wapt/custom_zip.py", line 894, in _RealGetContents
    raise BadZipFile("File is not a zip file")
custom_zip.BadZipFile: File is not a zip file

I can't find a *.zip file in the /var/www/wapt folder
I deleted the last package that was saved and met my expectations.

I ran the command wapt-scanpackages /var/www/wapt -ldebug again

And I still can't view the packages in the Private Repository.

Do you have a solution, please?
Thank you very much in advance
Have a good rest of the day
Answer