Mango stuck after starting upgrade to 2.8.8
-
Hello All,
I need a bit of help please.I started the upgrade of several modules on our installation. The main upgrade was from core 2.8.4 to 2.8.8. There were 11 other modules in the upgrade list.
The upgrade ran and then restarted the mango web page. The web page is now stuck at "10% - Pre-initializing Modules"
Here is the list of statements it is displaying:
INFO 2017-07-06 19:20:27,330 (com.serotonin.m2m2.Lifecycle.initialize:216) - Initializing Spring Object Mapper
INFO 2017-07-06 19:20:25,903 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'twilio', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,890 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'asciiFile', v1.3.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,855 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'mangoNoSqlDatabase', v1.3.7 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,848 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'pop3', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,839 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'scheduledEvents', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,826 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'sqlConsole', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,822 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'openv4j', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,811 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'pid', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,346 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'excelReports', v1.1.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,331 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'graphicalViews', v1.7.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,310 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'templateConfig', v1.1.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,298 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'BACnet', v2.3.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,285 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'pointLinks', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,272 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dataPointDetailsView', v1.1.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,247 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dnp3', v1.7.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,211 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'serial', v1.3.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,204 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'log4jDS', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,172 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'jspViews', v2.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,159 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'scripting', v1.2.1 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,149 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'maintenanceEvents', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,134 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'mangoApi', v1.2.1 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,117 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dataFile', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,097 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'ssh', v1.2.1 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,084 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'persistent', v1.7.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,077 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'sstTheme', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,068 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'virtualDS', v1.6.1 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,053 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'egauge', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,044 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'snmp', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,034 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'TCPIP', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:25,017 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'mbus', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,999 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'galil', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,988 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'loggingConsole', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,979 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'onewire', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,961 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'jsonFileImport', v1.2.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,953 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'jmxds', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,927 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'internal', v1.6.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,879 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'watchlists', v1.8.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,239 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dglux', v1.4.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,231 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'vmstat', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,224 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'pachube', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:24,205 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'sqlds', v1.7.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,608 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dashboards', v3.3.1 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,594 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'opcda', v1.7.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,583 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'controlcore', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,568 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'http', v1.6.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,538 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'modbus', v1.8.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,512 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'reports', v2.3.2 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,496 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'sstGlobalScripts', v1.6.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,491 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'log4JReset', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,425 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'sstGraphics', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,415 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'meta', v2.3.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:23,332 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'dataImport', v1.5.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:20:21,454 (com.serotonin.m2m2.Main.main:82) - Starting Mango 2.8.8 with Schema Version: 13
Please wait, Mango is starting up...This has persisted even after trying to restart mango from the linux command line as well as after a server reboot.
Any advice would be greatly appreciated.
Brian
-
Hi Brian,
Are you starting it with
./ma.sh start
from the bin directory? That will be sure that we've got stderr coming back to the console with stdout.You can try moving Mango/databases to Mango/databases-bck and then starting Mango on a fresh database. You can then do a restore of the H2 database, test if restart works, then bring back your Mango/databases/mangoTSDB directory for your data, if you're using NoSQL.
-
Hello Phil,
I will give that a try. One other thing I was just looking at, and wanted your advice.My env.properties in the override folder is a bit old. The default env.properties has quite a few more lines in it that are not in my file. Should I transfer my required settings into the newer env.properties file and save it to the overrides folder?
Thank for your help so far.
Brian
-
Here are the last few lines from the command line after running the ma.sh start command:
INFO 2017-07-06 19:49:39,868 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'scheduledEvents', v1.6.0 by Infinite A utomation Systems Inc.
INFO 2017-07-06 19:49:39,870 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'pop3', v1.6.0 by Infinite Automation S ystems Inc.
INFO 2017-07-06 19:49:39,872 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'mangoNoSqlDatabase', v1.3.7 by Infinit e Automation Systems Inc.
INFO 2017-07-06 19:49:39,875 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'asciiFile', v1.3.0 by Infinite Automat ion Systems Inc.
INFO 2017-07-06 19:49:39,877 (com.serotonin.m2m2.Main.loadModules:416) - Loading module 'twilio', v1.2.0 by Infinite Automation Systems Inc.
INFO 2017-07-06 19:49:40,359 (com.serotonin.m2m2.Lifecycle.initialize:216) - Initializing Spring Object Mapper
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/infiniteautomation/tsdb/IasTsdbConfig : Unsupported major .minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.infiniteautomation.nosql.MangoNoSqlMenuItemDefinition.preInitialize(MangoNoSqlMenuItemDefinition.java:50)
at com.serotonin.m2m2.module.Module.preInitialize(Module.java:104)
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:228)
at com.serotonin.m2m2.Main.main(Main.java:115)
[root@M-2-M bin]#I will move the databases and try again.
-
Hi Brian,
Are you updating from Mango 2.7? That error means that you're using Java 7 probably (confirm with
java -version
at the terminal). You will need to update Java as 2.8 and 3.0 are written for Java 8.The properties in the env.properties file are added as we come up with new ones. The code has the opportunity to set defaults in the retrieval of the property as well, which gives us the option to set defaults for new users (who would copy new env.properties files to their new overrides) and set different defaults for existing users (as the property doesn't exist in their env.properties file). You can copy them across. I would say 95% of the time the default in the code and the default in the file are the same, so it doesn't really matter if you copy them across or not.
-
Thank you for your reply Phil,
I was wondering if it was java related. No I did not update my java version before the upgrade. i may have missed that requirement in the notes. I will put the databases back as they made no difference to the start up.I will update my java as my current version is 1.7.0_80
I will let you know if that works.
Cheers
-
I can't seem to get the links sorted so that java point to the new version... :(
-
Mango will preferentially use JAVA_HOME. You can define/export that in /etc/environment or in your service file.
Otherwise yeah, you're maybe playing with the update-alternatives command probably. It's a run around to get /usr/local/java --> /etc/alternatives/java --> /opt/java/jdk1.8.0_121/bin/java (and javac and javaws)
I think the commands you're looking for are the update-alternatives commands in this article, probably: https://help.infiniteautomation.com/linux-installation/
-
This post is deleted! -
This post is deleted! -
Hello Phil,
Thank you for your help. It was getting late last night and I made some silly tired brain mistakes. I started over this morning with your instructions and everything seems to be working now. No restore of the databases needed.My other worry was that we have another piece of software on the server and I thought it may require an older 32 bit version of Java. But it seems to be working with the latest 64 bit java as well.
Cheers
Brian