Closed karrtikiyer closed 4 years ago
Neo Version: 3.5.16 Graph Data Science Library: 1.0.0
Hej @karrtikiyer, thank you for reporting the issue. I tried to reproduce the error, but have been unsuccessful so far. I see that you are running version 1.0.0, we have released a couple of new version in the meantime. If you are still running on Neo4j 3.5, could you try to run the algorithm with the 1.1.1 release? If the error persists, would it be possible for you to share your database with us, or another dataset with which you are able to trigger this issue?
Best, Max
I have the same issue here. I am using Neo4j 3.5.9 and GDS 1.1.1. After running "gds.alpha.ml.ann.stream", I got this error:
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure gds.alpha.ml.ann.stream
: Caused by: java.lang.IllegalMonitorStateException
@omidtavakoli we are still having a hard time reproducing the error. Could you provide us with a dataset that triggers this error appear? Best, Max
@DarthMax Of course. This is my procedure for setting up GDS:
1. running neo4j docker and exec into:
docker run -d \
--name "neo4j_gds" \
--env NEO4J_AUTH=test/test \
--memory=30G \
--memory-swap=30G \
--cpus=7 \
--env=NEO4J_dbms_memory_heap_initial__size=10G \
--env=NEO4J_dbms_memory_heap_max__size=10G \
--env=NEO4J_dbms_memory_pagecache_size=4G \
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
--publish=7478:7474 \
--publish=7691:7687 \
--volume=/import:/import \
--volume=/data:/data \
--volume=/logs:/logs \
neo4j:3.5.9
2. Download GDS 1.1.1 plugin from this url to plugins folder and unzip
https://s3-eu-west-1.amazonaws.com/com.neo4j.graphalgorithms.dist/graph-data-science/neo4j-graph-data-science-1.1.1-standalone.zip
3. update config file with these lines:
dbms.security.procedures.unrestricted=gds.*
dbms.security.procedures.whitelist=gds.*
4. Delete existing data
rm -rf /data/databases/graph.db/*
5. Import data using admin-import.
bin/neo4j-admin import --ignore-missing-nodes=true \
--nodes /import/movies_header.csv,/import/movies.csv \
--nodes /import/users_header.csv,/import/users.csv \
--relationships /import/users_movies_header.csv,/import/users_movies.csv
users_header.csv:
users_id:ID,:LABEL
users.csv sample
usr1,USER
usr2,USER
usr3,USER
usr4,USER
usr5,USER
movies_header.csv
movie_id:ID,Title,rating_mean:float,:LABEL
movies.csv sample
19522,19522,3.97,MOVIE
22880,22880,4.21,MOVIE
26558,26558,4.25,MOVIE
27238,27238,4.4,MOVIE
17611,17611,4.45,MOVIE
users_movies_header.csv
:START_ID,:END_ID,rating:string,:TYPE
users_movies.csv
usr1,19522,5,WATCHED
usr2,22880,5,WATCHED
usr3,26558,5,WATCHED
usr4,27238,5,WATCHED
usr5,17611,5,WATCHED
6. Change new data ownership
chown -R neo4j:neo4j /data/databases/graph.db/*
7. restart container and checkout localhost:7478
@DarthMax any update?
I test without docker on cetos7 server and got the same error: Neo4j 3.5.17 and gds 1.1.1
Failed to invoke procedure gds.alpha.ml.ann.stream
: Caused by: java.lang.IllegalMonitorStateException
Hej @omidtavakoli! Thank you for providing the instructions. I was finally able to recreate the failure. We were able to identify the bug and I submitted a fix. Once it is reviewed it will appear in this repository and will be included in the next release. If you want to try it before that you can build the project manually. Thanks again! Best, Max
@DarthMax Thank you for your response. I want to build the project by myself but I cannot find your commit on the master branch and 1.1.1. Please send your commit number or link.
Best, Omid
Hej @omidtavakoli, sorry for the delay, it took a while to get the PR reviewed and merged. The fixes are now in with the latests commit being https://github.com/neo4j/graph-data-science/commit/f978700cacf6323000e47a99bdf9c894fbf002b4. Best, Max
Thank you @DarthMax for following this issue. It's ok now
I'm running neo 4.04 and GDS 1.21, and I'm getting the same error.
@abydalzain I think this fix was released in GDS 1.2.2
; could you try to upgrade your GDS version and see if that resolves the issue?
Thanks. GDS 1.2.2 has the fix
Failed to invoke procedure
gds.alpha.ml.ann.stream
: Caused by:java.lang.IllegalMonitorStateException
Cypher query:Error from log: