Project

General

Profile

Actions

Bug #23842

closed

unable to run rake tasks in production

Added by Ohad Levy over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

rake aborted!
LoadError: cannot load such file -- factory_bot
/home/foreman/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/home/foreman/git/foreman/lib/tasks/seed.rake:1:in `<top (required)>'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `block in load'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/foreman/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/engine.rb:648:in `block in run_tasks_blocks'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/engine.rb:648:in `each'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/engine.rb:648:in `run_tasks_blocks'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/application.rb:440:in `run_tasks_blocks'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/engine.rb:457:in `load_tasks'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `public_send'
/home/foreman/gems/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `method_missing'
/home/foreman/git/foreman/Rakefile:8:in `<top (required)>'
/home/foreman/gems/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `load'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:28:in `run'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli.rb:424:in `exec'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli.rb:27:in `dispatch'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/cli.rb:18:in `start'
/home/foreman/gems/gems/bundler-1.16.2/exe/bundle:30:in `block in <top (required)>'
/home/foreman/gems/gems/bundler-1.16.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/home/foreman/gems/gems/bundler-1.16.2/exe/bundle:22:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `load'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
rake aborted!


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #19968: Easy seeding for development environmentsClosedEwoud Kohl van Wijngaarden06/08/2017Actions
Actions #1

Updated by Ohad Levy over 6 years ago

  • Related to Feature #19968: Easy seeding for development environments added
Actions #2

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

What is the exact command you used? In our pipeline db:migrate did work so I'm wondering if listing all rake tasks fails for example.

Actions #3

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/foreman/pull/5661 added
Actions #4

Updated by Anonymous over 6 years ago

  • Translation missing: en.field_release set to 353
Actions #5

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

  • Category set to Rake tasks
  • Triaged set to No
Actions

Also available in: Atom PDF