wr0ngway/rubber — Issue #111: YAML error blanks out instance file
Author: nirvdrum
Created: 2011-12-20 13:51:27+00:00
State: open

I've seen this happen several times when creating or destroying instances. The YAML generator craps out and I'm left with a blank instance file. Here's a stacktrace.

/Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `end_document': undefined method `write' for # (NoMethodError)
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `visit_Psych_Nodes_Document'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:10:in `accept'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `block in visit_Psych_Nodes_Stream'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `each'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `visit_Psych_Nodes_Stream'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:11:in `accept'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/nodes/node.rb:36:in `to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:166:in `dump'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/core_ext.rb:13:in `psych_to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `node_export'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `add'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `block (3 levels) in to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `each'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `block (2 levels) in to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `seq'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `block in to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `call'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `emit'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `quick_emit'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:111:in `to_yaml'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:119:in `dump'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/instance.rb:48:in `block (2 levels) in save'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/instance.rb:48:in `open'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/instance.rb:48:in `block in save'
from /Users/nirvdrum/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/instance.rb:44:in `save'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/recipes/rubber/instances.rb:431:in `destroy_instance'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/recipes/rubber/instances.rb:396:in `block in destroy_instances'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/recipes/rubber/instances.rb:395:in `each'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/recipes/rubber/instances.rb:395:in `destroy_instances'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/rubber-1.15.0/lib/rubber/recipes/rubber/instances.rb:56:in `block (2 levels) in load'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `each'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:34:in `execute!'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/bin/cap:4:in `'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/bin/cap:19:in `load'
from /Users/nirvdrum/.rvm/gems/ruby-1.9.2-p290/bin/cap:19:in `

'