• Recent
    • Tags
    • Popular
    • Register
    • Login

    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 Mango 5 Documentation Website

    localhost refused to connect after update

    Scheduled Pinned Locked Moved User help
    7 Posts 2 Posters 1.6k Views 2 Watching
    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.
    • J Offline
      JAST
      last edited by

      Hello,

      I was working on updating Mango 2.7 to a later version. After going to the modules section and processing the update I am no longer able to connect to the localhost. I've attempted to run the restart through the command line and I see that the bin file's haven't changed from version 2.7. i'm not too sure how to proceed. My main concern is having lost the configuration that we already had.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JAST
        last edited by

        What does Process ID: 5356 mean?
        Where can I find/load main class com.serotonin.m2m2.Main?
        0_1529616801663_mango update.PNG

        1 Reply Last reply Reply Quote 0
        • J Offline
          JAST
          last edited by

          I did a power cycle of the computer and ran ma.sh restart and start.

          1 Reply Last reply Reply Quote 0
          • phildunlapP Offline
            phildunlap
            last edited by

            Hi gquiroz,

            Your configuration is probably not lost. It should be in the backups in the Mango/backup directory at minimum.

            It is odd that it would say it cannot load the main class. That would imply to me that there may not be a ma-priv.jar in your Mango/lib/ directory. I would redownload the appropriate core that you're upgrading to from https://store.infiniteautomation.com/core and place that file in your Mango/ directory with the name m2m2-core-x.y.z.zip where x.y.z is the version number, then attempt to start Mango from the Mango/bin directory with ./ma.sh start and share any errors that occur.

            1 Reply Last reply Reply Quote 0
            • J Offline
              JAST
              last edited by

              Hi Phil,

              I see that there is a ma-priv file in the mango lib directory.
              0_1529677990824_ma-priv-jar.PNG
              I went ahead and did redownloaded the appropriate core that we're upgrading to and placed it in the Mango directory. Here are the errors i got:

              0_1529678093958_Error after moving zip.PNG
              and

              0_1529678112937_ERROR.PNG

              I've stopped mango prior to doing the the updates and restarting the program but I see that that the java run time exception in the address is already in use and that the Mango lifecycle terminates.

              1 Reply Last reply Reply Quote 0
              • phildunlapP Offline
                phildunlap
                last edited by phildunlap

                You definitely didn't get both of those exceptions without doing something else in between them. The fact that you get a bind exception makes me think Mango may be running. Check the web.port in the Mango/overrides/properties/env.properties or Mango/classes/env.properties and try connecting to that port in a browser. If Mango is not running and that port is owned by something else, change Mango's port.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  JAST
                  last edited by

                  Hi Phil,

                  The two errors were from two different attempts. The first was placing the new zip file in the Mango directory and the second was tail -f for the log when ruining a stop/start.
                  As you mentioned, I look into the ports and it seems like this may be the issue since mysqld.exe is listening on port 8080 and mango is also on 8080. I will change the ports as recommended. Thank you.

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