Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugins using a plugins volume on kubernetes #542

Open
ozmoze opened this issue Dec 27, 2024 · 1 comment
Open

Add plugins using a plugins volume on kubernetes #542

ozmoze opened this issue Dec 27, 2024 · 1 comment
Assignees
Labels

Comments

@ozmoze
Copy link

ozmoze commented Dec 27, 2024

  • Neo4j version: 5.26.0

When trying to install graph data-science plugin in our neo4j kubernetes instance using neo4j-5.26.0 helm chart, we hit a bug where the symbolic link is not properly set for plugins folder.

  • plugin volume definition in helm chart
volumes:
  plugins:
    labels: {}
    disableSubPathExpr: false
    mode: "share"
    share:
      name: "data"
  • resulting volume in kubernetes neo4j pod

We can see that there is no symbolic link for plugins pointing to /plugins mounted directory.
Instead there is a empty plugins directory under neo4j home.

neo4j@neo4j-voyager-0:~$ ls -l
total 240
-rwxrwxrwx 1 neo4j neo4j  36008 Dec  5 12:07 LICENSE.txt
-rwxrwxrwx 1 neo4j neo4j 118877 Dec  5 12:07 LICENSES.txt
-rwxrwxrwx 1 neo4j neo4j  11647 Dec  5 12:07 NOTICE.txt
-rwxrwxrwx 1 neo4j neo4j   1432 Dec  5 12:07 README.txt
-rwxrwxrwx 1 neo4j neo4j     94 Dec  5 12:07 UPGRADE.txt
drwxr-xr-x 3 neo4j neo4j   4096 Dec 24 22:27 bin
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 certificates
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:04 conf
lrwxrwxrwx 1 root  root       5 Dec 24 22:27 data -> /data
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 import
drwxrwxrwx 2 neo4j neo4j   4096 Dec  6 10:04 labs
drwxrwxrwx 3 neo4j neo4j  20480 Dec  6 10:04 lib
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 licenses
lrwxrwxrwx 1 root  root       5 Dec 24 22:27 logs -> /logs
-rwxrwxrwx 1 neo4j neo4j     64 Dec 24 22:27 packaging_info
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:09 plugins
drwxrwxrwx 2 neo4j neo4j   4096 Dec  6 10:04 products
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:05 run
neo4j@neo4j-voyager-0:~$

Our GDS jar file is under /plugins

neo4j@neo4j-voyager-0:~$ ls -l /plugins/
total 62440
-rw-r--r-- 1 neo4j neo4j 63936757 Dec 27 13:57 neo4j-graph-data-science-2.13.2.jar
neo4j@neo4j-voyager-0:~$ 
@ozmoze ozmoze added the bug label Dec 27, 2024
@jennyowen jennyowen transferred this issue from neo4j/neo4j Jan 6, 2025
@jennyowen
Copy link
Member

jennyowen commented Jan 6, 2025

@ozmoze Only the /data and /logs directories will have a simlink under /var/lib/neo4j. Other mounted directories, including /plugins are connected to neo4j by setting the server.directories.plugins setting in the neo4j.conf to /plugins.

Are you finding that the GDS plugin is correctly loaded?

Does your bug about a missing symbolic link have an error message?

@jennyowen jennyowen self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants