question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

A 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:open
  • Created 5 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aanastasioucommented, Jan 14, 2019

@robertlagrant Thank you for your response, I think that the discussion with @mvanderkroon on the pull request was very informative about the specifics.

1reaction
mvanderkrooncommented, Jan 9, 2019

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found