grand-stack / grand-stack-starter

Simple starter project for GRANDstack full stack apps
https://grandstack.io/docs/getting-started-grand-stack-starter.html
Apache License 2.0
506 stars 161 forks source link

Neo4j Community Edition GCP does not come with APOC installed #138

Closed kappaisagreekletter closed 3 years ago

kappaisagreekletter commented 3 years ago

I created a Neo4j Community Edition instance on google cloud from the marketplace and when I tested it from my local application I got the following error: Error: Unknown function 'apoc.cypher.runFirstColumn' (...)

I did some digging and found out that APOC was not installed on the cloud instance. I tried to install it via an ssh connection but I cant seem to get it to work.

I am pretty sure that APOC should come preinstalled. Am I missing something? Any help would be appreciated.

kappaisagreekletter commented 3 years ago

An important thing to note about cloud version of neo4j is that you should not modify the /etc/neo4j/neo4j.conf file directly, but rather modify /etc/neo4j/neo4j.template. The system service that restarts neo4j calls a shell script called pre-neo4j.sh.

https://neo4j.com/developer/neo4j-cloud-vms/

Yikes, I missed this.

(edit) This was not the problem. https://stackoverflow.com/a/56227465/15118442 this helped fix the problem. Btw, apoc still does not come preinstalled with CGP instance from the marketplace. You have to install apoc yourself. And for initialization I recommend the above stackoverflow link.