node.js - CouchbaseError: Client-Side timeout exceeded for operation -
i running couchbase server 3.0.1, nodejs sdk. have set server 2 buckets, , no documents. opened connections via:
var dbcluster = new couchbase.cluster([my_host]); var db = dbcluster.openbucket( [my_bucket_name]);
when try execute 'db.upsert', following error:
error: couchbaseerror: client-side timeout exceeded operation. inspect network conditions or increase timeout
now strangest part, document still gets added. command executes successfully, still returns error. call gets executed fast, , not take 2.5 sec (default operation timeout).
following this: couchbase times out after few seconds have tried increasing timeout via:
db.operationtimeout = 5000;
this did not work. again call executed successfully, timeout error returned though specified timeout did not pass (the call fast, faster 5 sec).
the other support find in google groups, seems dead: https://groups.google.com/forum/#!topic/couchbase/scrtb94mj3w
i running osx yosemite 10.10.2. appreciated, not know next.
thank you,
here code reference:
var couchbase = require('couchbase'); var dbcluster = new couchbase.cluster("mylocalhostname"); var db = dbcluster.openbucket( "mybucketname", function(err){ // no errors here if(err){ console.log("can't open bucket"); throw err; } else { console.log("successfully opened bucket"); } }); db.operationtimeout = 5000; db.upsert("docname", somejson, function(err, result){ if(err){ // error here, though call executes return console.log("error: " + err); } });
so turns out problem in cluster connection. per documentation, specified connection as:
"couchbase://my.domain.com", "my.domain.com" pointed 127.0.0.7. removing "couchbase://" solved issue. connecting via:
"my.domain.com" solved problem. interestingly enough, connecting via:
"couchbase://127.0.0.7" also worked. not sure how related, , how still able update document, solved me. won't mark accepted yet, in case comes more satisfying answer.
Comments
Post a Comment