<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[2.7.8 Upgrade]]></title><description><![CDATA[<p dir="auto">Hello,<br />
It seems the mango update this morning is not working. It has been stuck at 40% for a while. The last line on the web page says that it was trying to write to an upgrade log.</p>
<p dir="auto">Here is a copy of the last part of the</p>
<p dir="auto">INFO  2016-03-16 12:58:46,176 (com.infiniteautomation.mangoApi.MangoApiReloadingProperties.checkForReload:146) - (mangoApiHeaders) Found updated file at /opt/mango/web/modules/mangoApi/classes/mangoApiHeaders.properties. Reloading properties<br />
INFO  2016-03-16 12:58:46,366 (com.serotonin.m2m2.Lifecycle.loadLic:464) - Checking license...<br />
INFO  2016-03-16 12:58:47,187 (com.serotonin.m2m2.db.BasePooledProxy.initializeImpl:36) - Initializing pooled connection manager<br />
WARN  2016-03-16 12:58:48,748 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:96) - Upgrading 'core' from 11 to 12<br />
INFO  2016-03-16 12:58:48,763 (com.serotonin.m2m2.db.upgrade.DBUpgrade.createUpdateLogOutputStream:152) - Writing upgrade log to /opt/mango/logs/com.serotonin.m2m2.db.upgrade.Upgrade11.log<br />
ERROR 2016-03-16 12:58:49,644 (com.serotonin.m2m2.Main.main:120) - Error during initialization<br />
com.serotonin.ShouldNeverHappenException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [CREATE TABLE jsonData (id int not null auto_increment,xid varchar(50) not null, name varchar(255) not null, readPermission varchar(255), editPermission varchar(255), data clob, primary key (id))engine=InnoDB; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'clob, primary key (id))engine=InnoDB' at line 1<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:102)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:34)<br />
at com.serotonin.m2m2.db.DatabaseProxy.initialize(DatabaseProxy.java:180)<br />
at com.serotonin.m2m2.Lifecycle.databaseInitialize(Lifecycle.java:602)<br />
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:280)<br />
at com.serotonin.m2m2.Main.main(Main.java:116)<br />
Caused by: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [CREATE TABLE jsonData (id int not null auto_increment,xid varchar(50) not null, name varchar(255) not null, readPermission varchar(255), editPermission varchar(255), data clob, primary key (id))engine=InnoDB; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'clob, primary key (id))engine=InnoDB' at line 1<br />
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)<br />
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:415)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:439)<br />
at com.serotonin.m2m2.db.BasePooledProxy.runScript(BasePooledProxy.java:73)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:129)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:143)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.runScript(DBUpgrade.java:134)<br />
at com.serotonin.m2m2.db.upgrade.Upgrade11.upgrade(Upgrade11.java:27)<br />
at com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade(DBUpgrade.java:98)<br />
... 5 more<br />
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'clob, primary key (id))engine=InnoDB' at line 1<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br />
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br />
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)<br />
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)<br />
at com.mysql.jdbc.Util.getInstance(Util.java:386)<br />
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)<br />
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)<br />
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)<br />
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)<br />
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)<br />
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2812)<br />
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2761)<br />
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:894)<br />
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:732)<br />
at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)<br />
at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)<br />
at org.springframework.jdbc.core.JdbcTemplate$1ExecuteStatementCallback.doInStatement(JdbcTemplate.java:431)<br />
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:404)<br />
... 12 more<br />
INFO  2016-03-16 12:58:49,649 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
INFO  2016-03-16 12:58:49,673 (com.serotonin.m2m2.db.BasePooledProxy.terminateImpl:110) - Stopping database</p>
<p dir="auto">I will attemp to reinstall version 2.7.6 but putting the zip in the home folder.</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/topic/2179/2-7-8-upgrade</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:32:36 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2179.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Mar 2016 13:14:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:45:23 GMT]]></title><description><![CDATA[<p dir="auto">I have sent you an email, let's conduct the rest there and I'll post anything insightful at the end if there is something to share.</p>
]]></description><link>https://forum.mango-os.com/post/11270</link><guid isPermaLink="true">https://forum.mango-os.com/post/11270</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:40:07 GMT]]></title><description><![CDATA[<p dir="auto">Hopefully we will have this finished soon. Thanks for your help.</p>
]]></description><link>https://forum.mango-os.com/post/11269</link><guid isPermaLink="true">https://forum.mango-os.com/post/11269</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:40:07 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:38:46 GMT]]></title><description><![CDATA[<p dir="auto">I will be available for many more hours, and I am happy to work directly with you to fix this. I will send you a message with some contact options.</p>
]]></description><link>https://forum.mango-os.com/post/11268</link><guid isPermaLink="true">https://forum.mango-os.com/post/11268</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:36:48 GMT]]></title><description><![CDATA[<p dir="auto">How much longer will you be available today?</p>
]]></description><link>https://forum.mango-os.com/post/11267</link><guid isPermaLink="true">https://forum.mango-os.com/post/11267</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:32:37 GMT]]></title><description><![CDATA[<p dir="auto">oops, yeah sorry, its been a long day.</p>
]]></description><link>https://forum.mango-os.com/post/11266</link><guid isPermaLink="true">https://forum.mango-os.com/post/11266</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:28:56 GMT]]></title><description><![CDATA[<p dir="auto">Use the MySQL instructions. You are on MySQL</p>
]]></description><link>https://forum.mango-os.com/post/11265</link><guid isPermaLink="true">https://forum.mango-os.com/post/11265</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 19:26:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello Phil,<br />
Due to our excrutiatingly slow broadband at times... I finally have 2.7.10 put into the mango home folder.</p>
<p dir="auto">I have started your steps to correct this:</p>
<p dir="auto">Step 1) Gain contact with the database...<br />
H2:</p>
<p dir="auto">Navigate to Mango/bin/h2-web-console.sh</p>
<ul>
<li>DONE<br />
Edit the script and add -webAllowOthers if you are not browsing from the same machine Mango runs on, and remember the port at the top (8081 by default).</li>
<li>DONE<br />
Launch the script. Navigate to http://[ip]:h2-port/ in your browser</li>
<li>DONE<br />
Fill in the credentials, and /path/to/Mango/databases/mah2 then connect</li>
<li>?? the path says it should be "mango/databases/mah2 but there is no mah2 folder or file in my databases folder</li>
</ul>
<p dir="auto">What do you want me to do from here?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/post/11264</link><guid isPermaLink="true">https://forum.mango-os.com/post/11264</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 19:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 17:02:33 GMT]]></title><description><![CDATA[<p dir="auto">Ah. I am sure you have it configured rightly. We would phrase that situation as using MySQL and the NoSQL module, since your system's configuration and even events will be in the MySQL database. Simply a misunderstanding.</p>
]]></description><link>https://forum.mango-os.com/post/11261</link><guid isPermaLink="true">https://forum.mango-os.com/post/11261</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 17:02:33 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:59:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello Phil,<br />
My env.properties in in the overrides folder and i have the following lines for the MySQL:</p>
<p dir="auto">#MySQL database settings. Your MySQL instance must already be running and configured before this can be used.<br />
db.type=mysql<br />
db.url=jdbc:mysql://localhost/Mango_M2M<br />
db.username=[valid username]<br />
db.password=[valid password]</p>
<p dir="auto">username and password removed but the ones listed are valid.</p>
<p dir="auto">Again though the MySQL tables that are in that database are the ones created and used by Mango.</p>
<p dir="auto">dataPointHierarchy, dataPoints, dataSources, eventHandlers, events, excelReportTemplates, excelReports, globalScripts, graphicalViews, mailingListInactive, mailingListMembers, mailingLists, maintenanceEvents, pointEventDetectors, pointLinks, pointValueAnnotations, pointValues, publishers, reportInstanceData, reportInstanceDataAnnotations, reportInstanceEvents, reportInstancePoints, reportInstanceUserComments, reportInstances, reports, scheduledEvents, selectedWatchList, systemSettings, templates, userComments, userEvents, users, watchListPoints, watchLists.</p>
<p dir="auto">All of the data points are being kept in the NoSQL database.</p>
<p dir="auto">#Database settings for conversion. If the db.* settings point to a new database instance, and the convert type setting<br />
#is set, Mango Automation will attempt to convert from the convert.db.* settings to the db.* settings<br />
#Note that database conversions should not be performed in the same step as an upgrade. First upgrade, then convert.<br />
convert.db.type=<br />
convert.db.url=${convert.db.url}<br />
convert.db.username=${convert.db.username}<br />
convert.db.password=${convert.db.password}</p>
<p dir="auto">#Set the base path for where the NoSQL data will be stored<br />
db.nosql.location=${ma.home}/databases/<br />
#Set the folder name of the point value store<br />
db.nosql.pointValueStoreName=mangoTSDB</p>
<p dir="auto">These are the same settings I have been using for a while now with no problem.</p>
<p dir="auto">I will try to force my service on to 2.7.10 as you suggest</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/post/11260</link><guid isPermaLink="true">https://forum.mango-os.com/post/11260</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:59:00 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:58:29 GMT]]></title><description><![CDATA[<p dir="auto">Should that not be sufficient to resolve it, you can manually set the database back to the 2.7.6 schema and let .10 do the upgrade again, properly.</p>
<p dir="auto">Step 1) Gain contact with the database...<br />
H2:</p>
<ol>
<li>Navigate to Mango/bin/h2-web-console.sh</li>
<li>Edit the script and add -webAllowOthers if you are not browsing from the same machine Mango runs on, and remember the port at the top (8081 by default).</li>
<li>Launch the script. Navigate to http://[ip]:h2-port/ in your browser</li>
<li>Fill in the credentials, and /path/to/Mango/databases/mah2 then connect</li>
</ol>
<p dir="auto">MySQL:</p>
<ol>
<li>command line, mysql --user=[env's db.user] --password=[env's db.password] [databaseName]</li>
</ol>
<p dir="auto">Run the commands...</p>
<ol>
<li>select * from systemSettings where settingname='databaseSchemaVersion'; is 11, is 12?<br />
if 11,<br />
Please post error from trying to start 2.7.10<br />
if 12,</li>
<li>update systemSettings set settingvalue='11' where settingname='databaseSchemaVersion'; drop table jsonData;</li>
</ol>
<p dir="auto">Disconnect from the database, and finally, start up with 2.7.10 in your Mango/ directory.</p>
]]></description><link>https://forum.mango-os.com/post/11259</link><guid isPermaLink="true">https://forum.mango-os.com/post/11259</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:43:13 GMT]]></title><description><![CDATA[<p dir="auto">Brian,</p>
<p dir="auto">Please check your env.properties for your database setting. It would appear to me Mango is trying to create a new database on MySQL.</p>
<p dir="auto">Yeah, you will need to drop the m2m2-core-2.7.10.zip into your Mango/ directory, then relaunch.</p>
]]></description><link>https://forum.mango-os.com/post/11258</link><guid isPermaLink="true">https://forum.mango-os.com/post/11258</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:30:00 GMT]]></title><description><![CDATA[<p dir="auto">So do I now need to do a full re-install?</p>
<p dir="auto">I can't get back to our mango site to do an upgrade the normal way.</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/post/11256</link><guid isPermaLink="true">https://forum.mango-os.com/post/11256</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:22:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi Brian,</p>
<p dir="auto">I put a new Core version, 2.7.10, out to fix this issue.</p>
]]></description><link>https://forum.mango-os.com/post/11254</link><guid isPermaLink="true">https://forum.mango-os.com/post/11254</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 16:22:41 GMT]]></title><description><![CDATA[<p dir="auto">Hello Joel,<br />
I have expanded the 2.7.6 files over the existing files on the linux server. And restarted the service. I have also put the 5 module zip files for ver 2.7.6 into the home folder.</p>
<p dir="auto">After restarting the Mango service, it tries to start 2.7.8:</p>
<p dir="auto">[root@M-2-M ~]# ma-start: MA started with Process ID:  3547<br />
INFO  2016-03-16 16:04:11,233 (com.serotonin.m2m2.Main.main:82) -** Starting Mango 2.7.8** with Schema Version: 12</p>
<p dir="auto">And I can see the updated modules getting loaded as well.</p>
<p dir="auto">After the modules get loaded it looks like the same lines get put in.</p>
<p dir="auto">I take you point that it looks like a Mysql error but I did not specifically set up any MySQL tables. These must tables that Mango use natively and used without error in 2.7.6 or are new tables in ver 2.7.8</p>
<p dir="auto">bad SQL grammar [CREATE TABLE jsonData (id int not null auto_increment,xid varchar(50) not null, name varchar(255) not null, readPermission varchar(255), editPermission varchar(255), data clob, primary key (id))engine=InnoDB; ]</p>
<p dir="auto">I don't know what table is 'jsonData'<br />
It also looks like it is terminating something called Mango Lifecycle:</p>
<p dir="auto">INFO  2016-03-16 16:04:14,263 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
INFO  2016-03-16 16:04:14,279 (com.serotonin.m2m2.db.BasePooledProxy.terminateImpl:110) - Stopping database</p>
<p dir="auto">Now I cannot get back into my mango to check any settings in any event.</p>
<p dir="auto">Any advice would be greatly appreciated.</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/post/11253</link><guid isPermaLink="true">https://forum.mango-os.com/post/11253</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 16:22:41 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 15:32:26 GMT]]></title><description><![CDATA[<p dir="auto">Hey Brian,</p>
<p dir="auto">I think you should receck your settings, this error seems to be clearly a MySQL error and we only saw this error happen if using a MySQL database.  You can look at your env.properties file and also go to the system settings page in Mango and see what it says as the Database type at the top.</p>
<blockquote>
<p dir="auto">ERROR 2016-03-16 12:58:49,644 (com.serotonin.m2m2.Main.main:120) - Error during initialization<br />
com.serotonin.ShouldNeverHappenException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [CREATE TABLE jsonData (id int not null auto_increment,xid varchar(50) not null, name varchar(255) not null, readPermission varchar(255), editPermission varchar(255), data clob, primary key (id))engine=InnoDB; ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version</p>
</blockquote>
]]></description><link>https://forum.mango-os.com/post/11252</link><guid isPermaLink="true">https://forum.mango-os.com/post/11252</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Wed, 16 Mar 2016 15:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 14:21:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello Joel,<br />
I am not using the Mysql as the main database but I know that Mango uses some of the tables for things like events and users.</p>
<p dir="auto">I have a recent Mango back up to restore. We do an automatic back up each morning approx 5 am local time here.</p>
<p dir="auto">I am halfway through uploading the 2.7.6 core files so will continue with that.</p>
<p dir="auto">Thank you for your reply.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Brian</p>
]]></description><link>https://forum.mango-os.com/post/11251</link><guid isPermaLink="true">https://forum.mango-os.com/post/11251</guid><dc:creator><![CDATA[BG]]></dc:creator><pubDate>Wed, 16 Mar 2016 14:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to 2.7.8 Upgrade on Wed, 16 Mar 2016 14:12:08 GMT]]></title><description><![CDATA[<p dir="auto">Looks like an issue specifically to upgrading on MySQL and something we should be able to fix first thing this morning.  I'm not sure putting the 2.7.6 zip files back in you might need to restore a backup of your MySQL database.</p>
<p dir="auto">When using MySQL as your database the best practice to follow is to first dump your database and then make a zip file of your Mango install folder this way you can always do a full roll back.</p>
]]></description><link>https://forum.mango-os.com/post/11250</link><guid isPermaLink="true">https://forum.mango-os.com/post/11250</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Wed, 16 Mar 2016 14:12:08 GMT</pubDate></item></channel></rss>