<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Publisher problem when connection falls for 1 minute]]></title><description><![CDATA[<p dir="auto">Hi, I've a problem with a publisher on a Mango 2.8.8 installed on Raspberry.<br />
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<br />
mango persistent TCP datasource<br />
<img src="https://camo.nodebb.org/7cc73af3183722d837352d2fa2601bb2dee305c8?url=https%3A%2F%2Fi.imgur.com%2FuHoWz6M.png" alt="3d11c989-843c-4725-9ee6-2215928bf044-immagine.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">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.</p>
<p dir="auto"><img src="https://camo.nodebb.org/3c9be4709b7c5741db2e1a1987d31e9d0aa75bf9?url=https%3A%2F%2Fi.imgur.com%2F6BaCfrF.png" alt="cab389df-02ac-4025-a75b-a357fa1c2295-immagine.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="https://camo.nodebb.org/3aec7704ecd62adbde6f58d314bafec12aade659?url=https%3A%2F%2Fi.imgur.com%2FVWV9ZME.png" alt="e9772426-56fe-478d-8ed7-723959bee327-immagine.png" class=" img-fluid img-markdown" /><br />
If during these 17 minutes I choose to restart the publisher it starts to work immediately.</p>
<p dir="auto">Any idea about how to solve the problem?<br />
Thanks<br />
Antonio</p>
]]></description><link>https://forum.mango-os.com/topic/5172/publisher-problem-when-connection-falls-for-1-minute</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 03:34:22 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/5172.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 May 2021 13:21:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Publisher problem when connection falls for 1 minute on Wed, 05 May 2021 15:17:24 GMT]]></title><description><![CDATA[<p dir="auto">using this in a scripting datasource I can restart the publisher</p>
<pre><code>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);
}
</code></pre>
<p dir="auto">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:</p>
<p dir="auto"><img src="https://camo.nodebb.org/b66eac713ab88d8a4a6a9cdc1ff56bb544352a13?url=https%3A%2F%2Fi.imgur.com%2FOFlm84K.png" alt="d66fb17b-6d2c-4225-bbc2-cc2eb07b356f-immagine.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">it changes when the modem change IP, how I can have the port number in the same scripting datasource?</p>
<p dir="auto">I would like to avoid to restart the publisher every minute.<br />
Thanks<br />
Antonio</p>
]]></description><link>https://forum.mango-os.com/post/26614</link><guid isPermaLink="true">https://forum.mango-os.com/post/26614</guid><dc:creator><![CDATA[etantonio]]></dc:creator><pubDate>Wed, 05 May 2021 15:17:24 GMT</pubDate></item></channel></rss>