• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Publisher problem when connection falls for 1 minute

    User help
    1
    2
    105
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      etantonio last edited by etantonio

      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
      3d11c989-843c-4725-9ee6-2215928bf044-immagine.png

      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.

      cab389df-02ac-4025-a75b-a357fa1c2295-immagine.png

      e9772426-56fe-478d-8ed7-723959bee327-immagine.png
      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

      1 Reply Last reply Reply Quote 0
      • E
        etantonio last edited by etantonio

        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:

        d66fb17b-6d2c-4225-bbc2-cc2eb07b356f-immagine.png

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post