Error occurs when it use in conjunction with Hudson Plugin #7

Closed
onozaty opened this Issue Jun 20, 2015 · 3 comments

Projects

None yet

1 participant

@onozaty
Owner
onozaty commented Jun 20, 2015

When install both "Parent issue filter plugin" and "Hudson Plugin", an error occurs.

  • Redmine version : 2.5.2.stable
  • Parent issue filter plugin: 1.0.1
  • Redmine Hudson plugin : 2.1.2
[ 2015-06-16 03:56:44.0104 4556/7f7bc064e700 App/Implementation.cpp:303 ]: Could not spawn process for application /var/lib/redmine: An error occured while starting up the preloader.
  Error ID: 57271ce6
  Error details saved to: /tmp/passenger-error-3iLeet.html
  Message from application: uninitialized constant RedmineHudson (NameError)
  /var/lib/redmine/plugins/redmine_hudson/init.rb:49:in `block in <top (required)>'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:429:in `_run__1312249266792273252__prepare__416257522511426094__callbacks'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `__run_callback'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:81:in `run_callbacks'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.19/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.19/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `instance_exec'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `run'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `block in run_initializers'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `each'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/lib/rails/application.rb:136:in `initialize!'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/railties-3.2.19/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>'
  /var/lib/redmine/vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
  /var/lib/redmine/vendor/bundle/ruby/2.1.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.1.0/gems/passenger-5.0.10/helper-scripts/rack-preloader.rb:107:in `eval'
  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.10/helper-scripts/rack-preloader.rb:107:in `preload_app'
  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.10/helper-scripts/rack-preloader.rb:153:in `<module:App>'
  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.10/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.10/helper-scripts/rack-preloader.rb:28:in `<main>'
@onozaty
Owner
onozaty commented Jun 20, 2015

This problem cause was a load of the same file "patch_query".

in parent_issue_filter/init.rb

require_dependency 'query_patch'

Redmine::Plugin.register :parent_issue_filter do

in redmine_hudson/init.rb

# $Id$
require 'redmine'
require 'hudson_application_hooks'
require 'query_patch'

Redmine::Plugin.register :redmine_hudson do

Since a query_patch.rb in "parent issue filter" has already been loaded, it is not loaded in the "Hudson Redmine" side.

@onozaty
Owner
onozaty commented Jun 20, 2015

I will change the name of the query_patch.rb

@onozaty onozaty added a commit that closed this issue Jun 20, 2015
@onozaty Fixed #7 e806c3c
@onozaty onozaty closed this in e806c3c Jun 20, 2015
@onozaty
Owner
onozaty commented Jun 20, 2015

closed this in @7435d19 and @e806c3c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment