Dawuid / advanced_roadmap

Redmine plugin written by Emilio González Montaña which add extra funcionality to roadmap
Apache License 2.0
0 stars 2 forks source link

graph in the overall part cannot display #1

Open fengyedou opened 9 years ago

fengyedou commented 9 years ago

my env. is redmine 2.3.2.

After installation, all are well but the graph cannot be seen, what other gems or plug-ins needed for the graph in the overall part to display?

fengyedou commented 9 years ago

I copy the graph url and paste it in the browser, there is internal error.

Dawuid commented 9 years ago

Could you post the exception trace available in the log related with the error? I'm not maintaining this plugin but (maybe) a fix can be easily written.

Dawuid commented 9 years ago

My tests suggest that the problem is with RMagick. Plugin use that dependency but not declares it. I have added the gem dependency. It's not the best solution (RMagick could be an optional dependency and the plugin should show pie charts only when RMagick is available in the system) but must work.

PS: actually RMagick (2.13.3) cannot be installed in Windows systems with ImageMagick 6.8.9 (https://github.com/gemhome/rmagick/issues/93). But is not complicated to fix it (it's strange but only changing line 36 in rmagick.c to be declared both variables in two separated lines is enough). Tell me if this works for you.

fengyedou commented 9 years ago

D:\BitNami\redmine-2.3.2-0\apps\redmine\htdocs>bundle exec rake redmine:plugins: migrate RAILS_ENV=production You cannot specify the same gem twice with different version requirements. You specified: rmagick (>= 2.0.0) and rmagick (>= 0)

I searched the gemfiile in redmine, there is such sentence" rmagick (>= 2.0.0)" so I modifiy the gemfile in the plug-in as"gem "rmagick", ">= 2.0.0" to make rmagick spec. be consistent, can it be OK?

After I modified, the plug-in migrate command is successful.

My test after installing is below:

Graph can not be displayed.

I copy the graph url like this:

https://redmineserverip/redmine/milestones/total_graph?percentajes%5B%5D=NaN&size=500x400&versions%5B%5D=v3.00

and open it in the browser, there is such error: Internal error

An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

From production.log //////////////////////////////////////////////////////////////////////////////////////////////////////////////

Started GET "/redmine/projects/14-se-cap/roadmap" for xx at 2014-11-19 09:02:23 +0800 Processing by VersionsController#index as HTML Parameters: {"project_id"=>"14-se-cap"} Current user: li.an (id=1) Rendered plugins/advanced_roadmap/app/views/versions/_total.html.erb (15.6ms) Rendered versions/_overview.html.erb (31.2ms) Rendered plugins/advanced_roadmap/app/views/versions/_info.html.erb (390.0ms) Rendered plugins/advanced_roadmap/app/views/versions/index.html.erb within layouts/base (624.0ms) Rendered plugins/advanced_roadmap/app/views/hooks/_stylesheet.html.erb (0.0ms) Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.0ms) Rendered inline template (0.0ms) Rendered plugins/scrum/app/views/scrum_hooks/_head.html.erb (0.0ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.0ms) Rendered plugins/progressive_projects_list/app/views/application/_progressive_sidebar.html.erb (0.0ms) Rendered plugins/progressive_projects_list/app/views/application/_progressive_recent_projects.html.erb (0.0ms) Rendered plugins/redmine_banner/app/views/banner/_project_body_bottom.html.erb (31.2ms) Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (0.0ms) Rendered plugins/redmine_banner/app/views/banner/_body_bottom.html.erb (46.8ms) Rendered plugins/redmine_banner/app/views/banner/_after_top_menu.html.erb (93.6ms) Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.0ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (0.0ms) Completed 200 OK in 2480ms (Views: 1638.0ms | ActiveRecord: 390.0ms) Started GET "/redmine/milestones/total_graph?percentajes%5B%5D=NaN&size=500x400&versions%5B%5D=v3.00" forxxat 2014-11-19 09:02:26 +0800 Processing by MilestonesController#total_graph as HTML Parameters: {"percentajes"=>["NaN"], "size"=>"500x400", "versions"=>["v3.00"]} Current user: xx (id=1) Completed 500 Internal Server Error in 390ms

Magick::ImageMagickError (RegistryKeyLookupFailed CoderModulesPath' @ module.c/GetMagickModulePath/657): plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:informat=' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:in block in to_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:into_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:in to_blob' plugins/advanced_roadmap/app/controllers/milestones_controller.rb:118:intotal_graph' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:458:in _run__863700200__process_action__940886074__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.13) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in _run__662628980__call__820479051__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call' activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' thin (1.3.1) lib/thin/connection.rb:80:inblock in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in catch' thin (1.3.1) lib/thin/connection.rb:78:inpre_process' thin (1.3.1) lib/thin/connection.rb:53:in process' thin (1.3.1) lib/thin/connection.rb:38:inreceive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun' thin (1.3.1) lib/thin/backends/base.rb:61:in start' thin (1.3.1) lib/thin/server.rb:159:instart' thin (1.3.1) lib/thin/controllers/controller.rb:86:in start' thin (1.3.1) lib/thin/runner.rb:185:inrun_command' thin (1.3.1) lib/thin/runner.rb:151:in run!' thin (1.3.1) bin/thin:6:in<top (required)>' bin/thin:16:in load' bin/thin:16:in

'

Started GET "/redmine/milestones/total_graph?percentajes%5B%5D=NaN&size=500x400&versions%5B%5D=v3.00" for xx at 2014-11-19 09:02:42 +0800 Processing by MilestonesController#total_graph as HTML Parameters: {"percentajes"=>["NaN"], "size"=>"500x400", "versions"=>["v3.00"]} Current user: xxx(id=1) Completed 500 Internal Server Error in 31ms

Magick::ImageMagickError (RegistryKeyLookupFailed CoderModulesPath' @ module.c/GetMagickModulePath/657): plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:informat=' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:in block in to_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:into_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:in to_blob' plugins/advanced_roadmap/app/controllers/milestones_controller.rb:118:intotal_graph' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:458:in _run__863700200__process_action__940886074__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.13) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in _run__662628980__call__820479051__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call' activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' thin (1.3.1) lib/thin/connection.rb:80:inblock in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in catch' thin (1.3.1) lib/thin/connection.rb:78:inpre_process' thin (1.3.1) lib/thin/connection.rb:53:in process' thin (1.3.1) lib/thin/connection.rb:38:inreceive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun' thin (1.3.1) lib/thin/backends/base.rb:61:in start' thin (1.3.1) lib/thin/server.rb:159:instart' thin (1.3.1) lib/thin/controllers/controller.rb:86:in start' thin (1.3.1) lib/thin/runner.rb:185:inrun_command' thin (1.3.1) lib/thin/runner.rb:151:in run!' thin (1.3.1) bin/thin:6:in<top (required)>' bin/thin:16:in load' bin/thin:16:in

'

Started GET "/redmine/milestones/total_graph?percentajes%5B%5D=NaN&size=500x400&versions%5B%5D=v3.00" for xxx at 2014-11-19 09:02:54 +0800 Processing by MilestonesController#total_graph as HTML Parameters: {"percentajes"=>["NaN"], "size"=>"500x400", "versions"=>["v3.00"]} Current user: xx(id=1) Completed 500 Internal Server Error in 78ms

Magick::ImageMagickError (RegistryKeyLookupFailed CoderModulesPath' @ module.c/GetMagickModulePath/657): plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:informat=' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:501:in block in to_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:into_blob' plugins/advanced_roadmap/lib/advanced_roadmap/gruff/base.rb:500:in to_blob' plugins/advanced_roadmap/app/controllers/milestones_controller.rb:118:intotal_graph' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:458:in _run__912867067__process_action__435682872__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.13) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in _run__621799789__call__658679649__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call' activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' thin (1.3.1) lib/thin/connection.rb:80:inblock in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in catch' thin (1.3.1) lib/thin/connection.rb:78:inpre_process' thin (1.3.1) lib/thin/connection.rb:53:in process' thin (1.3.1) lib/thin/connection.rb:38:inreceive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun' thin (1.3.1) lib/thin/backends/base.rb:61:in start' thin (1.3.1) lib/thin/server.rb:159:instart' thin (1.3.1) lib/thin/controllers/controller.rb:86:in start' thin (1.3.1) lib/thin/runner.rb:185:inrun_command' thin (1.3.1) lib/thin/runner.rb:151:in run!' thin (1.3.1) bin/thin:6:in<top (required)>' bin/thin:16:in load' bin/thin:16:in

'

fengyedou commented 9 years ago

My env. and installed plug-in info. is below, for to check the env. and if there is plug-in conflict. Redmine using https.

Redmine gemfile.lock sets "rmagick (2.13.1)".

Environment: Redmine version 2.3.2.stable Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32] Rails version 3.2.13 Environment production Database adapter Mysql2 Redmine plugins: clipboard_image_paste 1.8 copy_parent_issue_id 1.0.0 fields_permissions 1.0.0 localizable 0.3.0 progressive_projects_list 1.0.0 redmine_agile 1.3.4 redmine_all_files 0.0.3 redmine_app__space 1.0.3 redmine_banner 0.0.9 redmine_better_gantt_chart 0.9.0 redmine_changelog 0.0.1 redmine_checkbox_wiki 0.0.1 redmine_checklists 3.0.1 redmine_close_button 0.0.8 redmine_code_review 0.6.3 redmine_custom_reports 0.1.4 redmine_daily_scrum 0.0.1 redmine_dashboard 2.3.3 redmine_didyoumean 1.2.0 redmine_documents_short 0.3.0 redmine_issue_statistics 0.0.1 redmine_issue_templates 0.0.8 redmine_knowledgebase 3.0.4 redmine_lightbox 0.0.1 redmine_login_audit 0.1.5 redmine_logs 0.0.5 redmine_message_issues 0.1.0 redmine_monitoring_controlling 0.1.1 redmine_my_page_queries 2.1.6 redmine_new_user_notification 0.0.1 redmine_parking_lot_chart 0.0.7 redmine_pdf_export_backports 0.0.1 redmine_plugin_views_revisions 0.0.1 redmine_recent_wiki_pages 0.0.1 redmine_release_notes 1.3.1 redmine_reminder 0.3.1 redmine_theme_changer 0.1.0 redmine_time_entry_limit 0.0.2 redmine_touch 0.0.2 redmine_wiki_backlinks 0.0.2 redmine_wiki_notes 0.0.2 redmine_wiki_templates 0.1.1 redmine_xls_export 0.2.1.t6 redmine_xlsx_format_issue_exporter 0.1.0 scrum 0.7.0 sidebar_hide 0.0.6 wiking 1.0.0b

////////////////////////gemfile.lock//////////////////////

GEM remote: https://rubygems.org/ remote: https://rubygems.org/ remote: https://rubygems.org/ remote: https://rubygems.org/ remote: https://rubygems.org/ remote: http://rubygems.org/ remote: https://rubygems.org/ remote: https://rubygems.org/ specs: actionmailer (3.2.13) actionpack (= 3.2.13) mail (~> 2.5.3) actionpack (3.2.13) activemodel (= 3.2.13) activesupport (= 3.2.13) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.4) rack (~> 1.4.5) rack-cache (~> 1.2) rack-test (~> 0.6.1) sprockets (~> 2.2.1) activemodel (3.2.13) activesupport (= 3.2.13) builder (~> 3.0.0) activerecord (3.2.13) activemodel (= 3.2.13) activesupport (= 3.2.13) arel (~> 3.0.2) tzinfo (~> 0.3.29) activeresource (3.2.13) activemodel (= 3.2.13) activesupport (= 3.2.13) activesupport (3.2.13) i18n (= 0.6.1) multi_json (~> 1.0) acts-as-taggable-on (2.4.1) rails (>= 3, < 5) addressable (2.3.6) arel (3.0.2) auto_bundle_install (0.0.6) watchr awesome_print (1.2.0) builder (3.0.0) capybara (2.2.1) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0) capybara-screenshot (1.0.3) capybara (>= 1.0, < 3) colored launchy celluloid (0.15.2) timers (~> 1.1.0) cliver (0.3.2) coderay (1.0.9) colored (1.2) daemons (1.0.10) database_cleaner (1.3.0) diff-lcs (1.1.3) docile (1.1.3) erubis (2.7.0) eventmachine (1.0.0-x86-mingw32) faraday (0.8.0) multipart-post (~> 1.1) faraday_middleware (0.9.0) faraday (>= 0.7.4, < 0.9) fastercsv (1.5.4) ffi (1.9.3) formatador (0.2.4) fuubar (0.0.1) progressbar (~> 0.9) rspec (~> 2.0) rspec-instafail (~> 0.1) gem_plugin (0.2.3) guard (2.1.0) formatador (>= 0.2.4) listen (~> 2.1) lumberjack (~> 1.0) pry (>= 0.9.12) thor (>= 0.18.1) guard-rspec (4.3.1) guard (~> 2.1) rspec (>= 2.14, < 4.0) haml (4.0.5) tilt hashie (1.2.0) hike (1.2.1) hirb (0.1.2) i18n (0.6.1) inifile (2.0.2) journey (1.0.4) jquery-rails (2.0.3) railties (>= 3.1.0, < 5.0) thor (~> 0.14) json (1.7.7) launchy (2.4.2) addressable (~> 2.3) listen (2.7.5) celluloid (>= 0.15.2) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) lumberjack (1.0.0) mail (2.5.3) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) method_source (0.8.2) mime-types (1.19) mongrel (1.2.0.pre2) daemons (~> 1.0.10) gem_plugin (~> 0.2.3) mongrel (1.2.0.pre2-x86-mingw32) gem_plugin (~> 0.2.3) multi_json (1.3.6) multipart-post (1.1.0) mysql2 (0.3.11-x86-mingw32) net-ldap (0.3.1) nokogiri (1.5.5-x86-mingw32) poltergeist (1.5.0) capybara (~> 2.1) cliver (~> 0.3.1) multi_json (~> 1.0) websocket-driver (>= 0.2.0) polyglot (0.3.3) progressbar (0.9.0) pry (0.9.12) coderay (~> 1.0.5) method_source (~> 0.8) slop (~> 3.4) rack (1.4.5) rack-cache (1.2) rack (>= 0.4) rack-openid (1.3.1) rack (>= 1.1.0) ruby-openid (>= 2.1.8) rack-ssl (1.3.2) rack rack-test (0.6.1) rack (>= 1.0) rails (3.2.13) actionmailer (= 3.2.13) actionpack (= 3.2.13) activerecord (= 3.2.13) activeresource (= 3.2.13) activesupport (= 3.2.13) bundler (~> 1.0) railties (= 3.2.13) railties (3.2.13) actionpack (= 3.2.13) activesupport (= 3.2.13) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) rake (10.1.1) rb-fsevent (0.9.4) rb-inotify (0.9.4) ffi (>= 0.5.0) rdoc (3.12) json (~> 1.4) redmine_acts_as_taggable_on (1.0.0) acts-as-taggable-on (>= 2.3, < 2.5) rmagick (2.13.1) rspec (2.14.1) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) rspec-mocks (~> 2.14.0) rspec-core (2.14.0) rspec-expectations (2.14.0) diff-lcs (>= 1.1.3, < 2.0) rspec-instafail (0.2.0) rspec-mocks (2.14.0) rspec-rails (2.14.2) actionpack (>= 3.0) activemodel (>= 3.0) activesupport (>= 3.0) railties (>= 3.0) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) rspec-mocks (~> 2.14.0) ruby-ole (1.2.11.7) ruby-openid (2.1.8) ruby-progressbar (1.6.0) rubyzip (1.1.3) simplecov (0.8.2) docile (~> 1.1.0) multi_json simplecov-html (~> 0.8.0) simplecov-html (0.8.0) simplecov-rcov (0.2.3) simplecov (>= 0.4.1) slop (3.6.0) spreadsheet (0.9.7) ruby-ole (>= 1.0) sprockets (2.2.1) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) test-unit (2.5.2) thin (1.3.1) daemons (>= 1.0.9) eventmachine (>= 0.12.6) rack (>= 1.0.0) thor (0.18.1) tilt (1.3.3) timers (1.1.0) transifex-ruby-fork-jg (0.1.0) faraday (~> 0.8.0) faraday_middleware (~> 0.9.0) hashie (~> 1.2.0) treetop (1.4.10) polyglot polyglot (>= 0.3.1) tzinfo (0.3.33) watchr (0.7) websocket-driver (0.3.3) will_paginate (3.0.7) write_xlsx (0.77.2) rubyzip (>= 1.0.0) zip-zip xpath (2.0.0) nokogiri (~> 1.3) ya2yaml (0.31) yard (0.8.1) zip-zip (0.3) rubyzip (>= 1.0.0)

PLATFORMS x86-mingw32

DEPENDENCIES activerecord-jdbc-adapter (= 1.2.5) activerecord-jdbcmysql-adapter auto_bundle_install (~> 0.0.6) awesome_print builder (= 3.0.0) capybara-screenshot coderay (~> 1.0.9) database_cleaner fastercsv (~> 1.5.0) fuubar guard-rspec haml hirb i18n (~> 0.6.0) inifile jquery-rails (~> 2.0.2) launchy mongrel (= 1.2.0.pre2) mysql2 (~> 0.3.11) net-ldap (~> 0.3.1) nokogiri (< 1.6.0) poltergeist pry rack-openid rails (= 3.2.13) rake (~> 10.1.1) redmine_acts_as_taggable_on (~> 1.0) rmagick (>= 2.0.0) rspec (~> 2.0) rspec-rails ruby-openid (~> 2.1.4) ruby-progressbar rubyzip (>= 1.1.3) simplecov simplecov-rcov spreadsheet test-unit thin transifex-ruby-fork-jg watchr (~> 0.7) will_paginate (~> 3.0) write_xlsx ya2yaml yard zip-zip

Dawuid commented 9 years ago

I'm using rmagick 2.13.3.1 (a special modification of rmagick 2.13.3 to avoid compilation errors in x86-mingw32) and ImageMagick 6.8.9-10. Because of this I'm forcing rmagick 2.13.3.1 in redmine's gem file (change ">= 2.0.0" to ">= 2.13.3.1" to avoid the error that you remark).

The problem that you have seems related with the combination of incompatible versions of rmagick and ImageMagick. If you are interested I can share with you the patch that I used to get RMagick 2.13.3 working on x86-mingw32 and ImageMagick 6.8.9.

fengyedou commented 9 years ago

Hi, I am interested!! Can you share the 2.13.3.1? you can mail to me: li.an@samsung.com

Then the fixing steps are:

  1. using command: gem install -l rmagick 2.13.3.1 2.change rmagick (>= 2.0.0) to rmagick >= 2.13.3.1 in redmine gem file 3.restart redmine

Right?

Waiting for your share and reply:)

fengyedou commented 9 years ago

@Dawuid, I am using bitnami redmine 2.3.2, I checked the ImageMagick version is : ImageMagick 6.7.5 My installed gem: rmagick version is "rmagick (2.13.1)".

Can you share the fixed gemfile: rmagick, and check if the above steps of fixing is right?

Dawuid commented 9 years ago

Sorry again for the delay in the response, my harddisk is now "resting in peace".

Finally you doesn't need my patch. RMagick has been finally updated to 2.13.4 and they have fixed the windows compilation problem. So you only need:

  1. Update your Redmine gemfile to use rmagick 2.13.4 (instead of 2.13.3.1)
  2. Update your Redmine installation (bundle install --without development test or gem install rmagick)
  3. Restart Redmine
  4. Enjoy graphs again :-)
fengyedou commented 9 years ago

Sorry to trouble you again, I download rmagick 2.13.4, and update lines in the gemfile: \redmine\htdocs\Gemfile.lock Line 167: rmagick (2.13.1)---rmagick (2.13.4) Line 264: rmagick (>= 2.0.0)---rmagick (>= 2.13.4) \htdocs\Gemfile gem "rmagick", ">= 2.0.0"----gem "rmagick", ">= 2.13.4" Then use gem install rmagick, errors are below: ///////////////////////////////////////////////////////////////////////////////////////// . .D:\BitNami\redmine-2.3.2-0\apps\redmine\htdocs>gem install -l rmagick-2.13.4.gem

Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick-2.13.4.gem: ERROR: Failed to build gem native extension.

    D:/BitNami/redmine-2.3.2-0/ruby/bin/ruby.exe extconf.rb

checking for Ruby version >= 1.8.5... yes checking for stdint.h... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=D:/BitNami/redmine-2.3.2-0/ruby/bin/ruby D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:381:in try_do': The comp iler failed to generate an executable file. (RuntimeError) You have to install development tools first. from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:506:intry_ cpp' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:931:in bloc k in have_header' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:790:inbloc k in checking_for' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:284:in bloc k (2 levels) in postpone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen ' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:284:in bloc k in postpone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen ' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:280:in post pone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:789:inchec king_for' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:930:in have _header' from extconf.rb:212:in

'

Gem files will remain installed in D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/gems /1.9.1/gems/rmagick-2.13.4 for inspection. Results logged to D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/gems/1.9.1/gems/rmagi ck-2.13.4/ext/RMagick/gem_make.out

D:\BitNami\redmine-2.3.2-0\apps\redmine\htdocs>bundle install --without developm ent test The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://ruby gems.org' if not. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/......... Using rake (10.1.1) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.13) Using builder (3.0.0) Using activemodel (3.2.13) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.5) Using rack-cache (1.2) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.2.1) Using actionpack (3.2.13) Using mime-types (1.19) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.5.3) Using actionmailer (3.2.13) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.13) Using activeresource (3.2.13) Using bundler (1.3.5) Using rack-ssl (1.3.2) Using json (1.7.7) Using rdoc (3.12) Using thor (0.18.1) Using railties (3.2.13) Using rails (3.2.13) Using acts-as-taggable-on (2.4.1) Using watchr (0.7) Using auto_bundle_install (0.0.6) Using coderay (1.0.9) Using daemons (1.0.10) Using eventmachine (1.0.0) Using gem_plugin (0.2.3) Using haml (4.0.5) Using jquery-rails (2.0.3) Using mongrel (1.2.0.pre2) Using mysql2 (0.3.11) Using net-ldap (0.3.1) Using ruby-openid (2.1.8) Using rack-openid (1.3.1) Using redmine_acts_as_taggable_on (1.0.0) Installing rmagick (2.13.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .

    D:/BitNami/redmine-2.3.2-0/ruby/bin/ruby.exe extconf.rb

checking for Ruby version >= 1.8.5... yes checking for stdint.h... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=D:/BitNami/redmine-2.3.2-0/ruby/bin/ruby D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:381:in try_do': The comp iler failed to generate an executable file. (RuntimeError) You have to install development tools first. from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:506:intry_ cpp' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:931:in bloc k in have_header' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:790:inbloc k in checking_for' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:284:in bloc k (2 levels) in postpone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen ' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:284:in bloc k in postpone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen ' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:280:in post pone' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:789:inchec king_for' from D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/1.9.1/mkmf.rb:930:in have _header' from extconf.rb:212:in

'

Gem files will remain installed in D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/gems /1.9.1/gems/rmagick-2.13.4 for inspection. Results logged to D:/BitNami/redmine-2.3.2-0/ruby/lib/ruby/gems/1.9.1/gems/rmagi ck-2.13.4/ext/RMagick/gem_make.out An error occurred while installing rmagick (2.13.4), and Bundler cannot continue. Make sure that gem install rmagick -v '2.13.4' succeeds before bundling.

fengyedou commented 9 years ago

If you have time, can you share the patch, I want to test if 2.13.3.1, can be installed successfully.

fengyedou commented 9 years ago

I found default rmagick is 2.13.1, but I cannot update it successfully, I test with 2.13.3, too.

Dawuid commented 9 years ago

Have you installed in your system DevKit and rake-compiler? (visit http://rubyinstaller.org/downloads/ for the latest version of DevKit for your Ruby, and do gem install rake-compiler for the latest version of rake-compiler). The first one is mandatory to compile native parts of gems, and the second one is used in lots of gems (I think rmagick use it but not declare it).

My patched gem (based in the code of rmagick in between 2.13.3 and 2.13.4) has to be compiled too in your system (I use Ruby 2.0 and, for your traces, you're using Ruby 1.9.1, so native libraries compiled in my system cannot be used in yours) , so it will not work neither for you.