Skip to content

Instantly share code, notes, and snippets.

@odigity
Created February 25, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odigity/9211935 to your computer and use it in GitHub Desktop.
Save odigity/9211935 to your computer and use it in GitHub Desktop.
Vagrant 'file' provisioner doesn't seem to work.
# Vagrantfile
config.vm.provision :file, source: '~/.gitconfig', destination: '~/.gitconfig'
work@shinybox:~/src/testapp$ vagrant provision
[default] Running provisioner: file...
/opt/vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:392:in `await_response_state': scp: ~/.gitconfig: No such file or directory (RuntimeError)
from /opt/vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:363:in `block (3 levels) in start_command'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:311:in `call'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:311:in `process'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:222:in `block in preprocess'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:222:in `each'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:222:in `preprocess'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
from /opt/vagrant/embedded/gems/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:269:in `wait'
from /opt/vagrant/embedded/gems/gems/net-scp-1.1.2/lib/net/scp.rb:279:in `upload!'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/communicators/ssh/communicator.rb:121:in `block in upload'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/communicators/ssh/communicator.rb:404:in `block in scp_connect'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/communicators/ssh/communicator.rb:155:in `connect'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/communicators/ssh/communicator.rb:402:in `scp_connect'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/communicators/ssh/communicator.rb:115:in `upload'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/provisioners/file/provisioner.rb:11:in `block in provision'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/provisioners/file/provisioner.rb:5:in `tap'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/provisioners/file/provisioner.rb:5:in `provision'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/provision.rb:89:in `run_provisioner'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:95:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/environment.rb:283:in `hook'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/provision.rb:74:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/provision.rb:74:in `block in call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/provision.rb:65:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/provision.rb:65:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/call.rb:51:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/call.rb:51:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/machine.rb:147:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/provision/command.rb:35:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/plugin/v2/command.rb:193:in `block in with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/plugin/v2/command.rb:191:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/plugin/v2/command.rb:191:in `with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/provision/command.rb:34:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/cli.rb:38:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/environment.rb:484:in `cli'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/bin/vagrant:127:in `<top (required)>'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment