`initialize': wrong number of arguments (1 for 0) (ArgumentError) upon running any command after upgrading to 1.3.3 #2229

Closed
viq opened this Issue Sep 19, 2013 · 2 comments

Comments

Projects
None yet
1 participant
Contributor

viq commented Sep 19, 2013

Running any command gives the following stack trace:

$ vagrant help
/opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/hosts/arch/host.rb:26:in `initialize': wrong number of arguments (1 for 0) (ArgumentError)
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:502:in `new'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:502:in `host'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:514:in `block in action_runner'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:28:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:28:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:274:in `hook'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:135:in `initialize'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/bin/vagrant:74:in `new'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/bin/vagrant:74: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>'

This is on 64 bit archlinux.
In case it's relevant, my Vagrantfile:

$ grep -v \# Vagrantfile | grep -v ^$
Vagrant.configure("2") do |config|
  config.vm.box = "obsd-current-i386"
  config.vm.network :private_network, ip: "192.168.50.4"
  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--memory", 512]
    v.customize ["modifyvm", :id, "--name", "obsd-porter-current-i386"]
  end
  config.vm.synced_folder "./vagrant", "/vagrant", id: "root", :nfs => true
  config.vm.synced_folder "~/Work/OpenBSD/distfiles", "/usr/ports/distfiles", :nfs => true
  config.vm.synced_folder "~/Work/OpenBSD/packages/current", "/usr/ports/packages", :nfs => true
  config.vm.synced_folder "~/Work/OpenBSD/openbsd-wip", "/usr/ports/openbsd-wip", :nfs => true
end
Contributor

viq commented Sep 19, 2013

For the record, I get the same error with 1.3.2

Contributor

viq commented Sep 19, 2013

With the above change, when trying to start the aforementioned machine I get:

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
/opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/hosts/linux/host.rb:89:in `nfs_prune': undefined method `info' for nil:NilClass (NoMethodError)
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/prune_nfs_exports.rb:12:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/env_set.rb:19:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/provision.rb:54:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/set_name.rb:19:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/machine.rb:147:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'

mitchellh closed this in #2233 Sep 19, 2013

jarig referenced this issue in chef/vagrant-omnibus Jan 6, 2014

Closed

support of windows guests #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment