When multiple discovery tasks are run on a beacon at the same time, one or more of the tasks may fail or result in other inconsistent behavior. Symptoms of this issue can include:
This issue is caused by a logic error whereby separate discovery tasks may use the same file paths for storing state information, so that one task corrupts the state of the other task.
Here is an example of how logging may appear in separate Discovery.log files from concurrently running tasks affected by this issue. Note the very similar timestamps:
2022-01-10 00:05:58,621 [iscovery.NMapDiscovery|IPScan] [INFO ] Command line for mgsipScan: -p T:22,80,135,139,161,443,445,U:22,135,139,161,445 -oX "C:\windows\TEMP\ManageSoft\discovery\mgsipscan-t-2022110_0558-29f125104f-96a2-4d83-83a2-22e82af2fcb9.xml" -PI -sS -sU 10.120.0.240 10.10.250.63 172.41.7.81 172.41.125.80 172.41.176.50-51 2022-01-10 00:05:58,888 [veryExportDeviceSource|DeviceSource] [INFO ] Processing exported disco files extracted in the folder 'C:\ProgramData\Flexera Software\Beacon\DiscoveryExport\373': 27 files to be processed. 2022-01-10 00:05:58,888 [veryExportDeviceSource|DeviceSource] [INFO ] Processing exported disco file 'C:\ProgramData\Flexera Software\Beacon\DiscoveryExport\373\1.disco' 2022-01-10 00:05:59,762 [veryExportDeviceSource|DeviceSource] [INFO ] Processing exported disco file 'C:\ProgramData\Flexera Software\Beacon\DiscoveryExport\373\10.disco' 2022-01-10 00:06:00,686 [veryExportDeviceSource|DeviceSource] [ERROR] Failed to process exported disco files for device discovery: Could not find file 'C:\ProgramData\Flexera Software\Beacon\DiscoveryExport\373\10.disco'.
And:
2022-01-10 00:06:00,606 [iscovery.NMapDiscovery|IPScan] [INFO ] Command line for mgsipScan: -p T:22,80,135,139,161,443,445,U:22,135,139,161,445 -oX "C:\windows\TEMP\ManageSoft\discovery\mgsipscan-t-2022110_060-7661f8ff99-ed59-42a5-b486-b0cc5e4c73e8.xml" -PI -sS -sU 2022-01-10 00:06:00,606 [veryExportDeviceSource|DeviceSource] [ERROR] Failed to process exported disco files for device discovery: The process cannot access the file '1.disco' because it is being used by another process.
Ensure that rules that run discovery tasks are scheduled to run at different times. Allow sufficient time for one task to complete its work before the next task commences.
This issue is still open but not currently scheduled to be addressed.
Affected components: Discovery, Inventory Beacon
Master issue ID: IOJ-2241968
Also known as: ITAM-1575
Feb 02, 2022 01:28 PM - edited Nov 20, 2023 01:32 PM