kingjulio8238 / Memary

The Open Source Memory Layer For Autonomous Agents
https://finetune.dev/
MIT License
1.4k stars 97 forks source link

Unable to connect to Neo4j APOC Plugin #51

Open Kornspan opened 3 months ago

Kornspan commented 3 months ago

When I run the app, I get this error

image

, I am unsure how to fix this.

kevinl424 commented 3 months ago

Sorry for the late reply here, seems like this is an issue with Neo4j database configurations. APOC is just a library that Neo4j uses to add more functionality, with every Neo4j aura instance, APOC should be automatically integrated, but if you are hosting the instance on your own machine, you usually have to download and enable APOC manually. Are you connecting to an aura instance or is the database self hosted?

Kornspan commented 2 months ago

Sorry for the late response, but the database is self-hosted. I have tried running commands like: docker run -p 7687:7687 -p 7474:7474 --env NEO4J_AUTH=neo4j/12345678 --env NEO4J_PLUGINS='["apoc"]' -it neo4j, but it still is not working for me.

shutter-cp commented 1 month ago
version: '3.7'
services:
  neo4j-v3:
    image: neo4j:5.21.2
    ports:
      - "27474:7474"
      - "27687:7687"
    environment:
      - NEO4J_AUTH=neo4j/root1234
      - NEO4J_apoc_export_file_enabled=true
      - NEO4J_apoc_import_file_enabled=true
      - NEO4J_apoc_import_file_use__neo4j__config=true
      - NEO4JLABS_PLUGINS=["apoc"]
      - NEO4J_dbms.security.procedures.unrestricted=apoc.*
      - NEO4J_dbms.security.procedures.allowlist=apoc.*
    volumes:
      - ./neo4j_data:/data
      - ./plugins:/plugins

This can