hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.05k stars 4.42k forks source link

Vagrant up issue #13232

Open sanghara opened 1 year ago

sanghara commented 1 year ago

Hi Team ,

I'm facing plenty of times issue to make vagrant up in git bash even I'd setup ruby but still it remain same, please do find attached the evidence in below and kindly let me know the solution asap.

Error - :97:in `open': wrong number of arguments (given 2, expected 1) (ArgumentError)

Config Stuff- 1.Vagrant 2.VM Oracle Box 3.Package - ubuntu/focal64 4.Ruby without devkit 5.Gitbash

Thank you! Sangharaj

Expected Result - Vagrant successfully up and in VM box os should be run properly

Actual Result - Vagrant couldn't up getting issue

vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/focal64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/focal64' version '20230711.0.0' is up to date... ==> default: A newer version of the box 'ubuntu/focal64' for provider 'virtualbox' is ==> default: available! You currently have version '20230711.0.0'. The latest is version ==> default: '20230714.0.0'. Run vagrant box update to update. ==> default: Setting the name of the VM: ubuntu_default_1689598194048_74016 ==> default: Destroying VM and associated drives...

:97:in `open': wrong number of arguments (given 2, expected 1) (ArgumentError) from C:/Users/Welcome/.vagrant.d/gems/3.1.3/gems/rubyhacks-0.1.5/lib/rubyhacks.rb:690:in `entries' from C:/Users/Welcome/.vagrant.d/gems/3.1.3/gems/rubyhacks-0.1.5/lib/rubyhacks.rb:690:in `entries' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/platform.rb:278:in `block in fs_real_path' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/platform.rb:277:in `each' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/platform.rb:277:in `fs_real_path' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/synced_folders.rb:66:in `block (2 levels) in call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/synced_folders.rb:42:in `each' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/synced_folders.rb:42:in `block in call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/synced_folders.rb:41:in `each' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/synced_folders.rb:41:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/delayed.rb:19:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/prepare_nfs_valid_ids.rb:12:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:52:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/env_set.rb:19:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Users/Welcome/.vagrant.d/gems/3.1.3/gems/vagrant-hostmanager-1.8.9/lib/vagrant-hostmanager/action/update_all.rb:24:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/provision.rb:80:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/set_name.rb:50:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/clean_machine_folder.rb:26:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/call.rb:53:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/call.rb:53:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/call.rb:53:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/box_check_outdated.rb:93:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/check_virtualbox.rb:20:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/env_set.rb:19:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/match_mac_address.rb:22:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/discard_state.rb:15:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/import.rb:78:in `import' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/import.rb:13:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/prepare_clone_snapshot.rb:17:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/prepare_clone.rb:15:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/customize.rb:40:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/call.rb:53:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/config_validate.rb:25:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/handle_box.rb:56:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:127:in `block in finalize_action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builtin/call.rb:53:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/check_virtualbox.rb:20:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/builder.rb:180:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `block in run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/util/busy.rb:19:in `busy' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/runner.rb:101:in `run' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/machine.rb:248:in `action_raw' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/machine.rb:217:in `block in action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/environment.rb:631:in `lock' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/machine.rb:203:in `call' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/machine. .rb:203:in `action' from C:/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'
Geoff-Janrain commented 1 year ago

I am getting the same error from vagrant now.

searchinnerpeace commented 12 months ago

I was having similar problem running "vagrant up", and I've solved this way:

Output: C:/HashiCorp/Vagrant/embedded/gems/gems/i18n-1.14.1/lib/i18n.rb:210:in translate': wrong number of arguments (given 2, expected 0..1) (ArgumentError) from C:/Users/username/.vagrant.d/gems/3.1.3/gems/vagrant-vbguest-0.21.0/lib/vagrant-vbguest/middleware.rb:24:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib/vagrant/action/warden.rb:48:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.3.7/plugins/providers/virtualbox/action/customize.rb:40:incall'

I've opened C:/Users/username/.vagrant.d/gems/3.1.3/gems/vagrant-vbguest-0.21.0/lib/vagrant-vbguest/middleware.rb for edition Line 24: vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", machine.info)) Changed to: Line 24: vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", **machine.info))

More information: https://discuss.hashicorp.com/t/vagrant-digital-ocean-plugin-broken-with-2-3-6/54132