redmine_extended_reminderをインストールしたらメール配信でエラーが出ます。

1,086 views
Skip to first unread message

鈴木弥

unread,
Feb 5, 2014, 5:21:09 AM2/5/14
to redmine-...@googlegroups.com
お世話になります。初めてPluginをインストールしてみました。
リマインダーがここのおかげで動くようになったので、redmine_extended_reminderのPluginを挿してみました。

plugins/
redmine_extended_reminder/

の状態で、bundle installをしました。特にエラーがでませんでした。
そこで、コマンドを発行したところ、以下のようなエラーが表示されました。
[root@suzunet redmine]# RAILS_ENV=production rake redmine:send_reminders days=7
rake aborted!
Missing helper file helpers/extended_reminder_helper.rb
/var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:11:in `block in included'
/var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:9:in `class_eval'
/var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:9:in `included'
/var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:55:in `include'
/var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:55:in `<top (required)>'
/var/lib/redmine/plugins/redmine_extended_reminder-master/init.rb:5:in `block in <top (required)>'
/var/lib/redmine/config/environment.rb:14:in `<top (required)>'
Tasks: TOP => redmine:send_reminders => environment
(See full trace by running task with --trace)

はじめてPluginを入れるので、入れかたがまずいのでしょうか?
おしえていただけると助かります。

よろしくお願いします。

鈴木弥

unread,
Feb 5, 2014, 5:29:34 AM2/5/14
to redmine-...@googlegroups.com
redmineの再起動をしていなかったのでそのせいかと思いApacheを再起動したら、
Missing helper file helpers/extended_reminder_helper.rb (LoadError)
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:312:in `depend_on'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:225:in `require_dependency'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/abstract_controller/helpers.rb:131:in `map!'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/abstract_controller/helpers.rb:131:in `modules_for_helpers'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/abstract_controller/helpers.rb:95:in `helper'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:11:in `block in included'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:9:in `class_eval'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:9:in `included'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:55:in `include'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:55:in `<top (required)>'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:359:in `require_or_load'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:313:in `depend_on'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:225:in `require_dependency'
  /var/lib/redmine/plugins/redmine_extended_reminder-master/init.rb:5:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:429:in `_run__495796337__prepare__597928487__callbacks'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
  /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
  /usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
  /usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /var/lib/redmine/config/environment.rb:14:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
  /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.33/helper-scripts/rack-preloader.rb:107:in `eval'
  /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.33/helper-scripts/rack-preloader.rb:107:in `preload_app'
  /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.33/helper-scripts/rack-preloader.rb:152:in `<module:App>'
  /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.33/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.33/helper-scripts/rack-preloader.rb:28:in `<main>'
と出てサイトにアクセスできなくなってしまいました。
すみませんが助けてください。


鈴木弥

unread,
Feb 5, 2014, 8:08:31 AM2/5/14
to redmine-...@googlegroups.com
とりあえず、バックアップから元に戻し、サイトは見れるようになりました。

Pluginの入れ方を教えてください。

ngyuki

unread,
Feb 5, 2014, 8:25:25 AM2/5/14
to redmine-...@googlegroups.com
plugins ディレクトリに配置するプラグインのディレクトリ名と、プラグインの名前は一致する必要があります。

エラーのスタックトレースを見た感じ redmine_extended_reminder-master というディレクトリ名になっています。

> /var/lib/redmine/plugins/redmine_extended_reminder-master/lib/redmine_extended_reminder/mailer_model_patch.rb:11:in `block in included'

ディレクトリ名が redmine_extended_reminder になるようにしてみてください。

e.g.)
cd /var/lib/redmine/plugins/
mv redmine_extended_reminder-master redmine_extended_reminder

鈴木弥

unread,
Feb 8, 2014, 7:25:28 AM2/8/14
to redmine-...@googlegroups.com
遅いレスで申し訳ありません。

ディレクトリ名を変えたらうまくいきました。ありがとうございました。


2014年2月5日水曜日 22時25分25秒 UTC+9 ngyuki:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages