A new Flexera Community experience is coming on November 25th. Click here for more information.
Hi All,
We are having a scenario, where the BatchProcess tasks are not getting succeeded and throwing exit code as 1.
This happened post DB refresh from Prod to DEV and doing the necessary modifications.
This activity is being performed from quite some time and this is the first time we are facing this issue.
Any leads on what could be the reason for exit code 1 and how can it be resolved?
Steps tried:
Tried restarting the Batchprocessor & BatchprocessScheduler tasks\, still didnt work
Tried restarting the server and no use.
enabled the debug level in batchprocessor and scheduler config files and still couldnt see extra info.
Database details are modified to dev and the App/Batch details are modified to Dev everywhere in the DB tables.
Log Content:
2023-04-04 00:13:47,211 [ocessor.BatchProcessor] [DEBUG] Message FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Registered executing task of type ProcessFNMSDashboardUpdateTask - currently 1 running task(s)
2023-04-04 00:13:47,211 [faultTenantActionsData] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Tenant UID specified in a single tenant system: . This is probably incorrect.
2023-04-04 00:13:47,211 [istryConnectionFactory] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Connection string for tenantUID= type=FNMP: 'Server=(removed this information for security purpose);Database=fnmscompliance;Trusted_Connection=yes;'
2023-04-04 00:13:47,227 [istryConnectionFactory] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Connection string for tenantUID=0000000000000000 type=FNMP: 'Server=(removed this information for security purpose);Database=fnmscompliance;Trusted_Connection=yes;'
2023-04-04 00:13:47,227 [ocessor.BatchProcessor] [INFO ] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Executing task with process task type 'ProcessFNMSDashboardUpdateTask'
2023-04-04 00:13:47,227 [ssAdapter.ExecutorBase] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Found ShadowHost.exe at C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe
2023-04-04 00:13:47,227 [ssAdapter.ExecutorBase] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Found C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe
2023-04-04 00:13:47,227 [NMSDashboardUpdateTask] [INFO ] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Starting process with command line '"C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe" "C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe" -importtype Exporters -processremotepackages false -concurrent Dashboard -d BusinessIntelligenceRights -d BusinessIntelligenceData -o ChangedOnly=true'
2023-04-04 00:13:47,227 [NMSDashboardUpdateTask] [INFO ] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Executing 'C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe'
Arguments: '"C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe" -importtype Exporters -processremotepackages false -concurrent Dashboard -d BusinessIntelligenceRights -d BusinessIntelligenceData -o ChangedOnly=true'
Task: 'FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7]'
2023-04-04 00:13:47,227 [NMSDashboardUpdateTask] [DEBUG] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Started task 'FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7]'. ProcessID: 344
2023-04-04 00:13:57,445 [NMSDashboardUpdateTask] [INFO ] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Process 344 complete. Task: FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] ExitCode: 1
2023-04-04 00:13:57,445 [NMSDashboardUpdateTask] [ERROR] FNMSDashboardUpdate[81296578-7d10-4812-b67f-e0dfd61580a7] Finished process with command line '"C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe" "C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe" -importtype Exporters -processremotepackages false -concurrent Dashboard -d BusinessIntelligenceRights -d BusinessIntelligenceData -o ChangedOnly=true' and exit code '1'
@ChrisG @bmaudlin @JohnSorensenDK @mcavanagh @jevans @Flex-Kieran
‎Apr 04, 2023 12:56 AM - edited ‎Apr 05, 2023 12:33 AM
Is it possible for you to place log excerpts from the batch processor and batch scheduler logs? Perhaps additional eyes might catch something being overlooked. Usually the log will tell you that it started something, provide the command that ran and indicate that it finished. An example from an active directory import:
2023-04-04 00:32:16,658 [iveDirectoryImportTask] [INFO ] ActiveDirectoryImport[af963632-27f5-4e8e-b222-c2628969dc24] Starting process with command line '"C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe" "C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe" -s "FlexNet Manager Suite" -e ActiveDirectory'
2023-04-04 00:32:16,658 [iveDirectoryImportTask] [INFO ] ActiveDirectoryImport[af963632-27f5-4e8e-b222-c2628969dc24] Executing 'C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ShadowHost.exe'
Arguments: '"C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\ComplianceReader.exe" -s "FlexNet Manager Suite" -e ActiveDirectory'
Task: 'ActiveDirectoryImport[af963632-27f5-4e8e-b222-c2628969dc24]'
2023-04-04 00:32:38,789 [iveDirectoryImportTask] [INFO ] ActiveDirectoryImport[af963632-27f5-4e8e-b222-c2628969dc24] Process 3504 complete. Task: ActiveDirectoryImport[af963632-27f5-4e8e-b222-c2628969dc24] ExitCode: 0
Or are you saying that the batch processor itself is not starting up at all?
‎Apr 04, 2023 02:28 PM
So it might be better to read the compliancereader logs located C:\ProgramData\Flexera Software\Compliance\Logging\ComplianceReader
that will give you an idea on what is going wrong with them
‎Apr 05, 2023 04:32 AM