Problems running seedDb

I have installed Neo4J on docker, I am able to log in to the web interface and run basic commands.

I am new to Neo4J so I am following the tutorial here Hands-On With The GRANDstack Starter Project - GraphQL, React, Apollo & Neo4j Database - YouTube

When I run seedDb as shown at 5:37 I get the error

Error: GraphQL error: There is no procedure with the name `apoc.cypher.doIt` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

If after running seedDb, I issue the command

 match(n) return count (n) 

I get 36 as shown in the video

but if I issue the command

call db.schema.visualization

It only returns 3 nodes, Business, Review & User (Category is missing)

Here is my docker config

{
   "cap_add" : null,
   "cap_drop" : null,
   "cmd" : "neo4j",
   "cpu_priority" : 50,
   "devices" : null,
   "enable_publish_all_ports" : false,
   "enable_restart_policy" : true,
   "enabled" : true,
   "entrypoint_default" : "/sbin/tini -g -- /docker-entrypoint.sh",
   "env_variables" : [
      {
         "key" : "PATH",
         "value" : "/var/lib/neo4j/bin:/usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      },
      {
         "key" : "LANG",
         "value" : "C.UTF-8"
      },
      {
         "key" : "JAVA_HOME",
         "value" : "/usr/local/openjdk-11"
      },
      {
         "key" : "JAVA_VERSION",
         "value" : "11.0.7"
      },
      {
         "key" : "JAVA_BASE_URL",
         "value" : "https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.7%2B10/OpenJDK11U-jdk_"
      },
      {
         "key" : "JAVA_URL_VERSION",
         "value" : "11.0.7_10"
      },
      {
         "key" : "NEO4J_SHA256",
         "value" : "b598edeb3401e5ec40fb7bc3370307addfcaa21565f731016c9c7f8e70af659a"
      },
      {
         "key" : "NEO4J_TARBALL",
         "value" : "neo4j-community-4.1.0-unix.tar.gz"
      },
      {
         "key" : "NEO4J_EDITION",
         "value" : "community"
      },
      {
         "key" : "NEO4J_HOME",
         "value" : "/var/lib/neo4j"
      },
      {
         "key" : "TINI_VERSION",
         "value" : "v0.18.0"
      },
      {
         "key" : "TINI_SHA256",
         "value" : "12d20136605531b09a2c2dac02ccee85e1b874eb322ef6baf7561cd93f93c855"
      },
      {
         "key" : "NEO4J_AUTH",
         "value" : "neo4j/**********"
      },
      {
         "key" : "NEO4J_dbms_connector_https_advertised__address",
         "value" : "192.168.10.3:7473"
      },
      {
         "key" : "NEO4J_dbms_connector_http_advertised__address",
         "value" : "192.168.10.3:7474"
      },
      {
         "key" : "NEO4J_dbms_connector_bolt_advertised__address",
         "value" : "192.168.10.3:7687"
      }
   ],
   "exporting" : false,
   "id" : "27d0167a597663fadb1adca50cc7181c2b9dc78d04a01bbce4c67bfb7790daa1",
   "image" : "neo4j:latest",
   "is_ddsm" : false,
   "is_package" : false,
   "links" : [],
   "memory_limit" : 0,
   "name" : "neo4j",
   "network" : [
      {
         "driver" : "bridge",
         "name" : "bridge"
      }
   ],
   "network_mode" : "bridge",
   "port_bindings" : [
      {
         "container_port" : 7473,
         "host_port" : 7473,
         "type" : "tcp"
      },
      {
         "container_port" : 7474,
         "host_port" : 7474,
         "type" : "tcp"
      },
      {
         "container_port" : 7687,
         "host_port" : 7687,
         "type" : "tcp"
      }
   ],
   "privileged" : false,
   "shortcut" : {
      "enable_shortcut" : false
   },
   "use_host_network" : false,
   "volume_bindings" : [
      {
         "host_volume_file" : "/docker/neo4j/data",
         "mount_point" : "/data",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/neo4j/logs",
         "mount_point" : "/logs",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/neo4j/import",
         "mount_point" : "/var/lib/neo4j/import",
         "type" : "rw"
      }
   ]
}

Am I missing some plugin's?

Make sure you have the apoc plugin is installed. That method is part of apoc plugin.

Please follow the instructions outlined here.

https://neo4j.com/docs/labs/apoc/current/introduction/#:~:text=APOC%20can%20be%20used%20with%20the%20Neo4j%20Docker,is%20not%20recommended%20for%20use%20in%20production%20environments.

2 Likes

Thank you for the quick response, I will give that a try.

Your solution should be the "new" "correct" error console (The current error => not semantic - especially for newbies, hh why talking with clues).

"new" (bold text):

GraphQL error: There is no procedure with the name apoc.cypher.doIt registered for this database instance - Make sure you have the apoc plugin installed. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

Anyway thanks for the solution,