Description of problem: Content View publish task fails with the following error: ~~~ No route matches {:action=>"show", :controller=>"foreman_tasks/tasks", :id=>nil}, missing required keys: [:id] (ActionController::UrlGenerationError) /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:248:in `raise_generation_error' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:218:in `block in optimized_helper' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:233:in `block in parameterize_args' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:230:in `times' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:230:in `parameterize_args' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:217:in `optimized_helper' /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:198:in `call' /usr/share/foreman/config/initializers/routing_hash_for.rb:11:in `block (2 levels) in define_url_helper' ... ... ~~~ Version-Release number of selected component (if applicable): Satellite 6.10.1 pulp3 How reproducible: N/A Additional info: The traceback seems identical to: https://community.theforeman.org/t/trying-to-synchronize-one-of-my-repos-results-in-the-error-actioncontroller-no-route-matches-action-show-controller-foreman-tasks-tasks-id-nil-missing-required-keys-id/24655 https://community.theforeman.org/t/content-view-publish-no-route-matches-error/24650 https://community.theforeman.org/t/no-route-matches-action-show-controller-foreman-tasks-tasks-id-nil-missing-required-keys-id/23905
do we know what 'foreman-rake cleanup script' was run?
There was a stuck CV publish task in a paused state due to Bug 2013320. We executed this to get rid of it: # foreman-rake foreman_tasks:cleanup TASK_SEARCH='label ~ *' VERBOSE=true STATES='paused'
Created redmine issue https://projects.theforeman.org/issues/34101 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34101 has been resolved.
Guess we can flip this over to modified.
Verified on Satellite 6.11 sn 15, satellite-maintain health check now deletes paused tasks as expected and CV publish tasks can be successfully triggered afterwards.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5498