<?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[Mango Service Not Running (Switching from H2 DB to MySQL)]]></title><description><![CDATA[<p dir="auto">I am using Mango v. 2.8.8<br />
It was running on an H2 database which appears to be out of memory<br />
<img src="https://camo.nodebb.org/d31936074b4bb7c472114cfd75e4c700d4269b79?url=https%3A%2F%2Fi.imgur.com%2FxTjP29w.png" alt="0_1548872266396_Screen Shot 2019-01-30 at 10.37.20 AM.png" class=" img-fluid img-markdown" /><br />
Looking at other <a href="https://forum.infiniteautomation.com/topic/3871/out-of-memory-error" rel="nofollow ugc">Forum</a> <a href="https://forum.infiniteautomation.com/topic/2884/java-out-of-memory" rel="nofollow ugc">Posts</a>, I saw one proposed solution was to switch to a MySQl DB. I stopped the mango service, installed the MySQL server, went ahead and created a DB for Mango and updated my env.properties and commented out the H2 db settings. When I start the Mango service it seems to initialize the service, runs for 5 seconds, then stops. I noticed if I revert back to H2 it works again, however to prevent any more memory issues I've disabled my datasource.</p>
<p dir="auto">In summary:</p>
<ul>
<li>What is meant by h2.jdbc Out of Memory? Are there any steps I can do to fix this first?</li>
<li>Is there anything else other than updating the env.properties  in order to use MySQL?</li>
<li>Once running with MySQl how could I transfer my historical data from the H2 database to MySQL?</li>
</ul>
]]></description><link>https://forum.mango-os.com/topic/4038/mango-service-not-running-switching-from-h2-db-to-mysql</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 20:02:56 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4038.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jan 2019 18:19:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Thu, 31 Jan 2019 17:29:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi phildunlap, apparently MYSQL v8 came with a security update that prevents many third party applications from accessing the server.<br />
Authentication plugin 'caching_sha2_password' cannot be loaded<br />
I could not find a fix for this, other than just downgrading to an older version.<br />
I will create a new post regarding the BACnet question: <a href="https://forum.infiniteautomation.com/topic/4042/adding-a-bacnet-router-as-a-foreign-device" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4042/adding-a-bacnet-router-as-a-foreign-device</a></p>
]]></description><link>https://forum.mango-os.com/post/21232</link><guid isPermaLink="true">https://forum.mango-os.com/post/21232</guid><dc:creator><![CDATA[JAST]]></dc:creator><pubDate>Thu, 31 Jan 2019 17:29:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Thu, 31 Jan 2019 14:18:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I found what the issue was. MySQL v 8 was not working due to a security setting. i downgraded to MySQL v 5 and it worked.</p>
</blockquote>
<p dir="auto">Do you know what the setting was?</p>
<blockquote>
<p dir="auto">I am having trouble with the BACnet discovery. Not sure what is meant by Property: characterSetNotSupporte '29'</p>
</blockquote>
<p dir="auto">I'm not sure either. There is an enumeration of supported encodings in the com.serotonin.bacnet4j.type.primitive.CharacterString class, none of which have that number. I would suspect that exception is getting thrown by the "validateEncoding" method of character string. I tried to do a little searching to see if the BACnet spec has a character encoding 29, which I'm not sure it does. This leads me to wonder if some other sort of configuration error could be going on. It is just doing an object list from a single device or are all devices behaving oddly?</p>
<p dir="auto">Also, it's good practice to make a new topic if it's a new topic :)</p>
]]></description><link>https://forum.mango-os.com/post/21225</link><guid isPermaLink="true">https://forum.mango-os.com/post/21225</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 31 Jan 2019 14:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Thu, 31 Jan 2019 13:13:17 GMT]]></title><description><![CDATA[<p dir="auto">I am a using windows 10 system</p>
<p dir="auto">I found what the issue was. MySQL v 8 was not working due to a security setting. i downgraded to MySQL v 5 and it worked.<br />
I am having trouble with the BACnet discovery. Not sure what is meant by Property: characterSetNotSupporte '29'<br />
com.serotonin.bacnet4j.type.constructed.BACnetError cannot be cast to com.serotonin.bac4j.type.constructed.ServicesSupported</p>
<p dir="auto"><img src="https://camo.nodebb.org/a9849f8e7a8fa51a9c3ff69cd9085d7a81620729?url=https%3A%2F%2Fi.imgur.com%2F7Bv6y79.png" alt="0_1548940638025_Screen Shot 2019-01-30 at 6.59.51 PM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/21223</link><guid isPermaLink="true">https://forum.mango-os.com/post/21223</guid><dc:creator><![CDATA[JAST]]></dc:creator><pubDate>Thu, 31 Jan 2019 13:13:17 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Wed, 30 Jan 2019 21:26:12 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Unable to connect to database of type MYSQl</p>
</blockquote>
<ol>
<li>Check that MySQL is running, <code>pidof mysqld</code></li>
<li>Check the bind address in the /etc/mysql/my.cnf to see if it's something like 127.0.0.1 and so you need to use the explicit IPv4 in the connection string in the env.properties instead of localhost (which is maybe is resolving to <code>::1</code>).</li>
<li>You say it is as that referenced thread is, so can you confirm that you've created the user and have put the port in the connection string? Did you change the names of the database you created at the MySQL command line, or did you use 'mango' as I did in that thread?</li>
</ol>
<p dir="auto">Did the cannot get JDBC connection errors provide any details? I believe the image you posted is of an error that's caused by trying to start without a DB.</p>
]]></description><link>https://forum.mango-os.com/post/21206</link><guid isPermaLink="true">https://forum.mango-os.com/post/21206</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 30 Jan 2019 21:26:12 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Wed, 30 Jan 2019 20:32:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi phildunlap,</p>
<p dir="auto">my mah2.h2.db file size is 443,876 KB</p>
<p dir="auto">I've configured my env.properties file as shown in this thread: <a href="https://forum.infiniteautomation.com/topic/3559/convert-from-h2-to-mysql-database-guidelines/7" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3559/convert-from-h2-to-mysql-database-guidelines/7</a></p>
<p dir="auto">I see I am getting a couple of errors/exceptions:</p>
<ul>
<li>Unable to connect to database of type MYSQl</li>
<li>Could not get JDBC connection</li>
<li>Exception n thread "high-pool-1-thread-1"<br />
<img src="https://camo.nodebb.org/4046c637a3c48876a23ce6d1cd9fe609cca85a81?url=https%3A%2F%2Fi.imgur.com%2FhiOCwCJ.png" alt="0_1548880695002_Screen Shot 2019-01-30 at 3.36.07 PM.png" class=" img-fluid img-markdown" /><br />
<img src="https://camo.nodebb.org/d25b8fe712743d6d8b2a1e7a5bdf5ce0010c9b9c?url=https%3A%2F%2Fi.imgur.com%2FDHtHb9j.png" alt="0_1548880686795_Screen Shot 2019-01-30 at 3.37.13 PM.png" class=" img-fluid img-markdown" /></li>
</ul>
<p dir="auto">is there some sort of overide I should place or remove any existing data sources along with datapoints?</p>
]]></description><link>https://forum.mango-os.com/post/21202</link><guid isPermaLink="true">https://forum.mango-os.com/post/21202</guid><dc:creator><![CDATA[JAST]]></dc:creator><pubDate>Wed, 30 Jan 2019 20:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to Mango Service Not Running (Switching from H2 DB to MySQL) on Wed, 30 Jan 2019 19:28:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi gquiroz,</p>
<blockquote>
<p dir="auto">What is meant by h2.jdbc Out of Memory? Are there any steps I can do to fix this first?</p>
</blockquote>
<p dir="auto">The h2.jdbc part of that means that the java.lang.OutOfMemoryError was somewhere inside the H2 Java Database Connector's code, and that it was rethrown at that spot in the code.</p>
<p dir="auto">You may be able to shrink your H2 database. Have you checked the size of the H2 database file at Mango/databases/mah2.h2.db? This thread gives two ways to backup/restore so as to shrink the H2 database: <a href="https://forum.infiniteautomation.com/topic/2748/how-to-restore-a-database-backup" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/2748/how-to-restore-a-database-backup</a></p>
<blockquote>
<p dir="auto">Is there anything else other than updating the env.properties in order to use MySQL?</p>
</blockquote>
<p dir="auto">This thread gives example SQL for creating a database user and granting them privileges: <a href="https://forum.infiniteautomation.com/topic/3559/convert-from-h2-to-mysql-database-guidelines/7" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/3559/convert-from-h2-to-mysql-database-guidelines/7</a></p>
<blockquote>
<p dir="auto">Once running with MySQl how could I transfer my historical data from the H2 database to MySQL?</p>
</blockquote>
<p dir="auto">Are you using NoSQL? In which case, it does not need to be transferred since it is in the Mango/databases/mangoTSDB database. If not, then you would have converted it while doing the database conversion. So, no.</p>
]]></description><link>https://forum.mango-os.com/post/21197</link><guid isPermaLink="true">https://forum.mango-os.com/post/21197</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 30 Jan 2019 19:28:02 GMT</pubDate></item></channel></rss>