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 fileI 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
