Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Backup::Setup #9

Closed
tomasc opened this issue Jan 27, 2010 · 3 comments
Closed

uninitialized constant Backup::Setup #9

tomasc opened this issue Jan 27, 2010 · 3 comments

Comments

@tomasc
Copy link

tomasc commented Jan 27, 2010

Hello,
first congratulations on the wonderful gem.

I recently encountered the following error, when I try to initiate backup with rake task:

rake backup:run trigger=xxx-db RAILS_ENV=production --trace
(in /home/web/public_html/xxx/releases/20100127153720)
** Invoke backup:run (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute backup:run
Running: xxx-db.
rake aborted!
uninitialized constant Backup::Setup
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in const_missing' /home/web/public_html/radimpesko/releases/20100127153720/lib/tasks/backup/backup.rake:6 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

rails 2.3.5 gem installed (no other rails versions)
backup (2.3.1) gem installed
config.gem "backup" in environment.rb
Ubuntu 9

The weirdest thing is that it used to work. Any ideas?

Thank you,
Tomas

@mrrooijen
Copy link
Contributor

That's odd. Do you recall what you've changed since it stopped working? Or are you not aware whether you changed anything or not? (Since it just randomly happened).

Never seen this issue before. I assume this is running on your production box. Is it shared/vps/dedicated? It might be a permissions issue.

@fmluizao
Copy link

It seems that the gem wasn't loaded... are you using multiple versions of ruby? If yes, the backup gem is installed in all versions?

@mrrooijen
Copy link
Contributor

No real issue. :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants