-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZlibError: zlib: unexpected end of file for cp.cpFromPod method #1521
Comments
I suspect that the network connection is getting interrupted, can you try to reproduce this locally with a minikube cluster where network isn't a problem? |
There's also this PR that may help: |
hi @brendandburns 1396 does not provide any workaround or solution |
https://github.com/kubernetes-client/javascript/blob/master/src/cp.ts i guess it is because tar.x command is executed before "tar zcf" command is finished |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
when I use cp.cpFromPod for a file with size about 6MB, I get error
c:\typescript\node_modules\minizlib\index.js:154
this[_onError](new ZlibError(err))
^
ZlibError: zlib: unexpected end of file
at Unzip.write (c:\typescript\node_modules\minizlib\index.js:154:22)
at Unzip.flush (c:\typescript\node_modules\minizlib\index.js:105:10)
at Unzip.end (c:\typescript\node_modules\minizlib\index.js:111:10)
at Unpack.end (c:\typescript\node_modules\tar\lib\parse.js:544:21)
at Pipe.end (c:\typescript\node_modules\fs-minipass\node_modules\minipass\index.js:75:17)
at ReadStream.[emitEnd2] (c:\typescript\node_modules\fs-minipass\node_modules\minipass\index.js:522:9)
at ReadStream.[emitEnd] (c:\typescript\node_modules\fs-minipass\node_modules\minipass\index.js:507:21)
at ReadStream.emit (c:\typescript\node_modules\fs-minipass\node_modules\minipass\index.js:458:27)
at ReadStream.emit (c:\typescript\node_modules\fs-minipass\index.js:175:22)
at ReadStream.[maybeEmitEnd] (c:\typescript\node_modules\fs-minipass\node_modules\minipass\index.js:440:12) {
code: 'Z_BUF_ERROR',
errno: -5,
recoverable: false,
file: 'C:\Users\zhhuan\AppData\Local\Temp/8a34ec6b-69f2-41f5-8026-af4c23168279',
cwd: 'c:/typescript/json',
tarCode: 'TAR_ABORT'
}
I used latest version
The text was updated successfully, but these errors were encountered: