<?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[ma.log not logging]]></title><description><![CDATA[<p dir="auto">I have a Mango installation that is not creating logfiles.</p>
<p dir="auto">On a particular date, the database apparently became corrupted, according to ma.log, and logging ceased some time thereafter. Upon deleting the database and restoring from an earlier backup as per <a href="https://forum.infiniteautomation.com/topic/2784/problem-with-mango/5" rel="nofollow ugc">this thread</a>, logging has not resumed, although everything else seems okay.</p>
<p dir="auto">Does anyone have any suggestions for things I could check that could interfere with logging, or any information I could provide that might point to a possible cause?</p>
<p dir="auto">The Mango version is v3.4.5 on a Raspberry Pi 3 running Raspbian 9.</p>
]]></description><link>https://forum.mango-os.com/topic/3868/ma-log-not-logging</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 03:29:20 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3868.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Oct 2018 00:43:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ma.log not logging on Mon, 29 Oct 2018 19:01:39 GMT]]></title><description><![CDATA[<p dir="auto">I just thought of another possibility.  Mango 3.x uses Log4J2 where previous versions of Mango used Log4j.  If you have a log4j jar that is getting loaded it won't pickup the log42.xml configuration and would probably use some default of only printing to stdout.</p>
<p dir="auto">I would check your &lt;ma-home&gt;/lib folder and see if there are log4j and log4j2 jars.</p>
<pre><code>ls &lt;ma-home&gt;/lib/*log4j*
</code></pre>
<p dir="auto">This should list only these jars:</p>
<pre><code>lib/log4j-api-2.10.0.jar	lib/log4j-jcl-2.10.0.jar
lib/log4j-core-2.10.0.jar	lib/log4j-slf4j-impl-2.10.0.jar
</code></pre>
]]></description><link>https://forum.mango-os.com/post/20357</link><guid isPermaLink="true">https://forum.mango-os.com/post/20357</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Mon, 29 Oct 2018 19:01:39 GMT</pubDate></item><item><title><![CDATA[Reply to ma.log not logging on Mon, 29 Oct 2018 17:17:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi Matthew,</p>
<p dir="auto">While I've never seen it there on a PI, you could check to see if there's a Mango/bin/logs/ directory containing the log file.</p>
<p dir="auto">Your boot output appears to be a regular boot. Other things that could be affecting what's happening:</p>
<ol>
<li>You have a Mango/overrides/classes/log4j2.xml file</li>
<li>You have moved the debug-logging script from Mango/bin/ext-available to ext-enabled.</li>
</ol>
<p dir="auto">I find it strange that your log output has,</p>
<pre><code>Oct 24, 2018 8:24:45 PM com.serotonin.m2m2.db.H2Proxy initializeImpl
INFO: Initializing H2 connection manager
Oct 24, 2018 8:24:49 PM com.serotonin.m2m2.db.upgrade.DBUpgrade checkUpgrade
INFO: Starting instance with core version 3.4.5, db 25
Oct 24, 2018 8:24:49 PM com.serotonin.m2m2.rt.DataSourceGroupInitializer initialize
INFO: Initializing 5 NORMAL priority data sources in 8 threads.
Oct 24, 2018 8:24:56 PM com.serotonin.m2m2.rt.RuntimeManagerImpl initializeDataSourceStartup
Oct 24, 2018 8:25:01 PM com.serotonin.m2m2.rt.DataSourceGroupInitializer initialize
INFO: Initialization of 5 NORMAL priority data sources took 11839ms
</code></pre>
<p dir="auto">Which is anomalous in having a different format than the default, and not logging all the statements that are logged in the default. So, you must have modified your logging configuration. I'd say go back to using the default log4j2.xml file.</p>
]]></description><link>https://forum.mango-os.com/post/20356</link><guid isPermaLink="true">https://forum.mango-os.com/post/20356</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 29 Oct 2018 17:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to ma.log not logging on Sat, 27 Oct 2018 18:37:31 GMT]]></title><description><![CDATA[<p dir="auto">Furthermore, the <code>log4j2.xml</code> file appears to be in good order, and the permissions for the log directory are such that the root user may read and write. <a href="https://help.infiniteautomation.com/installing-services" rel="nofollow ugc">Mango is set up to run as a service as per the instructions</a>, which I believe results in it running as root.</p>
]]></description><link>https://forum.mango-os.com/post/20352</link><guid isPermaLink="true">https://forum.mango-os.com/post/20352</guid><dc:creator><![CDATA[Matthew]]></dc:creator><pubDate>Sat, 27 Oct 2018 18:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to ma.log not logging on Sat, 27 Oct 2018 18:30:49 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your quick reply. The there were several instances of the word "log" in the console output, but none that seemed to indicate an error.</p>
<p dir="auto">The full output is at:<br />
<a href="https://pastebin.com/8H2wYpie" rel="nofollow ugc">https://pastebin.com/8H2wYpie</a></p>
]]></description><link>https://forum.mango-os.com/post/20351</link><guid isPermaLink="true">https://forum.mango-os.com/post/20351</guid><dc:creator><![CDATA[Matthew]]></dc:creator><pubDate>Sat, 27 Oct 2018 18:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to ma.log not logging on Thu, 25 Oct 2018 00:49:12 GMT]]></title><description><![CDATA[<p dir="auto">Assuming you didn't modify your startup scripts your logging configuration will be defined in this file:</p>
<pre><code>&lt;ma-home&gt;/classes/log4j2.xml
</code></pre>
<p dir="auto">This file defines where the logs are written to, perhaps this file is corrupt/missing or has been modified to write the logs into a folder that Mango does not have permission to write to.</p>
<p dir="auto">You should be able to startup mango and see the output on the console, I'm pretty sure in 3.4 if you do this:</p>
<pre><code>sudo su &lt;mango-user&gt;
cd &lt;ma-home&gt;
./bin/ma.sh start
</code></pre>
<p dir="auto">you will see the output in the console and potentially see error messages about the logging system.</p>
]]></description><link>https://forum.mango-os.com/post/20331</link><guid isPermaLink="true">https://forum.mango-os.com/post/20331</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Thu, 25 Oct 2018 00:49:12 GMT</pubDate></item></channel></rss>