Reputation: 3842
Cloudant Data Layer Local Edition version :- 1.0.0.3 Linux Distribution and version :- CentOs 6.6 I recently installed Cloudant data layer local edition 1.0.0.3 . Configured it properly (1 load balancer and 3 data node)and launched dashboard on browser.
Then I put credentials for admin account and got entered in dashboard. Clicked on “Add New Database “, It asked for enter the name of database and as soon as I entered name and pressed create button it showed error :database does not exist.
Also every time I refresh the page it showed different-different databases in UI. I tried to get all databases from terminal as well with curl command . I have 3 data nodes in my cluster and I suppose to get same databases whether I fired curl command to any of my data node as they syn with each other but I got different–different output .
Commands Snippet
[root@******1983 repo]# curl -X GET -u admin:***** http://******2031:5984
["_users","first_testing_database","metrics_app","t1"]
[root@******1983 repo]# curl -X GET -u admin:***** http://*****2032:5984
["first_data","metrics","metrics_app","new","stats"]
[root@8****1983 repo]# curl -X GET -u admin:***** http://*****2033:5984
["metrics_app"]
Even though, I managed to create a document in one of my created database but when i tried to get same document from curl command it says(running subsequently 3 times) :-
The data
After it fetched the data, if I ran the command again then it would repeat the above sequence in a pattern.
Commands Snippet
[root@*****1983 log]#curl -X GET http://*******/try/c3cd00e3211b9a4de4091da7c9000d5c
{"error":"not_found","reason":"missing"}
[root@*****1983 log]# curl -X GET http://*******/try/c3cd00e3211b9a4de4091da7c9000d5c
{"error":"not_found","reason":"Database does not exist."}
[root@*****1983 log]# curl -X GET http://*******/try/c3cd00e3211b9a4de4091da7c9000d5c
{"_id":"c3cd00e3211b9a4de4091da7c9000d5c","_rev":"1-9bc8307931d018808037c1c58fc7d1ad","designation":"software eng.","stream":"analytics"}
[root@****1983 log]# curl -X GET http://********/try/c3cd00e3211b9a4de4091da7c9000d5c
{"error":"not_found","reason":"missing"}
[root@****1983 log]# curl -X GET http://********/try/c3cd00e3211b9a4de4091da7c9000d5c
{"error":"not_found","reason":"Database does not exist."}
[root@*****1983 log]# curl -X GET http://*******/try/c3cd00e3211b9a4de4091da7c9000d5c
{"_id":"c3cd00e3211b9a4de4091da7c9000d5c","_rev":"1-9bc8307931d018808037c1c58fc7d1ad","designation":"software eng.","stream":"analytics"}
Upvotes: 0
Views: 706
Reputation: 26
It sounds like your nodes don't know of each other. You probably missed this step during installation: "Once the installation and configuration is completed on all nodes, re-run configure.sh on the first database node. This step joins all the nodes to create a cluster of the database nodes. It also creates the metrics database that is utilized by the Metrics application. "
Upvotes: 1