I have tried to use the Discovery service on several servers but without success. It starts scheduled scans of the ip ranges configured in the settings and successfuly generates files in the scan directory but it fails to transfer these files to the location I set no matter if it is on the disk or if it is sftp path. The gathered agents reports in the same way are not transffered to the location I want. |The error is awlays the same:
"The process cannot access the file 'C:\Program Files\Discovery\B3A70discoveryService.lock' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Insight.Discovery.Logic.FileTransfer.TransferFile() in C:\SourceCode\discovery_repo\Discovery\Logic\FileTransfer.cs:line 50
at Insight.Discovery.Logic.ScanWorker.TransportZipFiles(String path) in C:\SourceCode\discovery_repo\Discovery\Logic\ScanWorker.cs:line 330"
I tried different locations, tried to set different accounts for the service, tried to give permissions to Everyone for discovery folder and export folder but still that error. On freshly new instance on different server the behavour is the same.
If I run manually the discovery scan then it is working and the files from the scan folder are transffered wherever I point for the export location in the settings.
But without that service working I can't make the scans automated which is a big stopper for me.
The newer version 3.1.1 fixed the problem for me, they have it released. You can download obr file manually here and upload it to Jira App manager https://marketplace.atlassian.com/apps/1214668/insight-discovery/version-history
or you can try to update Universal Plugin Manager to see if your Jira will show the updates to download automatically.
Also consider Jira versions in following link.