Upgrading from v2.7 to V3.8; licence error
-
Hi,
I recovered an old MangoES from one of my previous projects and decided to upgrade it to take advantage of the latest UI upgrades.
During the upgrade process, the Mango warned me about a few modules which were not supported. I assumed that these modules could simply be removed or would simply be removed during the upgrade process.
Upon rebooting, The GUI did not work. After some work, i was able to restore SSH access and the linux side is fully operational. However, Mango is not starting.
I used the forums to work out how to remove the modules that came up with warnings. However this did not solve my problem. When i start the Mango, i am getting a licence error. it seems the core version is different. please help.
i am not worried about the data or other configuration; i have already got a backup of that.
i will post the output from starting in the next post.
Kind regards,
Mansoor
-
Please ignore the timestamps they are wrong.
INFO 2013-01-01T16:51:29,231 (com.serotonin.m2m2.Main.main:121) - Starting Mango 3.7.7 with Schema Version: 29
INFO 2013-01-01T16:51:30,635 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlds', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,687 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'TCPIP', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,697 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'asciiFile', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,708 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlConsole', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,718 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'galil', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,728 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGlobalScripts', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,737 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mbus', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,751 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4jDS', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,761 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'persistent', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,775 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'vmstat', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,785 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoApi', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,796 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pachube', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,806 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pointLinks', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,816 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4JReset', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,819 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstTheme', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,825 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'jmxds', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,835 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'twilio', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,849 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoESConfiguration', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,860 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'meta', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,872 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'excelReports', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,889 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'snmp', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,900 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'http', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,916 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'controlcore', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,926 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'jsonFileImport', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,935 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'graphicalViews', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,964 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scripting', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,975 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'watchlists', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:30,993 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataPointDetailsView', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,003 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'brewersdashboard', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,042 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'modbus', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,053 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'onewire', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,063 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'virtualDS', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,072 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dashboardDesigner', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,077 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/mango/web/modules/dashboardDesigner/web/dox/manifest.xml
INFO 2013-01-01T16:51:31,079 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataFile', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,097 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoUI', v3.7.7 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,102 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/mango/web/modules/mangoUI/web/dox/manifest.xml
INFO 2013-01-01T16:51:31,131 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pakbus', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,142 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'ssh', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,150 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'envcands', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,158 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dnp3', v3.7.3 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,168 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataImport', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,175 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pop3', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,183 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'abeip', v3.7.0 by Deltamation Software
INFO 2013-01-01T16:51:31,192 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'templateConfig', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,200 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'opcda', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,203 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'BACnet', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,213 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pid', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,221 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'zwave', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,242 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'egauge', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,251 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'openv4j', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,253 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scheduledEvents', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,262 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'abpccc', v3.7.0 by Deltamation Software
INFO 2013-01-01T16:51:31,271 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'loggingConsole', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,279 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGraphics', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,293 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoNoSqlDatabase', v3.7.1 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,302 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'reports', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,312 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'maintenanceEvents', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,320 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'serial', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:31,328 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'internal', v3.7.0 by Infinite Automation Systems Inc.
INFO 2013-01-01T16:51:41,505 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license...
INFO 2013-01-01T16:51:41,534 (com.serotonin.m2m2.Lifecycle.loadLic:631) - License file core version does not match instance, defaulting to free mode
WARN 2013-01-01T16:51:41,760 (com.serotonin.m2m2.TimedLicenseRegistrar.checkLicenses:64) - Brewers Dashboard is unlicensed, system will shutdown at 12:51:41 2/01/2013.
INFO 2013-01-01T16:51:42,083 (com.serotonin.m2m2.db.H2Proxy.initializeImpl:64) - Initializing H2 connection manager
INFO 2013-01-01T16:51:44,389 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:38) - Starting instance with core version 3.7.7, schema v29
INFO 2013-01-01T16:51:44,389 (com.infiniteautomation.nosql.MangoNoSqlProxy.initialize:77) - Starting MangoNoSql Database
INFO 2013-01-01T16:51:44,480 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:144) - Database at /opt/mango/databases/mangoTSDB started
INFO 2013-01-01T16:51:44,527 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:173) - Empty dir delete for database at /opt/mango/databases/mangoTSDB took 11ms
INFO 2013-01-01T16:51:44,541 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:144) - Database at /opt/mango/databases/mangoTSDBAux started
INFO 2013-01-01T16:51:44,567 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:173) - Empty dir delete for database at /opt/mango/databases/mangoTSDBAux took 0ms
Exception in thread "high-pool-2-thread-2" java.lang.NullPointerException
at com.serotonin.m2m2.CoreLicenseDefinition$2.run(CoreLicenseDefinition.java:161)
at com.serotonin.timer.sync.Synchronizer$TaskWrapper.run(Synchronizer.java:150)
at com.serotonin.timer.Task.runTask(Task.java:179)
at com.serotonin.timer.TaskWrapper.run(TaskWrapper.java:23)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
ERROR 2013-01-01T16:51:50,314 (com.serotonin.m2m2.Main.main:162) - Error during initialization
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mangoJavaScriptService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.spring.service.MangoJavaScriptService] from ClassLoader [sun.misc.Launcher$AppClassLoader@77463f]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:265) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1269) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1184) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$44/26306568.getObject(Unknown Source) ~[?:?]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:843) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at com.serotonin.m2m2.Lifecycle.springRuntimeContextInitialize(Lifecycle.java:385) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:288) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.infiniteautomation.mango.spring.service.MangoJavaScriptService] from ClassLoader [sun.misc.Launcher$AppClassLoader@77463f]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:507) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:404) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:389) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:248) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
... 15 more
Caused by: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ClassFilter
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_33]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2693) ~[?:1.8.0_33]
at java.lang.Class.getDeclaredMethods(Class.java:1967) ~[?:1.8.0_33]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:489) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:404) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:389) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:248) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
... 15 more
Caused by: java.lang.ClassNotFoundException: jdk.nashorn.api.scripting.ClassFilter
at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[?:1.8.0_33]
at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.8.0_33]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_33]
at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[?:1.8.0_33]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_33]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[?:1.8.0_33]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_33]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_33]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2693) ~[?:1.8.0_33]
at java.lang.Class.getDeclaredMethods(Class.java:1967) ~[?:1.8.0_33]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:489) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:404) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:389) ~[spring-core-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:248) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
... 15 more
INFO 2013-01-01T16:51:50,314 (com.serotonin.m2m2.Lifecycle.terminate:400) - Mango Lifecycle terminating...
INFO 2013-01-01T16:51:50,374 (com.serotonin.m2m2.db.H2Proxy.terminateImpl:406) - Terminating database.
INFO 2013-01-01T16:51:50,476 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:116) - Terminating NoSQL Batch Write Manager.
INFO 2013-01-01T16:51:50,492 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:124) - Closing NoSQL Database: Point Values
INFO 2013-01-01T16:51:50,506 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:132) - Closing NoSQL Database: Point Data
INFO 2013-01-01T16:51:50,530 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated.
ma-start: no restart flag found, not restarting MA
ma-start: MA done
^C -
Version 2 and version 3 are two completely different versions of mango. You will have to pay for a license upgrade or a new license depending on the ts&cs
Fox