grand-stack / grand-stack-starter

Simple starter project for GRANDstack full stack apps

Home Page:https://grandstack.io/docs/getting-started-grand-stack-starter.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Neo4j Community Edition GCP does not come with APOC installed

kappaisagreekletter opened this issue · comments

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.

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.