Vagrant up -> pathname contains null byte (ArgumentError)

Hi,
Here’s the full output (running on Win10)

C:\Users\Gad\Downloads\m312-vagrant-env>vagrant up
Traceback (most recent call last):
20: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/bin/vagrant:205:in <main>' 19: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/environment.rb:290:in cli’
18: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/cli.rb:67:in execute' 17: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/plugins/commands/up/command.rb:87:in execute’
16: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/plugin/v2/command.rb:232:in with_target_vms' 15: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/plugin/v2/command.rb:232:in each’
14: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/plugin/v2/command.rb:234:in block in with_target_vms' 13: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine.rb:590:in recover_machine’
12: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine.rb:590:in synchronize' 11: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine.rb:591:in block in recover_machine’
10: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:241:in recover' 9: from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/monitor.rb:235:in mon_synchronize’
8: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:242:in block in recover' 7: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:347:in with_index_lock’
6: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:347:in open' 5: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:349:in block in with_index_lock’
4: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:248:in block (2 levels) in recover' 3: from C:/HashiCorp/Vagrant/embedded/gems/2.2.10/gems/vagrant-2.2.10/lib/vagrant/machine_index.rb:282:in lock_machine’
2: from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/pathname.rb:410:in join' 1: from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/pathname.rb:410:in new’
C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0/pathname.rb:410:in `initialize’: pathname contains null byte (ArgumentError)

Please advice.

Thanks

Hi @Gad_Barnatan,

I would recommend you to share the version of Vagrant and Virtualbox that you are using:

vagrant --version
vboxmanage --version

In case, this issue has been resolved fir you, please share the solution as it would be beneficial for our Discussion Forum users.

Please feel free to reach out if you have any additional questions.

Kind Regards,
Sonali

Hi,
I installed everything on Win10 instead of Ubuntu and this resolved the issue for me.
I also encountered an issue with psutil but resolved it as mentioned in other thread by:

sudo apt-get install python-psutil
sudo pip install mtools==1.5.3

That worked for me only with Win10, but it’s perfectly fine and I managed to go on with the course.

Thanks

1 Like