Unable to run GDS algorithm

neo4j and gds versions:

Graph Projection

CALL {
                    MATCH(nodes:Incident|Query) WHERE nodes.lastTime >= datetime() - duration({days:30})
                    RETURN gds.graph.project(
                        "testgraph",
                        nodes,
                        null,
                        {
                        // Load only the 'feat' vector; labels are optional
                        sourceNodeProperties: nodes { .feat, .geo },
                        targetNodeProperties: {}
                        }
                    ) AS g
                    }
                    RETURN g.graphName AS graph, g.nodeCount AS nodes, g.relationshipCount AS rels;

RESULT:

Running KNN on stream mode:

CALL gds.knn.stream("testgraph", {
                nodeProperties: [
                        {feat: "COSINE"},
                        {geo: "EUCLIDEAN"}
                    ],
                topK: 1,
                similarityCutoff: 0.75,     // e.g. 0.70
                randomSeed: 42, concurrency: 1, sampleRate: 1.0, deltaThreshold: 0.0
                })
                YIELD node1, node2, similarity
                WITH gds.util.asNode(node1) AS src, gds.util.asNode(node2) AS dst, similarity
                WHERE src:Query AND src.qid = "q_32360_1759902492677_95f53a" AND dst:Incident
                RETURN dst.incident_id AS incident_id, similarity
                ORDER BY similarity DESC LIMIT 1;

RESULT: error

can anyone please help me fix this error.

Hello @percyjay1998 ,
the issue is likely in the configuration.
The error message tells you its part of the dbms.security.procedures.unrestrictedsetting.
it should be `dbms.security.procedures.unrestrictedsetting=gds.*.

see our docs for more details on how to install GDS correctly

Hi @florentin_dorre ,
I did that too. But still getting the same error.

dbms.security.procedures.unrestricted=jwt.security.*,apoc.*,gds.*

dbms.security.procedures.allowlist=apoc.coll.*,apoc.load.*,gds.*

Just an additional information I am running the neo4j on the docker.

for the docker setup i use the following environment vars to apply the settings correctly:

      - NEO4J_PLUGINS=["graph-data-science"]
      - NEO4J_dbms_security_procedures_allowlist=gds.*
      - NEO4J_dbms_security_procedures_unrestricted=gds.*

how did you change the settings?

actually, --env NEO4J_PLUGINS='["graph-data-science"]' as shown in Neo4j on Docker - Neo4j Graph Data Science should be enough