[Satellite 6] Content view publish task fails with 'RestClient::InternalServerError: 500 Internal Server Error'

Solution Unverified - Updated

Environment

  • Red Hat Satellite 6.2.x

Issue

  • When publish a new version of Content view it fails with following error:
Actions::Pulp::Repository::CopyRpm (error) [ 122.29s / 122.29s ]  

RestClient::InternalServerError: 500 Internal Server Error    
  • Unable to resume or Cancel the Content View Publish task.

Resolution

  • On Red Hat Satellite try following command to clean Actions::Katello::ContentView::Publish task:
 # service foreman-tasks stop

 # foreman-rake console

 irb(main):004:0> ForemanTasks::Task.where(:state => :paused).where(:label => "Actions::Katello::ContentView::Publish").destroy_all
 
 irb(main):004:0> exit

 # service foreman-tasks start
  • Now try to publish a new version of affected Content view.

Note: After following up the mentioned steps if you are still facing the same issue then please open a case with Red Hat Technical support for further assistance.

For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues

Diagnostic Steps

  • On Red Hat Satellite check Actions::Katello::ContentView::Publish task status at below path:
- On Satellite GUI:

   Monitor => Tasks => search ' label = Actions::Katello::ContentView::Publish' => Click on task => Dynflow Console => under 'Run' => ' Actions::Pulp::Repository::CopyRpm ' fails with below error:
------------------------------------------------------------------------------------>
RestClient::InternalServerError

500 Internal Server Error

---
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
  `return!'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.11.0/lib/runcible/base.rb:79:in
  `block in get_response'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
  `call'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in
  `process_result'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in
  `block in transmit'"
- "/opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:44:in
  `transmit'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
  `execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in
  `execute'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in
  `get'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.11.0/lib/runcible/base.rb:78:in
  `get_response'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.11.0/lib/runcible/base.rb:66:in
  `call'"
------------------------------------------------------------------------------------>

  • On Red Hat Satellite run following command to see Actions::Katello::ContentView::Publish tasks status:
 # su - postgres -c "psql -d foreman -c 'select label,count(label),state from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state;'" |grep 'Actions::Katello::ContentView::Publish'

 Actions::Katello::ContentView::Publish      |     1 | paused                    <== Task showing in 'paused' state.
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.