Error "Access to 'Spotfire.Dxp.Automation.ClientJobSender.exe.log' is denied" is seen when running a TIBCO Spotfire Automation Services job

Error "Access to 'Spotfire.Dxp.Automation.ClientJobSender.exe.log' is denied" is seen when running a TIBCO Spotfire Automation Services job

book

Article ID: KB0077111

calendar_today

Updated On:

Products Versions
Spotfire Automation Services 7.5 and higher

Description

While running a TIBCO Spotfire Automation Services job from the command line or Windows Task Scheduler, the following error may be seen:

 10:28:34.905: Failed to log 'Info;19-08-27 10:28:34.905;4156;Console; ', reason:  System.UnauthorizedAccessException: Access to the path '\\MyAutomationDir\TIBCO Spotfire Automation Services\Spotfire.Dxp.Automation.ClientJobSender.exe.log' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolea n useLongPath, Boolean checkHost)    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)    at System.IO.StreamWriter..ctor(String path, Boolean append)    at System.IO.File.AppendText(String path)    at Spotfire.Dxp.Automation.ClientJobSender.Logger.Log(String className, String text, Level level, Exception exception)

The above error can be seen despite the user/account running the Automation Services job having Full Access to the above path. 

Also, while attempting to modifying access permissions to the "TIBCO Spotfire Automation Services" Windows directory, the following error may also be seen:
 Failed to enumerate objects in the container. Access is denied.

User-added image

Resolution

In this situation, it is possible that the "Spotfire.Dxp.Automation.ClientJobSender.exe.log" file located under the "TIBCO Spotfire Automation Services" installation directory is corrupted and the logs are not able to be written to this file. To resolve the issue, just delete the existing "Spotfire.Dxp.Automation.ClientJobSender.exe.log" file under "TIBCO Spotfire Automation Services" directory and then execute the TIBCO Spotfire Automation Services job again. Now the "Spotfire.Dxp.Automation.ClientJobSender.exe.log" file will be generated again.

Issue/Introduction

Error "Access to 'Spotfire.Dxp.Automation.ClientJobSender.exe.log' is denied" is seen when running a TIBCO Spotfire Automation Services job from Command Line/Windows Task Scheduler

Additional Information

Doc: Installing the Client Job Sender Doc: Running the Client Job Sender