woblavobla / redmine_custom_reminder

Simple redmine plugin for scheduled email sending;
Apache License 2.0
8 stars 12 forks source link

I had an error when I activated the plugin #8

Closed Lyaoer closed 5 years ago

Lyaoer commented 5 years ago

some info:

I have finished the installation according to README.md image Environment: Redmine version 4.0.1.stable Ruby version 2.5.3-p105 (2018-10-18) [x86_64-linux] Rails version 5.2.2

When I visit the web page ,like this:

image

internal error message:

App 270 output: Error: The application encountered the following error: uninitialized constant ApplicationJob (NameError) 2019/4/1 pm5:17:46App 270 output: /usr/src/redmine/plugins/redmine_custom_reminder/app/jobs/custom_reminders_email_notification_job.rb:1:in <top (required)>' 2019/4/1 pm5:17:46App 270 output: /usr/src/redmine/plugins/redmine_custom_reminder/app/controllers/custom_reminders_controller.rb:1:inrequire_relative' 2019/4/1 pm5:17:46App 270 output: /usr/src/redmine/plugins/redmine_custom_reminder/app/controllers/custom_reminders_controller.rb:1:in <top (required)>' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:14:inblock in loading' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb:151:in exclusive' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb:13:inloading' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:478:in block (2 levels) in eager_load!' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:477:ineach' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:477:in block in eager_load!' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:475:ineach' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:475:in eager_load!' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/engine.rb:356:ineager_load!' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/application/finisher.rb:69:in each' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/application/finisher.rb:69:inblock in ' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/initializable.rb:32:in instance_exec' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/initializable.rb:32:inrun' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/initializable.rb:61:in block in run_initializers' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:228:inblock in tsort_each' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:431:ineach_strongly_connected_component_from' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:349:in block in each_strongly_connected_component' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:347:ineach' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:347:in call' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:347:ineach_strongly_connected_component' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:226:in tsort_each' 2019/4/1 pm5:17:46App 270 output: /usr/local/lib/ruby/2.5.0/tsort.rb:205:intsort_each' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/initializable.rb:60:in run_initializers' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/railties-5.2.2/lib/rails/application.rb:361:ininitialize!' 2019/4/1 pm5:17:46App 270 output: /usr/src/redmine/config/environment.rb:14:in <top (required)>' 2019/4/1 pm5:17:46App 270 output: config.ru:3:inrequire' 2019/4/1 pm5:17:46App 270 output: config.ru:3:in block in <main>' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/rack-2.0.6/lib/rack/builder.rb:55:ininstance_eval' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/rack-2.0.6/lib/rack/builder.rb:55:in initialize' 2019/4/1 pm5:17:46App 270 output: config.ru:1:innew' 2019/4/1 pm5:17:46App 270 output: config.ru:1:in <main>' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:101:ineval' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:101:in preload_app' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:189:inblock in ' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:380:in run_block_and_record_step_progress' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:188:in' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:30:in <module:PhusionPassenger>' 2019/4/1 pm5:17:46App 270 output: /usr/local/bundle/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:29:in

' 2019/4/1 pm5:17:46[ E 2019-04-01 17:17:45.7099 76/T16 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /usr/src/redmine: The application encountered the following error: uninitialized constant ApplicationJob (NameError) 2019/4/1 pm5:17:46 Error ID: 1201795c 2019/4/1 pm5:17:46 Error details saved to: /tmp/passenger-error-hj7ohr.html 2019/4/1 pm5:17:46 2019/4/1 pm5:17:46[ E 2019-04-01 17:17:45.7146 76/Te age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 4-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 1201795c. Please see earlier logs for details about the error. 2019/4/1 pm5:17:46[ E 2019-04-01 17:17:45.7149 76/Tg age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 5-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 1201795c. Please see earlier logs for details about the error.

How can I solve this?

Lyaoer commented 5 years ago

I need to add a line require_relative './application_job'at custom_reminders_email_notification_job.rb