Check for long running tasks on Red Hat Satellite 6 fails with: arguments expected to be an Array of individual string args

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.14

Issue

  • Check for long running tasks on Satellite 6 fails with:

    arguments expected to be an Array of individual string args
    

Resolution

  • Check for any paused task on satellite by running the below command:

    # su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
    
  • Remove those tasks if safe by following this article .

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

Root Cause

  • Paused tasks were not cleaned up on satellite.

Diagnostic Steps

  • Below is an example, where Actions::Katello::Organization::Destroy task was found to be in paused state on satellite. The task may differ in each case:

        # su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
                            label                         | count |   state   | result  
    ------------------------------------------------------+-------+-----------+---------
     Actions::CheckLongRunningTasks                       |     1 | scheduled | pending
     Actions::Katello::Organization::Destroy              |     2 | paused    | error
     Actions::Katello::SyncPlan::Run                      |     2 | scheduled | pending
     CreateExpiredManifestNotifications                   |     1 | scheduled | pending
     CreatePulpDiskSpaceNotifications                     |     1 | scheduled | pending
     CreateRssNotifications                               |     1 | scheduled | pending
     ForemanInventoryUpload::Async::GenerateAllReportsJob |     1 | scheduled | pending
     InventorySync::Async::InventoryScheduledSync         |     1 | scheduled | pending
     SendExpireSoonNotifications                          |     1 | scheduled | pending
     StoredValuesCleanupJob                               |     1 | scheduled | pending
    
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.