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

Failure when trying to scp files into Minikube VM #2678

Closed
chirangaalwis opened this issue Apr 5, 2018 · 10 comments
Closed

Failure when trying to scp files into Minikube VM #2678

chirangaalwis opened this issue Apr 5, 2018 · 10 comments

Comments

@chirangaalwis
Copy link

chirangaalwis commented Apr 5, 2018

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
A Bug report

Environment:

Minikube version (use minikube version): v0.25.2

  • OS (e.g. from /etc/os-release): Ubuntu 16.04.4 LTS (Xenial Xerus)
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): virtualbox
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): v0.25.1

What happened:
I am using the defined version of Minikube in the defined environment.

It is required for me to upload a tarfile (produced using docker save of certain Docker images) into the Minikube VM. Hence, I attempted the following two methods:

  • Using scp command manually.
    I tried using the following scp -i $(minikube ssh-key) <tarfile> docker@$(minikube ip):/home/docker.
    This attempt failed with a packet_write_wait: Connection to 192.168.99.100 port 22: Broken pipe lost connection error.
  • Using ~/.minikube/files folder as defined, here.
    This attempt also fails as follows:
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
E0405 13:51:12.443681    7960 start.go:234] Error updating cluster:  Error running scp command: sudo scp -t / output: : wait: remote command exited without exit status or exit signal
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
	minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:

Note:
I have setup a ~/.ssh/config file with following content:

Host *
    ServerAliveInterval 300
    ServerAliveCountMax 2

What you expected to happen: Successfully upload the tarfile from my local machine into the Minikube VM.

How to reproduce it (as minimally and precisely as possible): Follow steps defined in two methods under What happened section.

Anything else do we need to know:
If the steps I'm following are incorrect, please direct to the correct steps in achieving the above.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 6, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 5, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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/test-infra repository.

@padraicbaker
Copy link

I have this exact same problem. I need to move docker images onto the VM as part of an installation process. The images are about 5GB in total, and when I try to move them using .minikube/files, or scp I get the same symptoms. We are moving other files using the .minikube/files technique, so my guess is that it is a size issue.

@padraicbaker
Copy link

/reopen

@k8s-ci-robot
Copy link
Contributor

@pbaker7: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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/test-infra repository.

@padraicbaker
Copy link

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label May 23, 2019
@tstromberg
Copy link
Contributor

@pbaker7 - Do you mind opening a new issue that mentions this one? I suspect you may actually have a different environment from the original author here. I can always de-dupe it if not.

@yongyct
Copy link

yongyct commented Aug 4, 2021

any resolutions for this? i am also facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants