title: Mongo Procedures Dependencies Cause Neo4j Connection Issues
body: <p>I am using Neo4j on a remote server (ubuntu 20.4) and would like to stream data from MongoDB to Neo4j. I followed the instructions <a href="https://neo4j.com/labs/apoc/4.3/overview/apoc.mongodb/apoc.mongodb.find/?_gl=1*n8o37j*_ga*MTAyMzI1NTA0OC4xNjYwMTc2Mzkz*_ga_DL38Q8KGQC*MTY2MTA5MDQ2NS40OC4xLjE2NjEwOTA3NDUuMC4wLjA.#_install_dependencies" rel="nofollow noreferrer">here</a>. I tried both ways by using the following approaches:</p>
  <ol>
  <li>Use the following command:</li>
  </ol>
  <p>sudo wget <a href="https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/tag/4.3.0.7/apoc-mongodb-dependencies-4.3.0.7.jar" rel="nofollow noreferrer">https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/tag/4.3.0.7/apoc-mongodb-dependencies-4.3.0.7.jar</a> -O /mnt/neo4j/plugins/apoc-mongodb-dependencies-4.3.0.7.jar</p>
  <p>Note that the plugins directory has a different path due to mounting. I changed the path in the configuration file accordingly. This should not be causing any problems because I had the same problem before mounting.</p>
  <p>Also, I tried to match the same release as the apoc-core file (4.4.0.3) in a separate attempt with no better outcome.</p>
  <p>Changing the ownership and read permissions as follows didn't help either:</p>
  <p>sudo chown neo4j:neo4j apoc-mongodb-dependencies-4.4.0.3.jar</p>
  <p>sudo chmod 755 apoc-mongodb-dependencies-4.4.0.3.jar</p>
  <ol start="2">
  <li>Use the following commands:</li>
  </ol>
  <p>sudo wget <a href="https://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/3.12.11/mongo-java-driver-3.12.11.jar" rel="nofollow noreferrer">https://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/3.12.11/mongo-java-driver-3.12.11.jar</a> -O /mnt/neo4j/plugins/mongo-java-driver-3.12.11.jar</p>
  <p>sudo wget <a href="https://repo1.maven.org/maven2/org/mongodb/mongodb-driver/3.12.11/mongodb-driver-3.12.11.jar" rel="nofollow noreferrer">https://repo1.maven.org/maven2/org/mongodb/mongodb-driver/3.12.11/mongodb-driver-3.12.11.jar</a> -O /mnt/neo4j/plugins/mongodb-driver-3.12.11.jar</p>
  <p>sudo wget <a href="https://repo1.maven.org/maven2/org/mongodb/mongodb-driver-core/4.7.1/mongodb-driver-core-4.7.1.jar" rel="nofollow noreferrer">https://repo1.maven.org/maven2/org/mongodb/mongodb-driver-core/4.7.1/mongodb-driver-core-4.7.1.jar</a> -O /mnt/neo4j/plugins/mongodb-driver-core-4.7.1.jar</p>
  <p>sudo wget <a href="https://repo1.maven.org/maven2/org/mongodb/bson/4.7.1/bson-4.7.1.jar" rel="nofollow noreferrer">https://repo1.maven.org/maven2/org/mongodb/bson/4.7.1/bson-4.7.1.jar</a> -O /mnt/neo4j/plugins/bson-4.7.1.jar</p>
  <p>Note that I used the latest versions. I tried the versions available in the instructions as well with no difference in the outcome.</p>
  <p>Now when restarting the neo4j.service, I no longer can access the cypher-shell nor the browser. In the first case, I get &quot;connection refused&quot;, while I get a blank page in the browser case. When I check the status, the service is active and running. But I noticed that it is missing a line compared to when I don't have the dependencies.</p>
  <p>Starting...</p>
  <p>This instance is ServerId{#}</p>
  <p>======== Neo4j 4.4.5 ======== (This line is missing with the dependencies downloaded!)</p>
  <p>When I delete the dependencies from the plugins directory and restart, everything goes back to normal and functions as expected. One more thing to note is that apoc-core procedures work just fine!</p>
  <p>I don't know if I'm doing something wrong here or if there is some sort of underlying problem!</p>