Problem:
when I try to publish centos 8 content view , it got stuck and I tried a few times, more tasks stuck , tried stop/cancel them , didn’t work. I removed the tasks from database,
su - postgres
psql foreman
delete from foreman_tasks_tasks where id in(select id from foreman_tasks_tasks where state = 'stopped' and result = 'error');
\q
but after that when I try to publish the content view , got this error:
No route matches {:action=>“show”, :controller=>“foreman_tasks/tasks”, :id=>nil}, missing required keys: [:id]
this is both on CentOS-8 content view , tried regenerate repository metadata, this works, but publish or promote the latest version got this error.
> rpm -q foreman katello
foreman-2.5.1-1.el7.noarch
katello-4.1.0-1.el7.noarch
> cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)