vic icon indicating copy to clipboard operation
vic copied to clipboard

VCH logs bundle only cannot be opened or extracted

Open DooDleWilk opened this issue 3 years ago • 0 comments

Summary

When downloading the VCH logs from the VCH Management portal (just VCH Logs, not the bundle with Container logs), the produced ZIP archive cannot be opened, as it reports this :

# unzip logs.zip
Archive:  logs.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of logs.zip or
        logs.zip.zip, and cannot find logs.zip.ZIP, period.

Environment information

Fresh deployment of VCH 1.5.8

vSphere and vCenter Server version

Not Applicable here, but vSphere 7.0U3

VIC version

v1.5.8

VCH configuration
./vic-machine-linux create \
--target https://vcsa1.gsslabs.org/Default-DC \
--user [email protected] \
--password 'VMware123!' \
--compute-resource Default-CL \
--bridge-network Bridge00-00_PortGroup \
--public-network Public-00 \
--public-network-ip 192.168.100.50/24 \
--public-network-gateway 192.168.100.254 \
--dns-server 192.168.0.10 \
--volume-store iSCSI-1/VCH00-00-vol:default \
--image-store iSCSI-1/VCH00-00-img \
--insecure-registry vicappliance00.gsslabs.org \
--insecure-registry 192.168.100.40 \
--no-tlsverify \
--thumbprint=0B:87:0E:73:F2:B5:60:6C:99:54:2E:4E:FF:EB:71:3A:41:95:DC:B8 \
--name VCH00-00

Details

When downloading the Default Log Bundle (for VCH logs only) the resulting archive cannot be extracted, without modifying its file extension to .tar

# mv logs.zip logs.tar
# tar -xf logs.tar
Steps to reproduce

Login to https://VCH_FQDN_OR_IP:2378 Click the Log Bundle link Attempt extracting it Receive error

Actual behavior

Archive cannot be opened

Expected behavior

Archive should be able to open

DooDleWilk avatar Jun 22 '22 10:06 DooDleWilk