schubergphilis / vagrant-chef-zero

Vagrant Plugin for Chef Zero
Apache License 2.0
91 stars 41 forks source link

read_nonblock: end of file reached (EOFError) #33

Closed jstarcher closed 10 years ago

jstarcher commented 10 years ago

I'm having trouble getting this plugin to work even with the example Vagrantfile in the readme. I'm on Vagrant 1.2.4, OSX 10.8.5, Ruby 1.9.3p392, and I can consistently reproduce the error with vagrant-chef-zero 0.5.1 and 0.5.2.

I must be doing something really wrong as I cannot find that anyone else has had this trouble. I had some dependency issues while I had some other Vagrant plugins installed, so I removed those plugins and reinstalled vagrant-chef-zero.

Any ideas? Do I need to upgrade Vagrant?

✗ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Destroying VM and associated drives...
/Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': end of file reached (EOFError)
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1319:in `block in transport_request'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1293:in `request'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1286:in `block in request'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:745:in `start'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1284:in `request'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:49:in `is_a_chef_zero_server?'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:34:in `block in chef_zero_server_running?'
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:33:in `chef_zero_server_running?'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:11:in `start_chef_zero'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/action/start.rb:20:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/set_name.rb:35:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/action/reconfig.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/env_set.rb:19:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builder.rb:116:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/machine.rb:147:in `action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
jstarcher commented 10 years ago

Finally got past this. Turns out that I had something else on my machine binding to the default port 4000. Better error handling around this would be really helpful, I'll work on a PR when I get a chance.