Skip to content
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

sudo tar -I lz4 -C /var -xvf /preloaded.tar.lz4: exit status 2 #6965

Closed
wuyd2 opened this issue Mar 9, 2020 · 3 comments
Closed

sudo tar -I lz4 -C /var -xvf /preloaded.tar.lz4: exit status 2 #6965

wuyd2 opened this issue Mar 9, 2020 · 3 comments
Labels
co/none-driver triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@wuyd2
Copy link

wuyd2 commented Mar 9, 2020

centos7 Virtual Machine [Vmware]
[root@localhost ~]# minikube start --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --vm-driver=none

  • minikube v1.8.1 on Centos 7.4.1708
  • Using the none driver based on user configuration
  • Using image repository registry.cn-hangzhou.aliyuncs.com/google_containers
  • Running on localhost (CPUs=4, Memory=1494MB, Disk=100001MB) ...
  • Downloading preloaded images tarball for k8s v1.17.3 ...
  • OS release is CentOS Linux 7 (Core)

    preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 9.86 KiB / 499.2E0309 08:35:00.433747 75580 config.go:71] Failed to preload container runtime Docker: extracting tarball:
    ** stderr **
    Error 68 : Unfinished stream
    tar: Child returned status 68
    tar: Error is not recoverable: exiting now

** /stderr **: sudo tar -I lz4 -C /var -xvf /preloaded.tar.lz4: exit status 2
stdout:

stderr:
Error 68 : Unfinished stream
tar: Child returned status 68
tar: Error is not recoverable: exiting now
, falling back to caching images
> preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 169.52 KiB / 499* Preparing Kubernetes v1.17.3 on Docker 19.03.7 ...
> preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 198.83 KiB / 499* Launching Kubernetes ...
> preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 200.18 KiB / 499*
X Error starting cluster: init failed. output: "": /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.17.3:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification": signal: segmentation fault
stdout:

stderr:

@afbjorklund
Copy link
Collaborator

Do you have lz4 installed ? Seems like tar installed half an image, maybe there should some sanity checks after unpacking... Not sure how you would disable the preload

@tstromberg
Copy link
Contributor

I believe this was fixed in v1.8.2. Do you mind confirming?

@tstromberg tstromberg added the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 18, 2020
@tstromberg
Copy link
Contributor

Confirmed that we now skip preload for non-VM machines:
#7015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants