Project

General

Profile

Actions

Bug #33163

closed

ISE when viewing cancelled scheduled task

Added by Adam Ruzicka over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Steps to reproduce:
1) Schedule a job for the future
2) Cancel it before it starts
3) Try to go to jobs details

2021-07-28T14:44:13 [I|app|d3622fce] Completed 500 Internal Server Error in 181ms (ActiveRecord: 15.2ms | Allocations: 135842)
 d3622fce | 
 d3622fce | 
2021-07-28T14:44:13 [F|app|d3622fce]   
 d3622fce | ActionView::Template::Error (undefined method `-' for nil:NilClass):
 d3622fce |     10:     <%= minicard('user', template_invocation.effective_user || Setting[:remote_execution_effective_user],
 d3622fce |     11:                  template_invocation.template.name + ' ' + _('effective user')) %>
 d3622fce |     12:     <div class="row">
 d3622fce |     13:       <% missing = job_invocation.missing_hosts_count %>
 d3622fce |     14:       <% size = missing.zero? ? 12 : 6 %>
 d3622fce |     15:       <div class="col-xs-12 col-sm-<%= size %> col-md-<%= size %>" >
 d3622fce |     16:         <%= minicard('cluster', job_invocation.total_hosts_count, _('Total hosts')) %>
 d3622fce |   
 d3622fce | app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 d3622fce | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 d3622fce | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 d3622fce | lib/foreman/middleware/telemetry.rb:10:in `call'
 d3622fce | lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 d3622fce | lib/foreman/middleware/logging_context_session.rb:22:in `call'
 d3622fce | lib/foreman/middleware/logging_context_request.rb:11:in `call'
2021-07-28T14:44:14 [I|app|d3622fce]   Rendered /home/aruzicka/.rvm/gems/ruby-2.7.0/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (Duration: 8.0ms | Allocations: 9702)
Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/639 added
Actions #2

Updated by Adam Ruzicka over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Adam Ruzicka over 2 years ago

  • Fixed in Releases foreman_remote_execution-4.7.0 added
Actions #4

Updated by Adam Ruzicka over 2 years ago

  • Fixed in Releases foreman_remote_execution-4.5.4 added
Actions

Also available in: Atom PDF