Apoc procedures not loading on Neo4j Server 5.11

I am trying to install apoc core on Neo4j Server version 5.11

I have followed the instructions here to install apoc by moving the APOC jar file from the $NEO4J_HOME/labs directory to the $NEO4J_HOME/plugins directory.

The jar file is in the plugins directory and has read/write permissions for the neo4j user:

-rw-r----- 1 neo4j neo4j 14495768 Aug 31 17:41 apoc-5.11.0-core.jar

I have tried setting the dbms.security.procedures.allowlist setting in neo4j.conf to various values including apoc.* and even * (and restarted the neo4j service after each change)

But neo4j still does not seem to be loading the apoc procedures.

SHOW procedures WHERE name STARTS WITH 'apoc'; returns nothing.

CALL apoc.help(); or any other apoc procedure gives the error:

There is no procedure with the name apoc.help registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

I am not sure what else to try.

@james_g

I am also using Neo4j 5.11.
Redhat 8 + Neo4j Community 5.11 (dnf install neo4j)

The following steps work fine.

  1. Copy apoc-5.11.0-core.jar from /labs to /plugins - /var/lib/neo4j/plugins/apoc-5.11.0-core.jar
  2. Option: Create apoc.conf - /etc/neo4j/apoc.conf
  3. Restart Neo4j - # systemctl restart neo4j
  4. Execute Cypher - SHOW procedures WHERE name STARTS WITH 'apoc';

apoc.conf

apoc.import.file.enabled=true

Hmm i have done all of those thing on my machine.

I am using neo4j 5.11.0 on Amazon Linux 2 with openjdk 17.0.8 (Amazon Corretto version)

@james_g

I think your execution environment is fine.
Is there anything in the neo4j logs?

I do see these warnings in the debug.log:

2023-09-11 13:15:24.050+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `apoc.util.hdfs.HDFSUtils` from plugin jar `/mnt/neo4j/plugins/apoc-5.11
.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataOutputStream
2023-09-11 13:15:24.052+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `apoc.util.hdfs.HDFSUtils$1` from plugin jar `/mnt/neo4j/plugins/apoc-5.
11.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
2023-09-11 13:15:24.061+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `apoc.util.google.cloud.GCStorageURLConnection` from plugin jar `/mnt/ne
o4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: com/google/cloud/storage/Storage
2023-09-11 13:15:26.490+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.GsonJsonProvider` from plugin jar `/mnt/ne
o4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: com/google/gson/JsonElement
2023-09-11 13:15:26.495+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider$JsonArrayProxy$1` from
 plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.496+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider$JsonArrayProxy$2` from
 plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.497+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider$JsonArrayProxy` from p
lugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonArray
2023-09-11 13:15:26.499+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider$JsonObjectProxy$1` fro
m plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonObject
2023-09-11 13:15:26.500+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider$JsonObjectProxy` from 
plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonObject
2023-09-11 13:15:26.505+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JakartaJsonProvider` from plugin jar `/mnt
/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.523+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.json.JsonOrgJsonProvider` from plugin jar `/mnt
/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: org/json/JSONException
2023-09-11 13:15:26.537+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.GsonMappingProvider$1` from plugin jar `
/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: com/google/gson/Gson
2023-09-11 13:15:26.538+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.GsonMappingProvider$2` from plugin jar `
/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: com/google/gson/Gson
2023-09-11 13:15:26.547+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.JakartaMappingProvider$JsonArrayScope` f
rom plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.548+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.JakartaMappingProvider$JsonObjectScope` 
from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.554+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.JakartaMappingProvider$JsonStructureScope` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/JsonValue
2023-09-11 13:15:26.556+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.JakartaMappingProvider$JsonStructureToParserAdapter` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/stream/JsonParser
2023-09-11 13:15:26.558+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `com.jayway.jsonpath.spi.mapper.JakartaMappingProvider` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: jakarta/json/bind/JsonbException
2023-09-11 13:15:28.756+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `META-INF.versions.9.module-info` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: META-INF/versions/9/module-info is not a class because access_flag ACC_MODULE is set
2023-09-11 13:15:28.869+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `io.netty.util.internal.logging.Log4JLogger` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
2023-09-11 13:15:28.933+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `io.netty.util.internal.Hidden$NettyBlockHoundIntegration$1` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: reactor/blockhound/integration/BlockHoundIntegration
2023-09-11 13:15:28.961+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `io.netty.util.internal.Hidden$NettyBlockHoundIntegration` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: reactor/blockhound/integration/BlockHoundIntegration
2023-09-11 13:15:29.003+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `org.apache.commons.logging.impl.AvalonLogger` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
2023-09-11 13:15:29.005+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `org.apache.commons.logging.impl.Log4JLogger` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
2023-09-11 13:15:29.008+0000 WARN  [o.n.k.a.p.GlobalProcedures] Failed to load `org.apache.commons.logging.impl.LogKitLogger` from plugin jar `/mnt/neo4j/plugins/apoc-5.11.0-core.jar`: java.lang.NoClassDefFoundError: org/apache/log/Logger

@james_g

they are but warnings and not errors. also said messages will appear in logs\debug.log on any valid installation with Neo4j and APOC

Okay, I wasn't sure if those were expected or not. So there don't seem to be any actual errors that I can see but neo4j is still not loading the apoc procedures