Actions
Bug #12850
closedunable to view job
Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Description
when browsing to /job_invocations/id the following is observed:
NoMethodError undefined method `job_invocation' for nil:NilClass /home/foreman/gems/bundler/gems/foreman_remote_execution-caa43492e94f/app/helpers/remote_execution_helper.rb:95:in `job_invocation_task_buttons' /home/foreman/gems/bundler/gems/foreman_remote_execution-caa43492e94f/app/views/job_invocations/show.html.erb:6:in `_2b9ff36f9e8a735e49b5f5f1180153cf' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/template.rb:145:in `block in render' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications.rb:125:in `instrument' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/template.rb:143:in `render' /home/foreman/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:17:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:88:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/rendering.rb:16:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in `realtime' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/foreman/gems/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:167:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:638:in `block (4 levels) in _run__2982867917267852823__process_action__706015306473473777__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_8718' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:326:in `around' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:310:in `_callback_around_3152' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_8718' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:626:in `block (3 levels) in _run__2982867917267852823__process_action__706015306473473777__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_8717' /home/foreman/git/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_8717' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:625:in `block (2 levels) in _run__2982867917267852823__process_action__706015306473473777__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_8716' /home/foreman/git/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_8716' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:448:in `block in _run__2982867917267852823__process_action__706015306473473777__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_8715' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:326:in `around' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:310:in `_callback_around_13' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_8715' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:414:in `_run__2982867917267852823__process_action__706015306473473777__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/foreman/gems/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121:in `process' /home/foreman/gems/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45:in `process' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203:in `dispatch' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246:in `block in action' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36:in `call' /home/foreman/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' /home/foreman/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' /home/foreman/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608:in `call' /home/foreman/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in `call' /home/foreman/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/etag.rb:23:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/conditionalget.rb:25:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /home/foreman/git/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:210:in `context' /home/foreman/gems/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:205:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341:in `call' /home/foreman/gems/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64:in `call' /home/foreman/gems/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__3839610246735230779__call__2288018001611505428__callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' /home/foreman/gems/gems/railties-3.2.22/lib/rails/rack/logger.rb:32:in `call_app' /home/foreman/gems/gems/railties-3.2.22/lib/rails/rack/logger.rb:18:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/methodoverride.rb:21:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/runtime.rb:17:in `call' /home/foreman/gems/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/lock.rb:15:in `call' /home/foreman/gems/gems/actionpack-3.2.22/lib/action_dispatch/middleware/static.rb:83:in `call' /home/foreman/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward' /home/foreman/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch' /home/foreman/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup' /home/foreman/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!' /home/foreman/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call' /home/foreman/gems/gems/railties-3.2.22/lib/rails/engine.rb:484:in `call' /home/foreman/gems/gems/railties-3.2.22/lib/rails/application.rb:231:in `call' /home/foreman/gems/gems/railties-3.2.22/lib/rails/railtie/configurable.rb:30:in `method_missing' /home/foreman/gems/gems/rack-1.4.7/lib/rack/builder.rb:134:in `call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/urlmap.rb:64:in `block in call' /home/foreman/gems/gems/rack-1.4.7/lib/rack/urlmap.rb:49:in `each' /home/foreman/gems/gems/rack-1.4.7/lib/rack/urlmap.rb:49:in `call' /root/.gem/gems/passenger-5.0.7/lib/phusion_passenger/rack/thread_handler_extension.rb:89:in `process_request' /root/.gem/gems/passenger-5.0.7/lib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request' /root/.gem/gems/passenger-5.0.7/lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop' /root/.gem/gems/passenger-5.0.7/lib/phusion_passenger/request_handler.rb:414:in `block (3 levels) in start_threads' /root/.gem/gems/passenger-5.0.7/lib/phusion_passenger/utils.rb:111:in `block in create_thread_and_abort_on_exception' /home/foreman/gems/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `call' /home/foreman/gems/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `block in create_with_logging_context'
Updated by Stephen Benjamin about 9 years ago
I'm pretty sure this happens when viewing an invocation that was created before the recurring invocations was merged, a bunch of things changed in how we link the task to to the invocation, etc. I'm not sure if it could be migrated, I think Adam or Ivan would need to look at it.
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Adam Ruzicka
- Target version set to 97
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/90 added
Updated by Stephen Benjamin about 9 years ago
- Target version changed from 97 to 92
Updated by The Foreman Bot about 9 years ago
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/91 added
Updated by Adam Ruzicka about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|2fe77400801bc4f2263576fe32f3192f8d327007.
Updated by Marek Hulán about 9 years ago
- Translation missing: en.field_release set to 108
Actions