You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/11/10 09:23:05 UTC

[GitHub] harald-d opened a new issue #978: Creating a cluster never works

harald-d opened a new issue #978: Creating a cluster never works
URL: https://github.com/apache/couchdb/issues/978
 
 
   <!--- general summary -->
   I tried to create a 2-node cluster multiple times (both on windows and ubuntu) and it never worked. I did exactly as described in the documentation.
   
   
   ## Expected Behavior
   When i finish the cluster-configuration of the two nodes, i expect to create a database on node1, which should show up on node2. Verification on both nodes via fauxton fails also "internal server error" - that happens both under linux and windows with version 2.1.1
   
   ## Current Behavior
   I configure both CouchDB via API
   
   **node1:** (10.0.0.1)
   1. POST {"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"mypassword", "node_count":"2"}
   
   2. POST {"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"mypassword", "port": 5984, "node_count": "2", "remote_node": "10.0.0.2", "remote_current_user": "admin", "remote_current_password": "mypassword" }
   
   3. POST {"action": "add_node", "host":"10.0.0.2", "port": "5984", "username": "admin", "password":"mypassword"}
   
   4. POST {"action": "finish_cluster"}
   
   Membership-Status:
   {"all_nodes":["couchdb@localhost"],"cluster_nodes":["couchdb@10.0.0.2","couchdb@localhost"]}
   
   
   **node2**(10.0.0.2)
   same configuration as node1, but IP address for other node changes to 10.0.0.1
   
   Membership-Status:
   {"all_nodes":["couchdb@localhost"],"cluster_nodes":["couchdb@10.0.0.1","couchdb@localhost"]}
   
   **I never defined a zone - is this mandatory for the cluster to work ?**
   is there another recommended way to test if the cluster is working ? The goal is to create a 2-node cluster where one node can fail and the dbs continue to operate via node2.
   
   
   ## Your Environment
   
   Tried on Windows 10, Windows Server 2016, Ubuntu 14.04
   CouchDB 2.1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services