meskyanichi/backup — Issue #259: Issue with Twitter Dependency
Author: kmayoral
Created: 2012-01-18 00:19:42+00:00
State: open

It seems that installing the latest version of the Twitter gem (currently 2.0.2) and attempting to run a backup with both Twitter notifications and S3 storage breaks something.

To get around it, I removed Twitter 2.0.2 and installed Twitter 1.7.1 which fixed my issues.

Below is the error I would get prior to performing this fix. I'm not very familiar with Ruby yet, so forgive me if I've missed something simple or messed up a naming convention or two.

ModelError: Backup for MA MySQL DB (ma_backup) Failed!
An Error occured which has caused this Backup to abort before completion.
Please review the Log for this Backup to determine if steps need to be taken
to clean up, based on the point at which the failure occured.
Reason: NoMethodError
undefined method `write' for #

Backtrace:
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `end_document'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:in `visit_Psych_Nodes_Document'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/visitor.rb:10:in `accept'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `block in visit_Psych_Nodes_Stream'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `each'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:10:in `visit_Psych_Nodes_Stream'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/visitor.rb:11:in `accept'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/nodes/node.rb:36:in `to_yaml'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:166:in `dump'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/core_ext.rb:13:in `psych_to_yaml'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `node_export'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `add'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:114:in `block (3 levels) in to_yaml'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `each'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:113:in `block (2 levels) in to_yaml'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `seq'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:112:in `block in to_yaml'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck.rb:401:in `call'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck.rb:401:in `emit'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck.rb:401:in `quick_emit'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/syck/rubytypes.rb:111:in `to_yaml'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/storage/object.rb:41:in `block in write'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/storage/object.rb:40:in `open'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/storage/object.rb:40:in `write'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/storage/base.rb:222:in `cycle!'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/storage/s3.rb:40:in `perform!'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/model.rb:245:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/model.rb:245:in `block in perform!'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/model.rb:243:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/model.rb:243:in `perform!'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/cli/utility.rb:72:in `block in perform'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/cli/utility.rb:51:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/lib/backup/cli/utility.rb:51:in `perform'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/backup-3.0.20/bin/backup:11:in `'
/usr/local/rvm/gems/ruby-1.9.2-p180/bin/backup:19:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p180/bin/backup:19:in `

'