Defect #36206
closedproblem after updating production clone site to r21289
0%
Description
Hello,
After updating my playground environment to revision 21289,
the database migration command failed with errors:
[shortie@centos8 redmine]$ bundle exec rake db:migrate RAILS_ENV="production" rake aborted! LoadError: cannot load such file -- rfpdf /usr/share/gems/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' /usr/share/gems/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require' /var/www/html/redmine/lib/plugins/rfpdf/init.rb:2:in `block in <top (required)>' /var/www/html/redmine/config/initializers/00-core_plugins.rb:10:in `eval' /var/www/html/redmine/config/initializers/00-core_plugins.rb:10:in `block in <top (required)>' /var/www/html/redmine/config/initializers/00-core_plugins.rb:4:in `each' /var/www/html/redmine/config/initializers/00-core_plugins.rb:4:in `<top (required)>' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `block in load' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/engine.rb:681:in `block in load_config_initializer' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/notifications.rb:205:in `instrument' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/engine.rb:680:in `load_config_initializer' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in `each' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/engine.rb:633:in `block in <class:Engine>' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `instance_exec' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `run' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in `block in run_initializers' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in `each' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:50:in `tsort_each_child' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in `run_initializers' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/application.rb:391:in `initialize!' /var/www/html/redmine/config/environment.rb:16:in `<top (required)>' /usr/share/gems/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' /usr/share/gems/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/application.rb:367:in `require_environment!' /usr/share/gems/gems/railties-6.1.4.1/lib/rails/application.rb:533:in `block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start' /usr/local/share/gems/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>' /usr/local/share/gems/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors' /usr/local/share/gems/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>' /usr/local/bin/bundle:23:in `load' /usr/local/bin/bundle:23:in `<main>' Tasks: TOP => db:migrate => db:load_config => environment (See full trace by running task with --trace)
Any workaround for this? Thanks in advance.
Files
Updated by Go MAEDA over 3 years ago
It looks like lib/plugins/rfpdf is causing an error, but rfpdf was removed 7 years ago in r13358. The current trunk does not have lib/plugins/rfpdf (see source:trunk/lib/plugins).
Does removing lib/plugins/rfpd fix the issue?
Updated by ChunChang (Nagaharu) Lo over 3 years ago
Hi,
There is no plugin installed and the plugins directory is empty.
The redmine application is dead now after apache server restarted.
I will post more information reported by passenger.
Updated by ChunChang (Nagaharu) Lo over 3 years ago
It seems that redmine application can't be started because of missing rfpdf.
Updated by ChunChang (Nagaharu) Lo over 3 years ago
- Status changed from New to Resolved
Go MAEDA wrote:
It looks like lib/plugins/rfpdf is causing an error, but rfpdf was removed 7 years ago in r13358. The current trunk does not have lib/plugins/rfpdf (see source:trunk/lib/plugins).
Does removing lib/plugins/rfpd fix the issue?
Ah, sorry, I didn't read your message carefully.
Yes. Problem was solved by removing the lib/plugins/rpdf directory.
Strangely, this directory dates back to 2013-08-12:
drwxr-xr-x. 5 apache apache 4096 Aug 12 2013 rfpdf
Anyway, thanks a lot. The playground site is back again. :)
Updated by Marius BĂLTEANU over 3 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
Thanks for your feedback.
Nice to see a playground from 2013-08-12.