meskyanichi/backup — Issue #220: OAuth::Unauthorized - 401 Unauthorized
Author: jonthewayne
Created: 2011-11-18 10:53:57+00:00
State: open

Hello!

I've set up my dropbox app (its access type is full dropbox, with an in "development" app status). I'm saving to the same account as my app developer account, so the development app status should be fine, right? I've added my credentials to the config.rb file backup needs, but when I run the command I get this:

[bandega@cp39 (ruby-1.8.7) bd]$ /home/bandega/ruby/gems/gems/backup-3.0.19/bin/backup perform --trigger my_backup --config_file '/home/bandega/apps/stage/bd/lib/Backup/config.rb'
[2011/11/17 21:00:46][message] Performing backup for My Backup!
[2011/11/17 21:00:46][message] Backup::Database::MySQL started dumping and archiving "bandega_production".
[2011/11/17 21:00:50][message] Backup started packaging everything to a single archive file.
[2011/11/17 21:00:50][message] Backup::Compressor::Gzip started compressing the archive.
[2011/11/17 21:00:54][message] Backup::Storage::Dropbox started transferring "2011.11.17.21.00.45.my_backup.tar.gz".
[2011/11/17 21:00:54][message] Creating a new session!
[2011/11/17 21:00:54][message] Backup started cleaning up the temporary files.
===========================================================================
Exception that got raised:
OAuth::Unauthorized - 401 Unauthorized
===========================================================================
/home/bandega/ruby/gems/gems/oauth-0.4.5/lib/oauth/consumer.rb:219:in `token_request'
/home/bandega/ruby/gems/gems/oauth-0.4.5/lib/oauth/consumer.rb:139:in `get_request_token'
/home/bandega/ruby/gems/gems/dropbox-1.3.0/lib/dropbox/session.rb:70:in `initialize'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/storage/dropbox.rb:102:in `new'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/storage/dropbox.rb:102:in `create_write_and_return_new_session!'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/storage/dropbox.rb:78:in `connection'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/storage/dropbox.rb:85:in `transfer!'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/storage/dropbox.rb:51:in `perform!'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/model.rb:222:in `perform!'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/model.rb:222:in `each'
/home/bandega/ruby/gems/gems/backup-3.0.19/lib/backup/model.rb:222:in `perform!'
/home/bandega/ruby/gems/gems/backup-3.0.19/bin/backup:130:in `perform'
/home/bandega/ruby/gems/gems/backup-3.0.19/bin/backup:109:in `each'
/home/bandega/ruby/gems/gems/backup-3.0.19/bin/backup:109:in `perform'
/home/bandega/ruby/gems/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
/home/bandega/ruby/gems/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/home/bandega/ruby/gems/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/home/bandega/ruby/gems/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/home/bandega/ruby/gems/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/home/bandega/ruby/gems/gems/backup-3.0.19/bin/backup:288
===========================================================================

You are running Backup version "3.0.19" and Ruby version "1.8.7 (patchlevel 249)" on platform "x86_64-linux".
If you've setup a "Notification" in your configuration file, the above error will have been sent.

The weird thing is, it never asks me to visit a url to authorize anything, which is what your wiki was saying should happen. Any ideas what I should do? :) Thanks!