neo4j.exceptions.ClientError: No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER
See original GitHub issueA funny one:
- We have a 3-node causal-clustered neo4j setup
- I’ve changed the routing protocol to be
bolt+routing
- We’re using Neomodel with
@db.transaction
We’re getting intermittent errors as per the issue title - i.e. it’s trying to write to a follower node, and presumably bolt+routing isn’t sending the transaction to the leader. Am I missing something? Is it that if the first interaction with the database is a read, that it opens the transaction on a follower node? Can I force it to the leader for every transaction?
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
No write operations are allowed directly on this database ...
No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER ;...
Read more >Solved: Implementing bolt+routing:// - Neo4j - 53962
Unhandled exception: No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is:...
Read more >Solved: Re: 4.x server-side routing on Aura - Neo4j Community
ClientError.Cluster.NotALeader] No write operations are allowed directly on this database. Writes must pass through the leader. The role of ...
Read more >Solved: Write operations are not allowed for user 'neo4j'
I m trying to write a custom apoc in which i am pulling the data from sql server and need to load in...
Read more >Status Codes - Neo4j
The fact that a status code is returned by the server does always mean there is a fatal error. Status codes can also...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@robertlagrant Thank you for your response, I think that the discussion with @mvanderkroon on the pull request was very informative about the specifics.
@aanastasiou I believe so. I have forked the repo, made the necessary changes and would be quite happy to issue a pull request. Should I point it to your
master
branch?