FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
maydin
Staff
Staff
Article Id 224531
Description

This article describes how to fix stuck tasks in the task monitor.

Task monitor might show long-lasting tasks with %0 progress like below. These tasks cannot be deleted or completed. 

 

maydin_0-1663851013022.png

 

Also, it covers the case as seen below that the installation preparation bar does not move, this step if finished will allow seeing the install preview.

 

FMG-InstallStuckattheBeginning.PNG

Scope FortiManager.
Solution

This issue can be fixed by repairing the task Database with the below command:

 

diagnose dvm task repair

 

The above command requires FortiManager to reboot.

 

There is another CLI command that will reset the task:

    diagnose dvm task reset

This command will reset the task database to its factory default state.
ALL EXISTING TASKS AND TASK HISTORY WILL BE ERASED. System will reboot for the reset.
Do you want to continue? (y/n)

 

Upon performing the 'diagnose dvm task reset', all of the tasks and history will be deleted.

 

As a result, if it is necessary to perform 'diagnose dvm task reset', consider taking a backup of the task DB:

 

FMG-VM64-KVM # execute backup task ftp/scp/sftp 10.10.10 / lala lala

 

Task Monitor before running the reset command:

 
 

Screenshot 2025-01-24 134951.png


Task Monitor after running reset command:

 

Screenshot 2025-01-24 140426.png

 

In addition, before running the command, make sure that there are no active operations in FortiManager. For example, another user trying to install a policy, etc. 

 

After the completion of the reboot, there will be no long-lasting tasks with 0% progress similar to the screenshot above. This can be checked again via task monitor. 

 

In the second case above, it is possible to see the installation preparation bar move and complete and see the install preview.

 

CLI reference:

DVM CLI Reference