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

Cannot preload container runtime docker on windows client #6944

Closed
cvila84 opened this issue Mar 7, 2020 · 8 comments · Fixed by #6968
Closed

Cannot preload container runtime docker on windows client #6944

cvila84 opened this issue Mar 7, 2020 · 8 comments · Fixed by #6968
Assignees
Labels
co/preload kind/bug Categorizes issue or PR as related to a bug. os/windows priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@cvila84
Copy link
Contributor

cvila84 commented Mar 7, 2020

The exact command to reproduce the issue:
minikube start

The full output of the command that failed:


$ minikube start --v=8

  • minikube v1.8.1 on Microsoft Windows 7 Enterprise Service Pack 1 6.1.7601 Build 7601
  • Automatically selected the virtualbox driver
  • Downloading VM boot image ...

    minikube-v1.8.0.iso.sha256: 65 B / 65 B [--------------] 100.00% ? p/s 0s
    minikube-v1.8.0.iso: 173.56 MiB / 173.56 MiB [ 100.00% 1.97 MiB p/s 1m28s

  • Creating virtualbox VM (CPUs=2, Memory=4051MB, Disk=20000MB) ...
  • Downloading preloaded images tarball for k8s v1.17.3 ...

    preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 116.25 MiB / 499* Found network options:

    • HTTP_PROXY=http://10.43.216.8:8080
    • HTTPS_PROXY=http://10.43.216.8:8080
    • NO_PROXY=localhost,minikube,127.0.0.1,192.168.99.100
    • http_proxy=http://10.43.216.8:8080
    • https_proxy=http://10.43.216.8:8080
    • no_proxy=localhost,minikube,127.0.0.1,192.168.99.100

      preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 499.26 MiB / 499
      E0307 22:08:30.857999 10480 config.go:71] Failed to preload container runtime Docker: copying file: sudo test -d \ && sudo scp -t \ && sudo touch -d "2020-03-07 22:08:29.4839996 +0100" /preloaded.tar.lz4: Process exited with status 1
      output: , falling back to caching images

The operating system version:
Windows 7 x64

I think it is related to

fa, err := assets.NewFileAsset(tarballPath, filepath.Dir(dest), filepath.Base(dest), "0644")

The command is generated with windows filepath.Dir and filepath.Base whereas it is executed in the VM so with linux path separators

@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 8, 2020

Wonder how this one passed the integration tests (on Windows), but the fallback should be working

i.e. minikube should still be working, after "falling back to caching images"

@afbjorklund afbjorklund added kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. os/windows labels Mar 8, 2020
@cvila84
Copy link
Contributor Author

cvila84 commented Mar 8, 2020

I confirm the fallback works but it takes time as it first downloads 500M for nothing :)

@medyagh
Copy link
Member

medyagh commented Mar 8, 2020

@cvila84 thank you very much reporting this issue ! that is defentiy a bug !

shamefully our windows integration tests are broken, we have a WIP PR to add windows docker test for github actions.

I will make sure this bug is fixed as soon as possible.

@medyagh medyagh added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. co/preload and removed priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Mar 8, 2020
@cvila84
Copy link
Contributor Author

cvila84 commented Mar 9, 2020

@afbjorklund did not mean to be rude with my comment, I'm actually happy it still works !
@medyagh many thanks !

@Pbabbar7
Copy link

Pbabbar7 commented Mar 9, 2020

I am getting error..
> preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4: 499.26 MiB / 499
E0309 23:50:01.351036 4104 config.go:71] Failed to preload container runtime Docker: copying file: sudo test -d \ && sudo scp -t \ && sudo touch -d "2020-03-09 23:49:59.6914307 +0530" /preloaded.tar.lz4: Process exited with status 1
output: , falling back to caching images

@afbjorklund
Copy link
Collaborator

@afbjorklund did not mean to be rude with my comment, I'm actually happy it still works !

Sorry, I just meant it was sad that it failed in Windows - too few github reaction icons to click I suppose...

We need to get Windows CI back

@DeepakYadav17
Copy link

Failing for me too:
Failed to preload container runtime Docker: copying file: sudo test -d \ && sudo scp -t \ && sudo touch -d "2020-03-13 14:00:54.287043 +0530" \/preloaded.tar.lz4: Process exited with status 1

@hejunion
Copy link

retry more and using "minikube delete" for cleanning

#6938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/preload kind/bug Categorizes issue or PR as related to a bug. os/windows priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants