• 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

    Upgrade from v4.0.0 beta.12 to beta.14 failed to restart

    User help
    3
    7
    110
    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.
    • ricardo
      ricardo last edited by CraigWeb

      I have an instance on v4.0.0 beta.12. I tried to upgrade to beta.14 via the mango's module UI by selecting all the modules and clicked "Upgrade/Install 44 Modules". The mango failed to restart and I have copied and pasted the ma.log for reference below.

      ERROR 2021-05-22T16:39:52,401 (com.serotonin.m2m2.Lifecycle.initialize:371) - Error during initialization
      org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scriptService' defined in URL [jar:file:/opt/mango/lib/mango-4.0.0-beta.12.jar!/com/infiniteautomation/mango/spring/script/ScriptService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyScriptingEngineDefinition#0': Unsatisfied dependency expressed through field 'permission'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.infiniteautomation.mango.groovy.GroovyPermission#0': Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.groovy.GroovyPermission] from ClassLoader [java.net.URLClassLoader@42530531]
      ...
      INFO  2021-05-22T16:39:52,408 (com.serotonin.m2m2.Lifecycle.terminate:402) - Mango Lifecycle terminating...
      INFO  2021-05-22T16:39:52,509 (com.infiniteautomation.nosql.MangoNoSqlProxy.postRuntimeManagerTerminate:114) - Terminating NoSQL Batch Write Manager.
      INFO  2021-05-22T16:39:52,555 (com.serotonin.m2m2.db.H2Proxy.terminateImpl:437) - Terminating database.
      INFO  2021-05-22T16:39:53,707 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:127) - Closing NoSQL Database: Point Values
      INFO  2021-05-22T16:39:53,833 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:135) - Closing NoSQL Database: Point Data
      INFO  2021-05-22T16:39:53,847 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated: ERROR
      
      cwangv 1 Reply Last reply Reply Quote 0
      • cwangv
        cwangv @ricardo last edited by

        @ricardo
        you have to install a fresh instance.
        That has been my experience for the V4 Betas. The upgrade process is not reliable enough.

        1 Reply Last reply Reply Quote 0
        • ricardo
          ricardo last edited by

          Do you have any idea if we can just copy the h2 database directory from beta.12 to a new beta.14 instance?

          1 Reply Last reply Reply Quote 0
          • CraigWeb
            CraigWeb last edited by

            Hi Ricardo

            Can you paste the whole log file here. I wonder if the core did not get upgraded? There is also an issue where if you have the twilio module installed mango will not start.

            1 Reply Last reply Reply Quote 0
            • ricardo
              ricardo last edited by

              Hi Craig,

              From my module page, I searched for Twilio and nothing came up. How can I check if I have twilio module installed?

              Here is the link to the complete log file: https://drive.google.com/file/d/1eYDUgVYfDDy2vN4lTuvdQMOxsv1iRi_6/view?usp=sharing

              BR,
              Ricardo

              1 Reply Last reply Reply Quote 0
              • CraigWeb
                CraigWeb last edited by

                Hi Ricardo

                It looks like your core did not update, I would expect this to happen if you did not change the production release to development. To fix the issue you will need to down load beta 12 from here: https://maven.mangoautomation.net/repository/ias-release/com/infiniteautomation/mango/mango-bundle/4.0.0-beta.12/mango-bundle-4.0.0-beta.12.zip
                Delete all the modules in your faulty installation and replace them with all the module zip files from the beta 12 down load.

                if you want to then upgrade to beta 14 you will need to change the production release at administration-->system settings--> system information to development. Then go to the modules page and check for upgrades. Make sure that you are upgrading the core aswell

                1 Reply Last reply Reply Quote 0
                • ricardo
                  ricardo last edited by

                  Hi Craig,

                  Thank you for your reply. I copied the web/ directory from the beta.12 download over my existing beta.12 instance. I set the system information to development and performed the upgrade via the modules pages. I am happy to report back that the system is now on beta.14.

                  BR,
                  Ricardo

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