You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Ganesh Jadhav (JIRA)" <ji...@apache.org> on 2017/01/18 07:59:26 UTC

[jira] [Created] (COUCHDB-3272) CouchDB Cluster: internal server error on database creation

Ganesh Jadhav created COUCHDB-3272:
--------------------------------------

             Summary: CouchDB Cluster: internal server error on database creation 
                 Key: COUCHDB-3272
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3272
             Project: CouchDB
          Issue Type: Question
          Components: Fauxton, Setup
            Reporter: Ganesh Jadhav


I have setup CouchDB cluster with two nodes using the Cluster Setup Api (http://docs.couchdb.org/en/latest/cluster/setup.html#the-cluster-setup-api).

I ran following four commands on both nodes:
------------------------------------------------------------
curl -X POST -H "Content-Type: application/json" http://admin:password@xxx.xxx.xxx.xxx:5984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"xxx.xxx.xxx.xxx", "username": "admin", "password":"password"}'


curl -X POST -H "Content-Type: application/json" http://admin:password@xxx.xxx.xxx.xxx:5984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"xxx.xxx.xxx.xxx", "username": "admin", "password":"password", "port": 5984, "remote_node": "yyy.yyy.yyy.yyy", "remote_current_user": "admin", "remote_current_password": "password" }'


curl -X POST -H "Content-Type: application/json" http://admin:password@xxx.xxx.xxx.xxx:5984/_cluster_setup -d '{"action": "add_node", "host":"yyy.yyy.yyy.yyy", "port": "5984", "username": "admin", "password":"password"}'

curl -X POST -H "Content-Type: application/json" http://admin:password@xxx.xxx.xxx.xxx:5984/_cluster_setup -d '{"action": "finish_cluster"}'

After doing this I checked node members by follwoing command on one of my node:

http://xxx.xxx.xxx.xxx:5984/_membership

And got following response

{"all_nodes":["couchdb@localhost"],"cluster_nodes":["couchdb@yyy.yyy.yyy.yyy","couchdb@localhost"]}

After that when I tried to create new database on one of my node I got following error on dashboard:

"Create database failed: internal_server_error"

In couchDB log file following log got created:

[notice] 2017-01-18T07:53:52.884041Z couchdb@localhost 9bb13795a4 xxx.xxx.xxx.xxx:5984 xxx.xxx.xxx.xxx undefined PUT /testdb 500 ok 247

 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)