aalkilani / spark-kafka-cassandra-applying-lambda-architecture

Other
64 stars 52 forks source link

VM box fails to start with vagrant up #21

Closed jraikou closed 7 years ago

jraikou commented 7 years ago

I followed the steps for a windows 7 OS.. I do have many VM's loaded not using Vagrant for other projects. However then I use vagrant up... it goes through the download process and then tries to spin up the machine... then this.

$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'aalkilani/spark-kafka-cassandra-applying-lambda -architecture'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'aalkilani/spark-kafka-cassandra-applying-lambda-ar chitecture' is up to date... ==> default: Setting the name of the VM: vagrant_default_1490300145891_1425 ==> default: Destroying VM and associated drives... C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/is_port_o pen.rb:21:in initialize': The requested address is not valid in its context. - connect(2) for "0.0.0.0" port 10008 (Errno::EADDRNOTAVAIL) from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/is_port_open.rb:21:innew' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/is_port_open.rb:21:in block in is_port_open?' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:88:inbloc k in timeout' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in bloc k in catch' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:incatc h' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in catc h' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:103:intim eout' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/is_port_open.rb:19:in is_port_open?' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:248:inport_check' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:121:in []' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:121:inblock in handle' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:257:in block in with_forwarde d_ports' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:253:ineach' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:253:in with_forwarded_ports' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:98:inhandle' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:42:in block in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/e nvironment.rb:567:inlock' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_forwarded_port_collisions.rb:41:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/env_set.rb:19:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/provision.rb:80:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/clear_forwarded_ports.rb:15:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/set_name.rb:50:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/clean_machine_folder.rb:17:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/check_accessible.rb:18:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:in block in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:inbusy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/call.rb:53:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:inblock in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inblock in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inrun' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/call.rb:53:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:in block in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:inbusy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/call.rb:53:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/box_check_outdated.rb:78:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/config_validate.rb:25:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/check_virtualbox.rb:17:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:inblock in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/match_mac_address.rb:19:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/discard_state.rb:15:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/import.rb:74:in import' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/import.rb:13:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/prepare_clone_snapshot.rb:17:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/prepare_clone.rb:15:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/customize.rb:40:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/check_accessible.rb:18:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:inblock in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inblock in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inrun' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/call.rb:53:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/config_validate.rb:25:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:in block in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/handle_box.rb:56:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:95:inblock in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inblock in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inrun' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builtin/call.rb:53:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/provi ders/virtualbox/action/check_virtualbox.rb:17:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/builder.rb:116:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inblock in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/u til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/a ction/runner.rb:66:inrun' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/m achine.rb:225:in action_raw' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/m achine.rb:200:inblock in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/e nvironment.rb:567:in lock' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/m achine.rb:186:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/m achine.rb:186:in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/b atch_action.rb:82:inblock (2 levels) in run'

Has anyone else had this issue.. spending a few days trying to debug this..

I can import the VM manually and start it up in Virtualbox... but I'm sure the VM settings wont the configurations required for the course.

aalkilani commented 7 years ago

@jraikou , I'm not sure what's going on here. This is very environment specific so it's difficult to troubleshoot. It does seem like the VM is being destroyed at the very beginning and as a result everything else beyond that fails. See line:

==> default: Destroying VM and associated drives...

Perhaps you have the VM up already and there's a clash in names? There's also a chance that there's a permissions issue. Here are a few posts that might help you move forward: https://github.com/mitchellh/vagrant/issues/5580 https://github.com/Varying-Vagrant-Vagrants/VVV/issues/859

jraikou commented 7 years ago

I had to modify the vagrant file and add the host ip for each entry then it worked.

config.vm.network "forwarded_port", guest: 10008, host: 10008, host_ip: "127.0.0.1"

Garana400 commented 6 years ago

@jraikou Hi, i got stuck on the same issue, but your solution is not clear enough. if you please, can you clarify the steps? Thanks.