Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

When specifying recipe_url, SSH command responds with a non-zero exit status #1468

Closed
kadishmal opened this Issue · 4 comments

2 participants

@kadishmal

Here is the Vagrantfile for Vagrant 1.1.2:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "centos-6.3-x64"
  config.vm.box_url = "http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/vagrant-virtualbox-centos-6.3-x64-minimal.box/download"

  config.vm.provision :chef_solo do |chef|
    chef.recipe_url = "http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/chef-cookbooks.tar.gz/download"

    chef.add_recipe "java"
  end
end

Here is what happens when I do vagrant up:

D:\vagrant-demo>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos-6.3-x64'...
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.

Guest Additions Version: 4.1.18
VirtualBox Version: 4.2
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1 /tmp/vagrant-
chef-1/chef-solo-1/cookbooks

How should recipe_url be used? Related issue is #121 (Add ability to specify recipe URL for chef solo).

@mitchellh
Owner

You've found a bug! Fixing.

@mitchellh
Owner

Fixed in 78d05e7

@mitchellh mitchellh closed this
@kadishmal

@mitchellh does Vagrant redownload cookbooks from recipe_url on every vagrant up/reload? Because I experience a considerable delay at the point where cookbooks need to be compiled. Eg:

Generating chef JSON and uploading...
Running chef-solo...

At this point it takes some time.

Is this Vagrant's issue or is this chef-solo which redownloads the resource every time?

@mitchellh
Owner

This is Chef which re-downloads every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.