Failed to invoke procedure `apoc.trigger.install`

Hi,

I'm trying to add a trigger to a neo4j 4.4.19 database with apoc version 4.4.0.15. I have apoc.trigger.enabled=true in the settings. The database is created with Neo4j Desktop.

When I try to run apoc.trigger.install I'm getting the following error:

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 have no idea, what is causing this, since I'm not running the database in a cluster.

Please help

Have you switched to the system database before executing the procedure? If not, execute ':use sytem' to switch to the system database, then execute the procedure.

1 Like

Thanks, that worked!

1 Like