Page 1 of 1

BadZip File

Published: May 4, 2021 - 3:17 PM
by Red1
Hello everyone,

I'm a novice in system administration, as most of my career has been in support and workstation management (I apologize in advance if this is unclear).

Since yesterday, I haven't been able to deploy packages from the WAPT console (WAPT Server version: 1.8.2 on Debian; WAPT Setup version: 1.8.2.7334
), all using the Community edition.
When I try to access the package group and repositories tabs, I consistently get the following message: "BadZip File: File is not a zip file."

I've run `apt update && upgrade` and reinstalled the console, but nothing has changed.

Thank you in advance for your help.

Re: BadZip File

Published: May 7, 2021 - 3:32 PM
by Red1
Hello to myself and anyone else who might encounter the same problem.

I finally figured out that the Packages file located in /var/www/wapt was corrupted.
So, we go to the /var/www/wapt directory and then use `rm Packages` to delete the file.
Next, we run `wapt-scanpackages` in the same directory to rebuild the Packages file.

Then we can restart the wapt console and access the repository and package group again.

Re: BadZip File

Published: May 18, 2021 - 3:35 PM
by dcardon
This is an unusual problem. Did your machine crash? It's possible that two processes tried to update the file simultaneously, but that's quite unlikely under normal operating conditions.