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

Upgrade download error from core 3.3.4 to 3.4.1 - Connection reset


  • After initiating an upgrade from core 3.3.4 to 3.4.1 using the 3.x /ui, the following upgrade download error was seen in ma.log:

    INFO  2018-05-23T15:58:46,044 (com.serotonin.m2m2.web.dwr.ModulesDwr$UpgradeDownloader.run:424) - UpgradeDownloader: DOWNLOAD 
    INFO  2018-05-23T15:58:46,044 (com.serotonin.m2m2.rt.maint.work.DatabaseBackupWorkItem.execute:109) - Starting database backup WorkItem. 
    
    INFO  2018-05-23T16:00:31,040 (com.serotonin.m2m2.rt.maint.work.BackupWorkItem.execute:181) - Finished backup WorkItem. 
    INFO  2018-05-23T16:00:44,999 (com.serotonin.m2m2.rt.maint.work.DatabaseBackupWorkItem.backupMysqlWithOutDatabase:442) - Backup created successfully formangoA in localhost:3306 
    WARN  2018-05-23T16:03:11,831 (com.serotonin.m2m2.web.dwr.ModulesDwr$UpgradeDownloader.run:481) - Upgrade download error 
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:1.8.0_131]
            at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_131]
            at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.6.jar:4.4.6]
            at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:198) ~[httpcore-4.4.6.jar:4.4.6]
            at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176) ~[httpcore-4.4.6.jar:4.4.6]
            at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135) ~[httpclient-4.5.3.jar:4.5.3]
            at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:148) ~[httpclient-4.5.3.jar:4.5.3]
            at com.serotonin.io.StreamUtils.transfer(StreamUtils.java:34) ~[mango-3.3.4.jar:?]
            at com.serotonin.io.StreamUtils.transfer(StreamUtils.java:27) ~[mango-3.3.4.jar:?]
            at com.serotonin.web.http.HttpUtils4.execute(HttpUtils4.java:105) ~[mango-3.3.4.jar:?]
            at com.serotonin.m2m2.web.dwr.ModulesDwr$UpgradeDownloader.run(ModulesDwr.java:477) [mango-3.3.4.jar:?]
            at com.serotonin.timer.Task.runTask(Task.java:179) [mango-3.3.4.jar:?]
            at com.serotonin.timer.TaskWrapper.run(TaskWrapper.java:23) [mango-3.3.4.jar:?]
            at com.serotonin.timer.OrderedThreadPoolExecutor$OrderedTaskCollection.run(OrderedThreadPoolExecutor.java:317) [mango-3.3.4.jar:?]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    ERROR 2018-05-23T16:03:41,238 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
    ERROR 2018-05-23T16:11:31,238 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
    

    Subsequent attempts resulted in Client error and Possibly unhandled rejection followed by a huge JSON dump:

    WARN  2018-05-23T16:37:39,159 (com.infiniteautomation.mango.rest.v2.ServerRestV2Controller.postClientError:215) - Client error
    [user=admin, cause=, location=https://mymangoserver/ui/administration/modules/upgrade, userAgent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0, language=en-US, date=2018-05-23T16:37:38.669-04:00, timezone=America/New_York]
    Possibly unhandled rejection: {"data":"","status":304,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","data":{"newInstalls":[],"upgrades":[{"name":"mangoUI","version":"3.3.6","normalVersion":"3.3.6","licenseType":"unrestricted","description":"Provides an AngularJS user interface, including the ability to create custom pages","longDescription":"Angular JS User Interface with responsive layout.  Explore the data collected by Mango using Watchlists, Dashboards and configurable charts.  ","vendor":"Infinite Automation Systems Inc.","vendorUrl":"http://www.InfiniteAutomation.com","dependencies":"mangoApi:3.4","markedForDeletion":false,"unloaded":false,"signed":true,"newVersion":"3.4.2","releaseNotes":"<strong>Version 3.4.2</strong><ul ><li>\n Add simplify settings to bulk data point editor</li><li>\n Allow deleting data points using bulk editor</li><li>\n Remember selected c
    

    blah blah blah remaining JSON not pasted here. The downloads directory listed only two files:

    /opt/mango/downloads$ 
    -rw-r--r-- 1      33804 May 23 16:32 m2m2-advancedComponents-3.4.0.zip
    -rw-r--r-- 1  121152104 May 23 16:32 m2m2-core-3.4.1.zip
    

    I moved both downloaded files to/tmp so that an inadvertent restart would not cause a partial upgrade with incompatible modules.

    The ping time is usually between 600ms and 800ms. Should I try the upgrade from the V2 interface, or does that no longer work?

    Thanks


  • Hi Pedro,

    I would consider downloading the bundle from https://store.infiniteautomation.com/core and placing it in your Mango/ directory with the name m2m2-core-3.x.x.zip (where 3.x.x is the version number) and restarting Mango, then checking for updates again. It should be a much smaller download, if any. But, I can also say that you would probably prefer to wait until 3.4.2 is released, which should be imminent.

    Edit: 3.4.2 has been released


  • Hi Phillip,

    Thanks, I am downloading 3.4.2. I will install it next week, as I don't dare do upgrades on a Friday.


  • Great! In future you'll be able to download a JSON file from the modules page, and then submit that file after you've logged into the store to download a bundle of modules for your instance. The ability to download that JSON was added in 3.4


  • I tried upgrading to core 3.4.2 by placing enterprise-m2m2-core-3.4.2.zip in /opt/mango. According to /ui/administration/modules/upgrade my current version is still 3.3.4.

    I subsequently tried an upgrade to 3.4.4 from the module page. This attempt seemingly placed the following files into /opt/mango/downloads:

    m2m2-core-3.4.4.zip
    m2m2-advancedComponents-3.4.0.zip
    

    However, upgrading or restarting from the modules page still did not work. I then restarted via $sudo service mango restart, which also did not result in an upgrade.

    Then I downloaded enterprise-m2m2-core-3.4.4.zip from the store, and placed it in /opt/mango. I tried a $sudo service mango restart, a stop, a start, and yet no upgrade. Currently, I'm still running 3.3.4 according to the modules page.

    Should I move enterprise-m2m2-core-3.4.4.zip to /opt/mango/download? If I do that, should I delete the other files from that folder? Is there a log file besides ma.log that would have more detail regarding the upgrade attempt?

    The first line in /opt/mango/ma.log is:

    INFO  2018-07-10T17:10:58,550 (com.serotonin.m2m2.Main.main:90) - Starting Mango 3.3.4 with Schema Version: 23  
    

    The server is running Ubuntu 16.04.4 LTS.
    Thank you for your help.


  • If I simply unzip ' enterprise-m2m2-core-3.4.4.zip' into /opt/mango rather than leaving that task to the Mango upgrade routine, should the install work, or will it clobber my existing files?


  • If you manually unzip the enterprise-m2m2-core.x.x.x.zip file you first should delete your lib folder. There are specific instructions here on manual upgrade https://help.infiniteautomation.com/how-to-upgrade-mango/


  • @joelhaggar Thanks for that the link to the manual upgrade. The upgrade worked, but there are still problems. The upgrade from 3.3.4 to 3.4.4 broke numerous metadata scripts (a problem someone else posted in https://forum.infiniteautomation.com/topic/3627/not-a-function). Also, the internal upgrade is still not working.

    I just tried to upgrade the two modules listed on /ui/administration/modules/upgrade:

    mangoNoSqlDatabase 	Time Series Data Store 	3.4.0 	3.4.1 	
    MangoUI 	Provides an AngularJS user interface,  	3.4.6 	3.4.7
    

    However, the automated download failed once again:

    WARN 2018-07-11T20:40:26,229 (com.serotonin.m2m2.web.dwr.ModulesDwr$UpgradeDownloader.run:503) - Upgrade download error java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:1.8.0_131] at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_131] at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.9.jar:4.4.9] at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) ~[httpcore-4.4.9.jar:4.4.9] at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:206) ~[httpcore-4.4.9.jar:4.4.9] at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176) ~[httpcore-4.4.9.jar:4.4.9] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:135) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:148) ~[httpclient-4.5.5.jar:4.5.5] at com.serotonin.io.StreamUtils.transfer(StreamUtils.java:34) ~[mango-3.4.4.jar:?] at com.serotonin.io.StreamUtils.transfer(StreamUtils.java:27) ~[mango-3.4.4.jar:?] at com.serotonin.web.http.HttpUtils4.execute(HttpUtils4.java:105) ~[mango-3.4.4.jar:?] at com.serotonin.m2m2.web.dwr.ModulesDwr$UpgradeDownloader.run(ModulesDwr.java:499) [mango-3.4.4.jar:?] at com.serotonin.timer.Task.runTask(Task.java:179) [mango-3.4.4.jar:?] at com.serotonin.timer.TaskWrapper.run(TaskWrapper.java:23) [mango-3.4.4.jar:?] at com.serotonin.timer.OrderedThreadPoolExecutor$OrderedTaskCollection.run(OrderedThreadPoolExecutor.java:336) [mango-3.4.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

    The ping time from my Mango server to infiniteautomation.com is close to 700ms. Perhaps there is a timeout in the Mango download function that is too strict to meet that loop time?