The OPC-UA side of this is often server related. The extractor has two modes of handling reconnects to the server, the default is to use OPC-UA reconnect. In my experience some servers are poorly compliant with the OPC-UA standard and fail to handle reconnects of this type. In this case, you may try setting `source.force-restart` in the extractor config file, which uses a less efficient form of reconnection.
On the CDF side I don’t really agree with your conclusions, after restart it seems that the extractor is able to push to CDF just fine. There is later an unrelated failure. I believe if you set the extractor logging to debug, you would see that it pushed data fine after reconnecting at 04:44. Note that it did produce 18540 timeseries successfully in CDF after you plugged it back in.
@Einar Omang Thanks for the suggestions. I was able to get the OPC-UA server reconnect to work by setting source.restart-on-reconnect in the extractor config file.
About the CDF issue, it does look like the extractor is able to push data to CDF for a few seconds initially after network reconnect as you said. But the extractor does go to failure mode after a few seconds and data upload to CDF stops at this point. I was able to reproduce this failure multiple times upon repeating the same test. So it seems to me that the failure may be connected to some condition brought about by the network interruption.
If you have any more suggestions about Cognite settings in the extractor config file that might help automatically reset the CDF connection parameters on reconnect, or any other ideas, please do let me know.
Also attaching debug logs from the most recent CDF re-connect test for your reference.
Hi Team,
Can someone help with this query?
Thanks,
Aditya
After some more testing, the observed issues with connection to CDF seem to be due to using two different network connections (one to OPC-UA server and another to the internet) on the system running the extractor. Looks like the extractor goes into error state only when the two connections are not unplugged and plugged back in at the same time during testing.
Need to run a few more tests on my end to confirm this. But the extractor seems to be able to reconnect to CDF when we unplug and re-plug both connections at the same time.
Hi @Anand Sankar Aananthakrishnan, just checking in if you need any further help?
The extractor seems to be doing okay under the right conditions. So as of now, this issue is resolved.