The problem persists. We thought that excessive logging might be an issue. But since the problem occurs sporadically, it seemed as if it had been resolved.
The problem is as follows:
We introduced a new template/datamapper. These are currently being tested, and we noticed that, for example, after a weekend, when processing the very first input file, the presconnect service would crash. If you offer the same document again after restarting the service, it is handled perfectly without any problems. Because it (sometimes) only happens after the template has not been accessed for some time (weekend?) and then only fails on the very first processing of that type of document, it must have something to do with loading this datamapper and template. We also see that the datamapper is successfully loaded but that the problem occurs when processing the template. However, this does not always happen. Due to this uncertainty, we still cannot move to production. Meanwhile, we have set the log to maximum, but even there, we do not gain much insight.
In the MergeEngine log, for example, it states:
[2024-04-03 08:21:12,281] INFO [IPC Input] com.objectiflune.contentcreation.mergeengine.product.internal.MergeEngineCommandProcessor.a(MergeEngineCommandProcessor.java) PROGRESS: 1 (Cc_118)
[2024-04-03 08:21:14,569] INFO [Thread-6] com.objectiflune.core.runtime.OLPlatform.run(d.java) Parent connection lost, shutting down (Core_1270)
and when it goes well:
[2024-04-03 09:35:23,662] INFO [IPC Input] com.objectiflune.contentcreation.mergeengine.product.internal.MergeEngineCommandProcessor.a(MergeEngineCommandProcessor.java) PROGRESS: 1 (Cc_118)
[2024-04-03 09:35:28,133] INFO [main] com.objectiflune.contentcreation.mergeengine.product.internal.MergeEngineCommandProcessor.a(MergeEngineCommandProcessor.java) PROGRESS: 50 (Cc_118)
The PPw log then shows:
WARN: 08:21:09.198 [0038] Cached version not available, attempting to upload file.
DEBUG: 08:21:09.216 [0038] Template C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\OLConnect\Template\XPOL1.ol-template uploaded to the server
DEBUG: 08:21:09.216 [0038] Starting content creation operation…
DEBUG: 08:21:09.263 [0038] [2024-04-03 08:21:09.263] Print content creation> Retrieving results
ERROR: 08:21:14.569 [0038] W3001: Error while executing plugin: Socket Error # 10054
As far as we can see, without further indication, the connection is lost, and the service is stopped. Of course, we have many other types of forms, and they all work as they should. The difference with this form is that the template contains JavaScript that refers, among other things, to JSON files on disk. It is also noticeable that after a period of not using this template, it only fails on the very first attempt. We know that there is a clean script running and suspect that this template needs to be reloaded. It seems as if a timeout occurs, but without proper logging, it cannot be proven. When the service is then restarted, it works again, and the same document is processed without errors. It seems then as if everything is correctly loaded.
Has anyone experienced this before or can provide a hint on how we can solve this problem?