meskyanichi/backup — Issue #198: NoMethodError - undefined method `write' for #<Syck::Emitter:0x0000001531c508> 
Author: manuelmeurer
Created: 2011-10-14 20:30:41+00:00
State: open

I'm getting this error after upgrading to Rails 3.1 (which does not necessarily mean that's the cause, lots of Gems were updated and other changes):

```
===========================================================================
Exception that got raised:
NoMethodError - undefined method `write' for #
===========================================================================
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `end_document'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `visit_Psych_Nodes_Document'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:10:in `accept'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `block in visit_Psych_Nodes_Stream'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `each'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `visit_Psych_Nodes_Stream'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:11:in `accept'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/nodes/node.rb:36:in `to_yaml'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:166:in `dump'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/core_ext.rb:13:in `psych_to_yaml'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `node_export'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `add'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `block (3 levels) in to_yaml'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `each'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `block (2 levels) in to_yaml'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `seq'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `block in to_yaml'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `call'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `emit'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck.rb:401:in `quick_emit'
/home/rails/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/syck/rubytypes.rb:111:in `to_yaml'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/storage/object.rb:39:in `block in write'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/storage/object.rb:38:in `open'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/storage/object.rb:38:in `write'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/storage/base.rb:62:in `cycle!'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/storage/s3.rb:56:in `perform!'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/model.rb:222:in `block in perform!'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/model.rb:222:in `each'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/lib/backup/model.rb:222:in `perform!'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/bin/backup:130:in `block in perform'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/bin/backup:109:in `each'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/bin/backup:109:in `perform'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/backup-3.0.18/bin/backup:288:in `'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/bin/backup:19:in `load'
/home/rails/.rvm/gems/ruby-1.9.2-p290@rails-3.1/bin/backup:19:in `

'
===========================================================================
```