Vagrant up erroring out. invalid argument 'read' for box url -


i had new developer start morning, , vagrant erring out. unlike vagrant error have seen before. please help.

alex@alexs-macbook-pro ~/sites/hhlvh-box -  $ vagrant  there warnings and/or errors while loading vagrantfile  machine 'default'.    vagrantfile written earlier version of vagrant,  , while vagrant best can remain backwards  compatible, there cases things have changed  enough warrant message. these messages  shown below.    warnings:  * `config.vm.customize` calls virtualbox-specific. if you're  using other provider, you'll have use config.vm.provider in  v2 configuration block.    bringing machine 'default' 'virtualbox' provider...  ==> default: box 'hhlvh-box-v1.8.1' not found. attempting find , install...      default: box provider: virtualbox      default: box version: >= 0  /applications/vagrant/embedded/lib/ruby/2.0.0/json/common.rb:328:in `read': invalid argument - /users/alex/sites/hhlvh-box/debian7-hhlvh-v1.8.1.box (errno::einval)  /applications/vagrant/embedded/lib/ruby/2.0.0/json/common.rb:328:in `load'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/box_metadata.rb:24:in `initialize'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:448:in `new'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:448:in `block in metadata_url?'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:447:in `open'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:447:in `metadata_url?'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:72:in `block in call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:70:in `map'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/box_add.rb:70:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builder.rb:116:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `block in run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/util/busy.rb:19:in `busy'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/handle_box.rb:75:in `handle_box'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/handle_box.rb:42:in `block in call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/handle_box.rb:36:in `synchronize'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/handle_box.rb:36:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builder.rb:116:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `block in run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/util/busy.rb:19:in `busy'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builtin/call.rb:51:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/warden.rb:34:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/builder.rb:116:in `call'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `block in run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/util/busy.rb:19:in `busy'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:69:in `run'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/machine.rb:157:in `action'  /applications/vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/batch_action.rb:72:in `block (2 levels) in run' 

specs:

  • osx mavericks
  • virtualbox 4.3.8
  • vagrant 1.5

i thought might have vagrantfile, when attempted run vagrant box add /users/alex/sites/hhlvh-box/debian7-hhlvh-v1.8.1.box resulted in same error.

vagrantfile:

# -*- mode: ruby -*- # vi: set ft=ruby :  vagrant::config.run |config|   config.vm.box = "hhlvh-box-v1.8.1"   config.vm.box_url = "~/sites/hhlvh-box/debian7-hhlvh-v1.8.1.box"   config.vm.network :hostonly, "33.33.33.10"   config.vm.customize ["modifyvm", :id, "--memory", 2048]   config.vm.customize ["modifyvm", :id, "--cpus", 2]   config.vm.share_folder "v-chef", "/chef-server", "~/sites/chef-server", :nfs => true   config.vm.share_folder "v-api", "/var/www/website.org/current", "~/sites/api", :nfs => true   config.vm.share_folder "v-webui", "/var/www/ui/current", "~/sites/webui", :nfs => true   config.ssh.username = "hhadmin" end 

i submitted ticket via vagrant's github, , mitchellh says problem vagrant v1.5 , fixed in v1.5.1. resolved issue downloading v1.3.5, , worked charm.

cheers, jake


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -