operation timeout

An very long running operation raises an error:

2017-10-11 07:53:11,651 WARN  [http-bio-IP-8080-exec-11] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing
org.nuxeo.ecm.webengine.WebException: Failed to invoke operation: RunOperation
...
Caused by: org.nuxeo.ecm.automation.TraceException: 

All recorded logs are in file longrun-error.log

Where should be changed the timeout for the operations to enable passing the execution ?

For tests I attached the bundle testLongRunningOperation.zip. It includes the “Document.LongRunningOperation” operation and the “TestLongRunningOperation” chain. The operation works in loop by 60min.

0 votes

0 answers

3113 views

ANSWER

Hello,

Here you can find the configuration of the transaction db timeout or in your case, the session timeout:

https://doc.nuxeo.com/nxdoc/configuration-parameters-index-nuxeoconf/ (search for timeout in the page) - You can set it in nuxeo.conf.

However I'm not sure if it can help you because AFAIK the session timeout is set to 60 minutes by default: are you importing a large amount of documents with a custom operation for a while?

Don't hesitate to see https://doc.nuxeo.com/nxdoc/nuxeo-bulk-document-importer/ in this case.

Thanks!

10/18/2017

The session timeout is set to 240 min. and it is not an issue. I am using a birt reporting tool to create a pdf report and start a workflow on it. The report generation process takes 35-40min. and it works when it is done by hand, but from the chain it generates the error.
10/19/2017

Ok. Without information, cannot help :) Which errors?
10/20/2017

I updated question by including extracted logs.
10/24/2017