I am trying to set the trigger as given in apoc triggers documentation
https://neo4j.com/docs/apoc/current/overview/apoc.trigger/apoc.trigger.install/
Getting this error :
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure apoc.trigger.install
: Caused by: java.lang.RuntimeException: No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER
i am running neo4j 5.20 as docker container, also installed apoc library.
In my neo4j browser , Cluster role is showing as "primary" ,
here's the command with which i am starting the container:
docker run --rm --network host -e NEO4J_AUTH=none -v $PWD/data:/data -v $PWD/apoc.conf:/var/lib/neo4j/conf/apoc.conf -v $PWD/plugins:/plugins --name neo4j-apoc-new -e NEO4J_apoc_export_file_enabled=true -e NEO4J_apoc_import_file_enabled=true -e NEO4J_apoc_import_file_use__neo4j__config=true -e NEO4JLABS_PLUGINS=\[\"apoc\"\] neo4j:5.20.0
i found this https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/3073
but could't figure out whats wrong with this .