Installation of Docker with apoc fails to run (although logs that it sets up correctly )

Hello I am trying to follow the instructions to set up Neo4j (version 5.18.1) with APOC plugins in a server environment (not Neo4j for desktop).

I successfully create the image and I am able to connect to the running instance, However I receive runntime issue even for the simplest query i.e. from bash I run :

cypher-shell 'call apoc.version()
Error logs:
There is no procedure with the name apoc.version registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

Some things to help diagnose my issue:
Dockerfile:


# Use the official Neo4j image
FROM neo4j:latest

# Set environment variables to enable APOC
ENV NEO4J_apoc_export_file_enabled=true \
    NEO4J_apoc_import_file_enabled=true \
    NEO4J_apoc_import_file_use__neo4j__config=true \
    NEO4J_AUTH=none \
    NEO4J_dbms_security_procedures_unrestricted=apoc.* \
    NEO4J_PLUGINS='["apoc-extended"]'

# Expose the Neo4j port
EXPOSE 7474 7687

script for docker run :


mkdir test 
cd test
mkdir plugins data
pushd plugins
wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.18.0/apoc-5.18.0-extended.jar
popd


# remove the container if it exists
docker rm -f neo4j-apoc

docker run \
    -p 7474:7474 -p 7687:7687 \
    -v $PWD/data:/data -v $PWD/plugins:/plugins \
    --name neo4j-apoc \
    -e NEO4J_AUTH=none \
    -e NEO4J_apoc_export_file_enabled=true \
    -e NEO4J_apoc_import_file_enabled=true \
    neo4j

Please let me know if something more is needed to debug. Thank you

@partizanos if you want to use apoc-extended you also have to add apoc because that has all the core apoc procedures.
So changing
NEO4J_PLUGINS='["apoc-extended"]'
to
NEO4J_PLUGINS='["apoc", "apoc-extended"]'
should fix it.

1 Like

Try:

--env NEO4J_PLUGINS='["apoc"]'