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.
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.