<?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[java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir]]></title><description><![CDATA[<p dir="auto">Trying to do a restore nosql db complete backup. ver 3.7.7<br />
And mango crashes and I receive this error:</p>
<pre><code>ERROR 2020-07-31T00:36:41,201 (com.infiniteautomation.mango.spring.components.DiskUsageMonitoringService.doPoll:159) - Unable to get Filestore partition usage
java.nio.file.NoSuchFileException: /mysql/datadir
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_171]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_171]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_171]
        at sun.nio.fs.UnixFileStore.devFor(UnixFileStore.java:57) ~[?:1.8.0_171]
        at sun.nio.fs.UnixFileStore.&lt;init&gt;(UnixFileStore.java:64) ~[?:1.8.0_171]
        at sun.nio.fs.LinuxFileStore.&lt;init&gt;(LinuxFileStore.java:44) ~[?:1.8.0_171]
        at sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:51) ~[?:1.8.0_171]
        at sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:39) ~[?:1.8.0_171]
        at sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:368) ~[?:1.8.0_171]
        at java.nio.file.Files.getFileStore(Files.java:1461) ~[?:1.8.0_171]
        at com.infiniteautomation.mango.spring.components.DiskUsageMonitoringService.doPoll(DiskUsageMonitoringService.java:155) ~[mango-3.7.7.jar:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_171]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_171]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_171]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_171]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

</code></pre>
<p dir="auto">EDIT: I realised I had accidentally clicked the incremental restore button. Don't know if that caused it but it may have something to do with trying to move 5GB of compressed NoSQL data...</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/topic/4891/java-nio-file-nosuchfileexception-mysql-datadir</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 15:25:53 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4891.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 31 Jul 2020 00:15:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Tue, 01 Feb 2022 17:34:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cmusselm" aria-label="Profile: cmusselm">@<bdi>cmusselm</bdi></a> Sorry guys, there is no way to disable it without disabling all disk usage monitoring using the property:  <code>internal.monitor.diskUsage.enabled=false</code></p>
]]></description><link>https://forum.mango-os.com/post/27296</link><guid isPermaLink="true">https://forum.mango-os.com/post/27296</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Tue, 01 Feb 2022 17:34:10 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Mon, 31 Jan 2022 17:24:24 GMT]]></title><description><![CDATA[<p dir="auto">To get around my issue, we created a \rdsdbdata\db folder so Mango can read it, even though our DB is not local to the app server.</p>
]]></description><link>https://forum.mango-os.com/post/27295</link><guid isPermaLink="true">https://forum.mango-os.com/post/27295</guid><dc:creator><![CDATA[cmusselm]]></dc:creator><pubDate>Mon, 31 Jan 2022 17:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Wed, 09 Sep 2020 18:25:11 GMT]]></title><description><![CDATA[<p dir="auto">I also get this error, but for the \rdsdbdata\db directory.  We're running MySQL on Amazon RDS.  I'm guessing Mango does not have permissions to view the file system, or is treating \rdsdbdata\db as a local directory when trying to view the usage?</p>
<p dir="auto">As Fox asked, any way to disable this check to save some errors in the log file?</p>
<p dir="auto">Thanks,<br />
Chad</p>
]]></description><link>https://forum.mango-os.com/post/25739</link><guid isPermaLink="true">https://forum.mango-os.com/post/25739</guid><dc:creator><![CDATA[cmusselm]]></dc:creator><pubDate>Wed, 09 Sep 2020 18:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Sun, 02 Aug 2020 20:28:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terrypacker" aria-label="Profile: terrypacker">@<bdi>terrypacker</bdi></a> said in <a href="/post/25596">java.nio.file.NoSuchFileException: /mysql/datadir</a>:</p>
<blockquote>
<p dir="auto">I would be interested to find out if there is a configuration problem here or if Mango could be doing something better.</p>
<p dir="auto">Can you confirm:</p>
<ol>
<li>You are using MySQL</li>
<li>The results of this query on that MySQL instance: <code>select @@DATADIR</code></li>
<li>The version of MySQL</li>
<li>That /mysql/datadir does exist</li>
<li>That the user running Mango has read access to /mysql/datadir</li>
</ol>
<p dir="auto">Then I can provide more specific help I think.</p>
</blockquote>
<ol>
<li>Yes, 5.7.25 on a separate dedicated mysql server</li>
<li>SELECT @@DATADIR<br />
/mysql/datadir/</li>
<li>as above 5.7.25</li>
<li>There is no <code>/mysql/datadir</code></li>
<li>err looks like mango is running as root...</li>
</ol>
]]></description><link>https://forum.mango-os.com/post/25601</link><guid isPermaLink="true">https://forum.mango-os.com/post/25601</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sun, 02 Aug 2020 20:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Fri, 31 Jul 2020 15:40:41 GMT]]></title><description><![CDATA[<p dir="auto">I would be interested to find out if there is a configuration problem here or if Mango could be doing something better.</p>
<p dir="auto">Can you confirm:</p>
<ol>
<li>You are using MySQL</li>
<li>The results of this query on that MySQL instance: <code>select @@DATADIR</code></li>
<li>The version of MySQL</li>
<li>That /mysql/datadir does exist</li>
<li>That the user running Mango has read access to /mysql/datadir</li>
</ol>
<p dir="auto">Then I can provide more specific help I think.</p>
]]></description><link>https://forum.mango-os.com/post/25596</link><guid isPermaLink="true">https://forum.mango-os.com/post/25596</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Fri, 31 Jul 2020 15:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Fri, 31 Jul 2020 00:29:27 GMT]]></title><description><![CDATA[<p dir="auto">Noted thanks. Is there anything I can put into the config so I'm not getting this error cropping up and throwing me off??</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/25594</link><guid isPermaLink="true">https://forum.mango-os.com/post/25594</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Fri, 31 Jul 2020 00:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to java.nio.file.NoSuchFileException: &#x2F;mysql&#x2F;datadir on Fri, 31 Jul 2020 00:20:56 GMT]]></title><description><![CDATA[<p dir="auto">That shouldn't affect a restore.  The DiskUsageMonitoringService is a service that runs periodically to compute the disk usage for Mango.</p>
<p dir="auto">What you are seeing is it fail because your MySQL instance is setup to have its data directory at <code>/mysql/datadir</code> and that file does not exist.  The service attempts to find the data directory for MySQL by doing this query:</p>
<p dir="auto"><code>select @@DATADIR</code></p>
<p dir="auto">Which should return the path to where it stores it's data.</p>
]]></description><link>https://forum.mango-os.com/post/25593</link><guid isPermaLink="true">https://forum.mango-os.com/post/25593</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Fri, 31 Jul 2020 00:20:56 GMT</pubDate></item></channel></rss>