hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 47 forks source link

Generated release notes for issue, now Release notes fails #38

Closed mwpowellhtx closed 11 years ago

mwpowellhtx commented 11 years ago

Hi,

I added release notes to an issue and marked it complete at that moment. Then I reviewed Release notes and asked it to generate releases notes. Now when I click Release notes, I get the Internal error see log. Where is the log so I can troubleshoot and/or report further information? Me = Linux newbie / Redmine somewhat newbie. Thank you...

Regards, Michael

hdgarrood commented 11 years ago

Relative to Redmine's root directory, it will be in logs/production.log.

If you don't know where Redmine's root directory is, and/or you used the bitnami redmine stack, it's probably something like /opt/redmine-x.x.x/apps/redmine/htdocs/

mwpowellhtx commented 11 years ago
Processing ReleaseNotesController#index (for 25.151.186.27 at 2012-12-04 18:18:05) [GET]
  Parameters: {"action"=>"index", "controller"=>"release_notes", "project_id"=>"seeker"}
Rendering template within layouts/base
Rendering release_notes/index

ActionView::TemplateError (undefined method `name' for nil:NilClass) on line #11 of vendor/plugins/redmine_release_notes/app/views/release_notes/_overview.rhtml:
8: <ul>
9:     <% version.custom_values.each do |custom_value| %>
10:         <% if !custom_value.value.blank? %>
11:            <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
12:         <% end %>
13:     <% end %>
14: </ul>

    vendor/plugins/redmine_release_notes/app/views/release_notes/_overview.rhtml:11:in `_run_rhtml_vendor47plugins47redmine_release_notes47app47views47release_notes47_overview46rhtml_locals_count_release_notes_completed_count_release_notes_required_count_release_notes_to_be_done_object_overview_release_notes_required_cf_id_version'
    /usr/lib/ruby/vendor_ruby/active_record/associations/association_collection.rb:392:in `method_missing'
    /usr/lib/ruby/vendor_ruby/active_record/associations/association_proxy.rb:215:in `each'
    /usr/lib/ruby/vendor_ruby/active_record/associations/association_proxy.rb:215:in `send'
    /usr/lib/ruby/vendor_ruby/active_record/associations/association_proxy.rb:215:in `method_missing'
    /usr/lib/ruby/vendor_ruby/active_record/associations/association_collection.rb:392:in `method_missing'
    vendor/plugins/redmine_release_notes/app/views/release_notes/_overview.rhtml:9:in `_run_rhtml_vendor47plugins47redmine_release_notes47app47views47release_notes47_overview46rhtml_locals_count_release_notes_completed_count_release_notes_required_count_release_notes_to_be_done_object_overview_release_notes_required_cf_id_version'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `send'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:306:in `with_template'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:30:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/renderable_partial.rb:20:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:30:in `benchmark'
    /usr/lib/ruby/vendor_ruby/action_view/renderable_partial.rb:19:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/template.rb:205:in `render_template'
    /usr/lib/ruby/vendor_ruby/action_view/renderable_partial.rb:44:in `render_partial'
    /usr/lib/ruby/vendor_ruby/action_view/partials.rb:184:in `render_partial'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:267:in `render'
    vendor/plugins/redmine_release_notes/app/views/release_notes/index.html.erb:12
    vendor/plugins/redmine_release_notes/app/views/release_notes/index.html.erb:7:in `each'
    vendor/plugins/redmine_release_notes/app/views/release_notes/index.html.erb:7
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `send'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:306:in `with_template'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:30:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/template.rb:205:in `render_template'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:265:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:348:in `_render_with_layout'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:262:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1252:in `render_for_file'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:936:in `render_without_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1328:in `default_render'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1334:in `perform_action_without_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:617:in `call_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/vendor_ruby/action_controller/rescue.rb:160:in `perform_action_without_flash'
    /usr/lib/ruby/vendor_ruby/action_controller/flash.rb:151:in `perform_action'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `send'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `process_without_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:606:in `process'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:391:in `process'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:386:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:438:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:87:in `dispatch'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:121:in `_call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:130:in `build_middleware_stack'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
    /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:9:in `cache'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:28:in `call'
    /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/string_coercion.rb:25:in `call'
    /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
    /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'
    /usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/request_handler.rb:96:in `process_request'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:479:in `safe_fork'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in `start'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99

Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)
mwpowellhtx commented 11 years ago

Should note if it helps us troubleshoot, I can still access the issues themselves, edit the release notes, etc. Just when I click the Release Notes tab, it breaks. Examining the Custom Values table through PhpMyAdmin, I see that the actions are there, yet the flagged shows 0 (not generated?).

hdgarrood commented 11 years ago

Ah, this is probably the same thing as #32 ... I'll try to have a look at this later this week.

mwpowellhtx commented 11 years ago

yessir, could be well along the same lines. the issues I added are Features and not Bugs, but I expect I could add release notes for any issue.

mwpowellhtx commented 11 years ago

This is strange: the issue seems to have "self-corrected" or I'm unfamiliar with the conditions under which the issue occurs. I'd say more the second than the first.

I added other projects/versions/issues with release notes and various issue states. Now I can browse to the Release Notes tab without errors.

I'm a developer by nature just not a Rails developer at all: seems like perhaps there's a null-edge-case perhaps, like if there's an empty set condition, no eligible versions/issues to report, and the error happens.

That's my two cents. Hope it helps.

mwpowellhtx commented 11 years ago

Okay, so same result as before: I click to Generate Release Notes for one of the versions, then click the action to do that on the next screen, so far so good. Then I browse Release Notes, and again with the internal errors.

mwpowellhtx commented 11 years ago

Any word on this one by chance?

hdgarrood commented 11 years ago

I haven't forgotten about it. Can't say when I'll get round to having a look at it though.

hdgarrood commented 11 years ago

I just noticed from your post on the Redmine forums, the Redmine version you're using is 1.4.4. Which version of the plugin are you using?

mwpowellhtx commented 11 years ago

As far as I know, 1.1.0 or 1.1.1, whatever the latest one was I could download. Update: and be compatible with Redmine.

hdgarrood commented 11 years ago

ok, I'll try to get this plugin working with redmine 1.x so that I can get you up to the latest version of it first.

mwpowellhtx commented 11 years ago

Curious, where do we stand with this one? Do I need to get any latest code? How to go about updating my Redmine installation?

hdgarrood commented 11 years ago

I haven't done any work on this yet. Actually I'd recommend updating to Redmine 2.x because there's a not-insignificant amount of work that's gone into the 2.x version which hasn't been backported or anything. And I think Redmine 2.x is worth updating to anyway.

mwpowellhtx commented 11 years ago

Easier said than done. Easy to backup the vm, db, whatever. I am running on a latest linux mint distro. Can that be easily upgraded or can you recommend where to look into that? I'm sort of a linux newbie too.

hdgarrood commented 11 years ago

Depends on how you installed it in the first place. Was it through the mint repositories? (ie sudo apt-get install redmine or similar?)

hdgarrood commented 11 years ago

I'm going to close this since it only seems to affect Redmine 1.x.