AnsweredAssumed Answered

Error status 408 read time out executing script

Question asked by skushnerenko on Jul 14, 2019
Latest reply on Jul 15, 2019 by skushnerenko

There is a java script which is executed as a folder rule 

The script is intended to clean repository

// execute a lucene search across the repository for pdf documents in a specific folder created the exact day
var docs = search.luceneSearch("PATH:\"/app:company_home/cm:SED_ROOT//*\" AND TYPE:\"doc:rawcontent\"");
var i;
for (i=0; i<docs.length; i++)
{
docs[i].remove();
}

The search part is executed at reasonable time from admin console, but while executing folder rule there is error in share.log:

2019-07-14 17:59:30,007 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] [http-apr-8181-exec-8] Exception calling (POST) http://localhost:8181/alfresco/s/api/actionQueue?alf_ticket=TICKET_5f5a9bd3f5b675050a9049512ea19ce22c645754
2019-07-14 17:59:30,010 INFO [org.springframework.extensions.webscripts.connector.RemoteClient] [http-apr-8181-exec-8] Error status 408 Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)

How to increase read timeout value in alfresco community 201612 version?

Outcomes