If reconcile or other import tasks are stuck in progress for several days before timing out, or are not appearing in the System Task view, this is typically a symptom of FlexNet batch services not running correctly. Batch services rely on the connection to the FlexNet Manager Suite database, and reconcile tasks can get stuck when an interruption occurs in one or both service runs. The interruption can occur on the machine itself or due to connection issues with the FlexNet Manager Suite database if it's hosted on a separate server. Interruptions can also happen if the database goes down.
Symptoms that may indicate you have this issue are:
Before starting/restarting the services, it is best to clear the batch queue first so that multiple reconciles aren't queued and run consecutively.
1. Log on to the FlexNet Manager Suite batch server with the service account and open an elevated command prompt (right-click on Command Prompt > select Run as administrator).
2. In the command prompt, go to the FlexNet Manager Suite installation directory:
Cd ‘C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\’
NOTE: You may need to change the path if FlexNet Manager Suite is installed on a different path or drive.
3. Check if there are queued tasks by entering the following command:
BatchProcessTaskConsole list-tasks
a. If the command returns no queued tasks, please proceed to step 5.
b. If the command returns queued tasks, download and run the attached StopMultiTasksAuto.ps1 script to clear the queued tasks.
4. Run the command from step 3 again to verify that all tasks have cleared from the queue:
BatchProcessTaskConsole.exe list-tasks
NOTE: You may need to rerun the StopMultiTasksAuto.ps1 script a few times until all tasks have been cleared from the queue.
5. Once you have verified that all tasks are cleared from the queue, open Services.msc and start/restart the FlexNet Batch Processor and FlexNet Batch Scheduler services.
6. Trigger the reconcile manually from the UI or wait until the next scheduled reconcile run.
Dec 27, 2022 10:57 AM
in my batch server, the StopMultiTasks Auto.ps1 cannot run by powershell because of permission problem. i used the "BatchProcessTaskConsole.exe fail-task" to stop each tasks and then restart the services
You may need to temporarily set the execution policy to allow the script to run successfully. For example, running the following command in a powershell window Set-ExecutionPolicy bypass and choosing Y to confirm the changes.
The script just automates the fail-task command against each task as sometimes there may be a large amount of tasks that needs to be cleared and it is easier than manually running the BatchProcessTaskConsole.exe fail-task -m {GUID} command against each task one by one.