<h2 dir="auto">Guidelines</h2>
<p dir="auto">Please note that GitHub issues are only meant for bug reports/feature requests.<br>
If you have questions on how to use Neo4j, please ask on <a href="http://stackoverflow.com/questions/tagged/neo4j" rel="nofollow">StackOverflow</a> instead of creating an issue here.</p>
<p dir="auto">To help us understand your issue, please specify important details, primarily:</p>
<ul dir="auto">
<li>Neo4j version: X.Y.Z</li>
<li>Operating system: (for example Windows 95/Ubuntu 16.04)</li>
<li>API/Driver: (for example Cypher/Java API/Python driver vX.Y.Z)</li>
<li><strong>Steps to reproduce</strong></li>
<li>Expected behavior</li>
<li>Actual behavior</li>
</ul>
<p dir="auto">Additionally, include (as appropriate) log-files, stacktraces, and other debug output.</p>
<h2 dir="auto">Example bug report</h2>
<p dir="auto">I discovered that when I mount <code class="notranslate">data/</code> to a volume on my host, and then stop the container, the <code class="notranslate">write.lock</code> is not removed as well as a number of other files not being cleaned up properly.</p>
<p dir="auto"><strong>Neo4j Version:</strong> 3.0M03<br>
<strong>Operating System:</strong> Ubuntu 15.10<br>
<strong>API:</strong> Docker</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Pull the image: <code class="notranslate">docker pull neo4j/neo4j:3.0.0-M03</code></li>
<li>Create a directory on the host that will be a mount for the data: <code class="notranslate">mkdir /home/neo4j-data</code></li>
<li>Start a new container that mounts to this directory: <code class="notranslate">docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j:/data neo4j/neo4j:3.0.0-M03</code></li>
<li>Navigate to the <code class="notranslate">write.lock</code> file located in the directory: <code class="notranslate">/data/databases/graph.db/schema/label/lucene/labelStore/1/</code></li>
<li>Stop the container: <code class="notranslate">docker stop neo4j-test</code></li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">write.lock</code> should be removed now.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><code class="notranslate">write.lock</code> is still present and preventing access by other programs.</p>
<p dir="auto">The Neo4j server was starting just fine...  Then I uninstalled and re-installed Java (to deal with another issue), and now the Neo4j  server cannot even start!</p>
<ul dir="auto">
<li>
<p dir="auto">Neo4j version: Community Edition 3.4.9</p>
</li>
<li>
<p dir="auto">Operating system: Windows 10</p>
</li>
<li>
<p dir="auto"><strong>Steps to reproduce</strong></p>
</li>
</ul>
<ol dir="auto">
<li>Start the Windows10 Power Shell</li>
<li>Issue the command  <code class="notranslate">D:\neo4j\bin\neo4j console</code>  (  D:\neo4j  is my Neo4j install directory)</li>
</ol>
<ul dir="auto">
<li>Expected behavior : start the Neo4j server</li>
<li>Actual behavior: error message</li>
</ul>
<p dir="auto">`</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invoke-Neo4j : Could not find java at C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe

At line:1 char:163

    ... ule 'D:\neo4j\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j console)
    ~~~~~~~~~~~~~~~~~~~~
        CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
        FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j"><pre class="notranslate"><code class="notranslate">Invoke-Neo4j : Could not find java at C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe

At line:1 char:163

    ... ule 'D:\neo4j\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j console)
    ~~~~~~~~~~~~~~~~~~~~
        CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
        FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j
</code></pre></div>
<p dir="auto">`</p>
<p dir="auto">I don't even know where it's dreaming up the <em>C:\Program Files (x86)\Java</em> part - Java is installed on <code class="notranslate">C:\Program Files\Java</code> (as expected for a 64-bit version)<br>
The Windows 10 control panel is showing "<strong>Java SE Development Kit 8 Update 181</strong>" and "**Java SE Development Kit 8 Update 181 (64-bit)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41893046/47200312-7f24b780-d32a-11e8-9f37-7897f3c19952.JPG"><img src="https://user-images.githubusercontent.com/41893046/47200312-7f24b780-d32a-11e8-9f37-7897f3c19952.JPG" alt="neo4j startup bug" style="max-width: 100%;"></a><br>
**".  Note: I just uninstalled and re-installed Java, but it didn't help</p>
<p dir="auto">PS: I took a peek at the Windows registry, and didn't notice anything immediately looking abnormal.  For example, it shows <code class="notranslate">JavaHome</code> to be set to <code class="notranslate">C:\Program Files\Java\jre1.8.0_181</code> , which looks good.  And none of the registry entries under <code class="notranslate">JavaSoft</code> show that mysterious <em>C:\Program Files (x86)</em> folder that shouldn't be there...</p>