Publisher problem when connection falls for 1 minute
-
Hi, I've a problem with a publisher on a Mango 2.8.8 installed on Raspberry.
My problem is that if the openvpn connection falls (it happens every 4 hours when the network operator needs to change IP) the persistent datasource still try to send data but these are not delivered to the
mango persistent TCP datasource
I've tried changing almost every timeout on the configuration page for the publisher but no one changes the behaviour, after 17 minutes, maybe due to a timeout, the publisher returns to work correctly.
If during these 17 minutes I choose to restart the publisher it starts to work immediately.Any idea about how to solve the problem?
Thanks
Antonio -
using this in a scripting datasource I can restart the publisher
function enablePublisher(xid, enabled) { var publisher = com.serotonin.m2m2.db.dao.PublisherDao.instance.getPublisher(xid); publisher.enabled = enabled; com.serotonin.m2m2.Common.runtimeManager.savePublisher(publisher); } if (startPublisherRestartScript.value === 1){ startPublisherRestartScript.set(0); enablePublisher("Pub_E2AX_TRK-3.1", true); }
my problem is that I don't know how to understand that the publisher is sending data to nowhere, the alarm on Connection and Socket are not working as expected so, for example I could check this port number:
it changes when the modem change IP, how I can have the port number in the same scripting datasource?
I would like to avoid to restart the publisher every minute.
Thanks
Antonio