Upgrade from v4.0.0 beta.12 to beta.14 failed to restart
-
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
-
@ricardo
you have to install a fresh instance.
That has been my experience for the V4 Betas. The upgrade process is not reliable enough. -
Do you have any idea if we can just copy the h2 database directory from beta.12 to a new beta.14 instance?
-
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.
-
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 -
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
-
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