mitchellh/vagrant — Issue #560: vagrant self destructs during provision run
Author: philips
Created: 2011-11-17 18:50:04+00:00
State: open

At random my Ubuntu 10.04 Lucid machines will just force shutdown and destroy themselves during the first provision run. From the backtrace it seems that ssh is timing out (maybe because of a large IO operation) and then vagrant decides to kill it.

```
[Thu, 17 Nov 2011 00:43:00 +0000] INFO: Processing remote_file[/usr/src/cassandra-20111010174856.tar.gz] action create_if_missing (ele-base::cassandra line 78)
: stdout
[default] [Thu, 17 Nov 2011 00:44:33 +0000] INFO: remote_file[/usr/src/cassandra-20111010174856.tar.gz] updated
: stdout
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
[default] Destroying unused networking interface...
/Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/ruby_compat.rb:33:in `select': closed stream (IOError)
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/ruby_compat.rb:33:in `io_select'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/ruby_compat.rb:32:in `synchronize'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/ruby_compat.rb:32:in `io_select'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/transport/packet_stream.rb:73:in `available_for_read?'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/transport/packet_stream.rb:85:in `next_packet'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/transport/session.rb:169:in `poll_message'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/transport/session.rb:164:in `loop'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/transport/session.rb:164:in `poll_message'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:451:in `dispatch_incoming_packets'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:213:in `preprocess'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:197:in `process'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:161:in `loop'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:161:in `loop_forever'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/session.rb:161:in `loop'
from /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/connection/channel.rb:269:in `wait'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/ssh/session.rb:55:in `sudo!'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/provisioners/chef_solo.rb:119:in `run_chef_solo'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/ssh.rb:119:in `execute'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/provisioners/chef_solo.rb:118:in `run_chef_solo'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/provisioners/chef_solo.rb:53:in `provision!'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/provision.rb:22:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/provision.rb:20:in `each'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/provision.rb:20:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/forward_ports.rb:95:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/clear_forwarded_ports.rb:21:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/clean_machine_folder.rb:17:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/check_guest_additions.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/match_mac_address.rb:21:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/vm/import.rb:26:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action/builder.rb:120:in `call'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:134:in `run'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/util/busy.rb:19:in `busy'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:134:in `run'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/environment.rb:364:in `lock'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/environment.rb:354:in `open'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/environment.rb:354:in `lock'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/action.rb:133:in `run'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/vm.rb:140:in `up'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/command/up.rb:13:in `execute'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/command/up.rb:8:in `each'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/command/up.rb:8:in `execute'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/config.rb:115:in `map'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:73:in `each'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `send'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/lib/vagrant/cli.rb:45:in `up'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Library/Ruby/Gems/1.8/gems/vagrant-0.8.7/bin/vagrant:21
from /usr/bin/vagrant:19:in `load'
from /usr/bin/vagrant:19
```