cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ESD Service Randomly Stops

Has there been any reported issues of ESD Service Crashing in AppPortal 2019 R1? 3 times in the passed two weeks. 

The ESDService log will stop at Check if Configmgr Connection exist. We found the below in Application Logs

Faulting application name: ESDService.exe, version: 14.0.0.0, time stamp: 0x5ce70157
Faulting module name: KERNELBASE.dll, version: 6.3.9600.19358, time stamp: 0x5ccf981a
Exception code: 0xe0434352
Fault offset: 0x00013ce8
Faulting process id: 0x2a68
Faulting application start time: 0x01d540f3eea5cde8
Faulting application path: D:\Program Files (x86)\Flexera Software\App Portal\Service\ESDService.exe
Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
Report Id: 1ebd6d8c-b215-11e9-8133-005056a77c93
Faulting package full name:
Faulting package-relative application ID:
 

Application: ESDService.exe
Framework Version: v4.0.30319 Description:
The process was terminated due to an unhandled exception. Exception Info: System.IO.IOException    at System.IO.__Error.WinIOError(Int32, System.String)    at System.IO.FileInfo.Delete()    at ESDService.ESDService.FileSystemWatcher1_Changed(System.Object, System.IO.FileSystemEventArgs)    at System.IO.FileSystemWatcher.OnCreated(System.IO.FileSystemEventArgs)    at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32, System.String)    at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, System.Threading.NativeOverlapped*)    at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
(1) Solution
CharlesW
By Level 12 Flexeran
Level 12 Flexeran
Dustin,
I know that there is a race condition in the ESD Service which can happen periodically, resulting in the service crashing. This occurs when App portal tries to write a trigger file at the same time it is trying to delete a trigger file of the same name. It is more likely to occur when many requests are being submitted in a short period of time. Fortunately, the work around is easy…Just run the following query and then restart the ESD Service:

insert into wd_appSettings(keyname, value)
values ('DisableImmediateApprovalNotification', 'True')

Note that this forces initial approval emails to be processed by the ESD Service every couple of minutes, rather than instantly upon request submission, so it does not result in any loss of functionality…

Thanks
Charles

View solution in original post

(2) Replies
CharlesW
By Level 12 Flexeran
Level 12 Flexeran
Dustin,
I know that there is a race condition in the ESD Service which can happen periodically, resulting in the service crashing. This occurs when App portal tries to write a trigger file at the same time it is trying to delete a trigger file of the same name. It is more likely to occur when many requests are being submitted in a short period of time. Fortunately, the work around is easy…Just run the following query and then restart the ESD Service:

insert into wd_appSettings(keyname, value)
values ('DisableImmediateApprovalNotification', 'True')

Note that this forces initial approval emails to be processed by the ESD Service every couple of minutes, rather than instantly upon request submission, so it does not result in any loss of functionality…

Thanks
Charles

This definitely makes sense in our environment! Appreciate the info