Provision fails since upgrade to 1.4.3 - undefined method `gsub' for nil:NilClass

234 views
Skip to first unread message

diego gullo

unread,
Feb 18, 2014, 1:29:38 AM2/18/14
to vagra...@googlegroups.com
I have just upgraded to the latest version of vagrant
Vagrant 1.4.3

with ruby

$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

with plugins

$ vagrant plugin list
vagrant-aws (0.4.1)
vagrant-puppet-install (2.0.0)

and since i cannot run provisioning anymore. Here extended error trace 

`$ vagrant provision
/opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/shell_quote.rb:9:in `escape': undefined method `gsub' for nil:NilClass (NoMethodError)
	from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/ssh_run.rb:37:in `call'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
	from /home/bizmate/.vagrant.d/gems/gems/vagrant-puppet-install-2.0.0/lib/vagrant-puppet-install/action/install_puppet.rb:40:in `call'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
	from /home/bizmate/.vagrant.d/gems/gems/vagrant-puppet-install-2.0.0/lib/vagrant-puppet-install/action/read_puppet_version.rb:40: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/lib/vagrant/action/builtin/provision.rb:52: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>'

Has anyone experienced anything like this? 
Since i rely on vagrant for everything these days i am now stuck until i can fix this


Teemu Matilainen

unread,
Feb 18, 2014, 8:57:45 PM2/18/14
to vagra...@googlegroups.com
Hi,

This seems to be known issue in vagrant-puppet-install: https://github.com/patcon/vagrant-puppet-install/issues/5

-- 
Cheers,
  Teemu



--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Peter M Souter

unread,
Feb 19, 2014, 9:18:24 AM2/19/14
to vagra...@googlegroups.com
Hi Diego!

I'm one of the maintainers of this plugin, we're working on getting it fixed asap.

Right now, the plugin will only work up to 1.3.5 and I'm thinking of adding a guard to stop it running on machines that are greater than 1.3.5:

Hopefully we can get it fixed soon!

diego gullo

unread,
Feb 19, 2014, 9:20:29 AM2/19/14
to vagra...@googlegroups.com
Hi Peter

thanks for the confirmation, no prob. I ll revert to 1.3.5 and update once fixed

thanks again

D

Peter M Souter

unread,
Mar 14, 2014, 10:13:34 AM3/14/14
to vagra...@googlegroups.com
For anyone interested, this is now fixed and works on 1.4.3

I'm working on testing it in 1.5 now 
Reply all
Reply to author
Forward
0 new messages