verida / storage-node

ISC License
3 stars 5 forks source link

no_majority error when calling insert on a new cluster #16

Closed tahpot closed 2 years ago

tahpot commented 2 years ago

Attempting to save using nano via insert on a new CouchDB cluster throws an error no_majority.

tahpot commented 2 years ago

It's essential all_nodes and cluster_noes are identical otherwise CouchDB will give a no_majority error when inserting data. (See https://stackoverflow.com/questions/48508974/couchdb-gives-no-majority-when-trying-to-update-security).

The cluster had cluster_nodes that weren't reachable. Removing these resolved the issue.