{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/5404","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5404/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5404/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5404/events","html_url":"https://github.com/mitchellh/vagrant/issues/5404","id":59280276,"number":5404,"title":"Shell provisioner fails to continue when running 'git clone'","user":{"login":"leifmadsen","id":768751,"avatar_url":"https://avatars.githubusercontent.com/u/768751?v=3","gravatar_id":"","url":"https://api.github.com/users/leifmadsen","html_url":"https://github.com/leifmadsen","followers_url":"https://api.github.com/users/leifmadsen/followers","following_url":"https://api.github.com/users/leifmadsen/following{/other_user}","gists_url":"https://api.github.com/users/leifmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/leifmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leifmadsen/subscriptions","organizations_url":"https://api.github.com/users/leifmadsen/orgs","repos_url":"https://api.github.com/users/leifmadsen/repos","events_url":"https://api.github.com/users/leifmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/leifmadsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T19:12:27Z","updated_at":"2015-02-27T20:20:29Z","closed_at":null,"body":"Trying to use the shell provisioner to spin up a new machine and install dependencies for a Rails application. I have a ```$shell_prov``` variable that contains a script with several commands. Most of these work up to the point of running a ```git clone``` command at which point it exits with error.\r\n\r\n```\r\n$shell_prov = <<SCRIPT\r\n...\r\ngit clone git://github.com/sstephenson/rbenv.git .rbenv\r\necho 'export PATH=\"$HOME/.rbenv/bin:$PATH\"' >> ~/.bashrc\r\n...\r\n```\r\n\r\nI've trimmed commands on either side of the above example. Prior commands are just ```apt-get install``` commands which work fine to install applications.\r\n\r\nHere is the relevant part of the Vagrantfile:\r\n\r\n```\r\n  config.vm.define \"web\" do |web|\r\n    web.vm.provision \"shell\", inline: $shell_prov\r\n    web.vm.box = 'chef/ubuntu-14.04'\r\n    web.vm.synced_folder \".\", \"/vagrant\"\r\n\r\n    web.vm.network :private_network, ip: \"10.203.175.16\"\r\n    web.vm.network :forwarded_port, guest: 3000, host:3080, protocol: 'tcp'\r\n    web.vm.hostname = \"web.local\"\r\n\r\n    web.vm.provider :virtualbox do |vb|\r\n      vb.name = \"web\"\r\n    end\r\n  end\r\n```\r\n\r\nError output:\r\n\r\n```\r\nDEBUG ssh: Sending SSH keep-alive...\r\nDEBUG ssh: stderr: Cloning into '.rbenv'...\r\n\r\n INFO interface: info: Cloning into '.rbenv'...\r\n INFO interface: info: ==> web: Cloning into '.rbenv'...\r\n==> web: Cloning into '.rbenv'...\r\nDEBUG ssh: Sending SSH keep-alive...\r\nDEBUG ssh: Sending SSH keep-alive...\r\nDEBUG ssh: Exit status: 0\r\n INFO warden: Calling OUT action: #<Proc:0x00000002b1d260@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Provision:0x00000001abe9a0>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::ClearForwardedPorts:0x00000001abeb58>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::SetName:0x000000018cef00>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::CleanMachineFolder:0x000000018cf040>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckAccessible:0x000000018cf108>\r\n INFO warden: Calling OUT action: #<Proc:0x000000028d4968@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Call:0x0000000287e108>\r\n INFO warden: Calling OUT action: #<Proc:0x000000028b8560@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Call:0x0000000272da10>\r\n INFO warden: Calling OUT action: #<Proc:0x0000000276f078@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Call:0x0000000273c128>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::BoxCheckOutdated:0x000000026f5430>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::ConfigValidate:0x000000026f5480>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckVirtualbox:0x000000026f54a8>\r\n INFO warden: Calling OUT action: #<Proc:0x000000014da7f0@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::MatchMACAddress:0x000000014da868>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::Import:0x000000014da8e0>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::Customize:0x000000014da958>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckAccessible:0x000000014da980>\r\n INFO warden: Calling OUT action: #<Proc:0x00000001901978@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Call:0x000000026f54f8>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::ConfigValidate:0x000000026f5520>\r\n INFO warden: Calling OUT action: #<Proc:0x00000002999f88@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::HandleBox:0x00000002965fd0>\r\n INFO warden: Calling OUT action: #<Proc:0x000000029e2e40@/opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:94 (lambda)>\r\n INFO warden: Calling OUT action: #<Vagrant::Action::Builtin::Call:0x000000026f5598>\r\n INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckVirtualbox:0x000000026f55c0>\r\n INFO environment: Released process lock: machine-action-291a253c8cb6785d30464df216324a44\r\nDEBUG environment: Attempting to acquire process-lock: dotlock\r\n INFO environment: Acquired process lock: dotlock\r\n INFO environment: Released process lock: dotlock\r\n INFO environment: Running hook: environment_unload\r\n INFO runner: Preparing hooks for middleware sequence...\r\n INFO runner: 2 hooks defined.\r\n INFO runner: Running action: #<Vagrant::Action::Builder:0x00000001acd7c0>\r\n```"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/76464749","html_url":"https://github.com/mitchellh/vagrant/issues/5404#issuecomment-76464749","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5404","id":76464749,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T20:20:29Z","updated_at":"2015-02-27T20:20:29Z","body":"What happens if you run those commands manually on the system?"}}