Product: TIBCO Spotfire®
Automation job fails to execute, getting ERROR: "FAILED: Task 1 Open Analysis from Library failed to finish executing for job XXX-XXX-XXX-XXX. Configuration setting 'maxWaitTimeForTaskBackgroundJobToFinishSeconds' can be increased for slow running jobs."
Error while executing Automation service job. Refer to the attached screenshot (Filename: Error_Screenshot_AS-Job.JPG).
--------------
Starting job Test.xml on server http://spotfire_test.tss.com/
FAILED: Task 1 Open Analysis from Library failed to finish executing for job XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. Configuration setting 'maxWaitTimeForTaskBackgroundJobToFinishSeconds' can be increased for slow running jobs
--------------
You need to increase the value for the parameter "maxWaitTimeForTaskBackgroundJobToFinishSeconds" for the Automation Services service configuration via the TIBCO Spotfire Server. Use the following steps to change the value for the "maxWaitTimeForTaskBackgroundJobToFinishSeconds" parameter.
==============
1). On the Spotfire Server machine, open command prompt and "cd" (change directory) to <Spotfire installation directory>\tomcat\bin (For version 10.2.0 and lower) or <server installation dir>/tomcat/spotfire-bin(for version 10.3 and higher)
2). Run the following command to export the service configuration.
config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=Production --force
NOTE: "Production" is a default area and can be changed to whichever area you want to edit.
3). Open newly exported "Spotfire.Dxp.Worker.Automation.config" file in "<Spotfire installation directory>\tomcat\bin\config\root"
4). Find the following line.
<automation maxWaitTimeForTaskBackgroundJobToFinishSeconds="180" maxConcurrentJobs="-1" useKerberos="false">
and change the value 180. e.g., 360 or to a higher value, if needed.
5). Save the file.
6). Import the service configuration with the following command.
config import-service-config --config-name=increasedTimeoutSetting
7). Open Spotfire Server Web Admin and go to "Nodes & Services"
8). Select "Automation Services" and click the "Edit" button to the right.
9). Select "increasedTimeoutSetting" and click Save.
This will automatically restart Automation Service instances.
==============
https://docs.tibco.com/pub/spotfire_server/7.10.0/doc/html/TIB_sfire_server_tsas_admin_help/GUID-996114A8-DD2A-4506-B798-1D8404AB1A04.html