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

Provision fails: no sudo or rsync #109

Closed
lingo opened this Issue May 2, 2014 · 1 comment

Comments

Projects
None yet
3 participants
@lingo

lingo commented May 2, 2014

I'm using Debian squeeze on DigitalOcean.

Perhaps I'm doing something wrong, but the first step of provisioning (automatically run on vagrant up) causes this output.

==> default: Rsyncing folder: /***path obscured***/ => /vagrant...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir -p /vagrant
Stdout from the command:
Stderr from the command:
bash: sudo: command not found

This box seems not to have sudo or rsync installed by default. I can install them easily, but is there something I can do to make the vagrant up command work automagically?

@patcon

This comment has been minimized.

Show comment
Hide comment
@patcon

patcon Oct 17, 2014

Contributor

Hey @lingo! rsync installs automatically if you can get past the sudo issue.

fwiw, knife-solo has some code to steal (I'm just logging in to install sudo, then reprovisioning for now :)

https://github.com/matschaffer/knife-solo/blob/7f9f69da5e1afba90648c3f0b4e9bbc1ef244d3e/lib/knife-solo/ssh_command.rb#L238-L243

Contributor

patcon commented Oct 17, 2014

Hey @lingo! rsync installs automatically if you can get past the sudo issue.

fwiw, knife-solo has some code to steal (I'm just logging in to install sudo, then reprovisioning for now :)

https://github.com/matschaffer/knife-solo/blob/7f9f69da5e1afba90648c3f0b4e9bbc1ef244d3e/lib/knife-solo/ssh_command.rb#L238-L243

hendrikb added a commit to hendrikb/vagrant-digitalocean that referenced this issue Jan 13, 2016

Provide late sudo install on DO's debian-8 image
Various issues (as far as I can see #203 and #109) report a missing sudo on
DigitalOceans debian8 images. We're providing a late installation on vagrant up
which should fix these issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment