sysdiglabs / kubectl-capture

A kubectl plugin which triggers a Sysdig capture
https://sysdig.com/opensource/inspect/
Apache License 2.0
99 stars 9 forks source link

Unable to un compress the downloaded file in MacOs #8

Open nareshgnT opened 4 years ago

nareshgnT commented 4 years ago

Successfully capture pod log and scrap.gz file download to local MacOs machine. But unable to extract .gz file and getting

gunzip - unexpected end of file tar - Unrecognized archive format

jaychan-q commented 4 years ago

Facing same issue on mac OS.

jchan$ file capture-hello-web-5f4fbf5588-c5cpx-1585858878.scap.gz 
capture-hello-web-5f4fbf5588-c5cpx-1585858878.scap.gz: gzip compressed data, from Unix
jchan$ gunzip capture-hello-web-5f4fbf5588-c5cpx-1585858878.scap.gz 
gunzip: capture-hello-web-5f4fbf5588-c5cpx-1585858878.scap.gz: unexpected end of file
gunzip: capture-hello-web-5f4fbf5588-c5cpx-1585858878.scap.gz: uncompress failed