Description

Administrators who try to install or uninstall applications or content packs might face the error "another preview/install/uninstall task is currently in process". In this state, applications and content packs cannot be installed by using the Extension Management.

 

Symptoms

In the Extensions Management menu, after an application or content pack file is installed, the following error is displayed:

 

 

A previous application or content pack failed to be installed or removed.

 

The issue can be verified in 2 ways (GUI and CLI).

 

In the GUI

 

1. Log in to the QRadar Console GUI as the administrator user.

2. Click the Admin tab.

3. Click the Extensions Management menu.

 

 

4. In the Extensions Management menu, click Add.

5. Browse the application or content pack package.

6. Select the "Install immediately" box.

7. Click Add.

 

8. The error "another preview/install/uninstall task is currently in process" shows up.

 

In the CLI

 

1. Log in to the QRadar Console as the root user.

2. Run the following psql command to check what is the current task blocking the installation or removal.

3. Note: The following command displays only the conflicting entries that might cause the issue. 

psql -U qradar -c "select hub_id,content_status,id from content_package where content_status not in (3,6,9);"
                       hub_id                        | content_status |  id
-----------------------------------------------------+----------------+-----
 IBMQRadar:IBMContentPackageInternalBaseMaint        |              5 |  601
 IBMQRadar:Cyber Adversary Framework Mapping Content |              1 |  301
 IBMQRadar:Tuning                                    |              8 |  201
 

Solution

1. Log in to the QRadar Console as the root user.

2. Back up the content_package table.

3. Create the backup directory.

# mkdir -p /store/IBM_Support/
4. Back up the table.
# pg_dump -U qradar -t content_package --inserts -f /store/IBM_Support/content_package.sql-$(date +%F)
5. Run the psql command in the "Diagnosing the Problem" section and make note of each ID.

6. Update the content_package table and set the conflicting IDs in the content_status column to 6 (uninstalled status).

7. Note: When multiple entries are listed, rerun the command for each ID in the list.

# psql -U qradar -c "update content_package set content_status = 6 where id='<ID>';"
Example:
# psql -U qradar -c "update content_package set content_status = 6 where id='601';"

8. Rerun the psql command. No output must appear.

# psql -U qradar -c "select hub_id,content_status,id from content_package where content_status not in (3,6,9);"
 hub_id | content_status | id
--------+----------------+----
(0 rows)

9. Clear the browser cache.

10. Log in to the QRadar Console GUI as the administrator user.

11. Install the required application or content package.

  1. Click the Admin tab.
  2. Click the Extensions Management menu.
  3. In the Extensions Management menu, click Add.
  4. Browse the application or content pack package.
  5. Select the "Install immediately" box.
  6. Click Add.

Result

The required application or content pack finishes the installation or removal successfully. 

Modification History

2024-06-27 : Article Created