Client-Side timeout exceeded for operation

2,539 views
Skip to first unread message

Steven Barlow

unread,
May 28, 2014, 2:54:24 AM5/28/14
to couc...@googlegroups.com
What would be causing the NodeJS SDK to repeatedly respond with: [Error: Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout] code: 23 for all view operations?

I have a test server at http://ec2-54-83-43-209.compute-1.amazonaws.com:8092/test that demonstrates this behaviour. I'm pretty sure I've opened all the requisite ports. 

For example


responds fine, but attempting the equivalent operation using the Couchbase SDK fails as described above.

var connection;
var config = {
bucket: 'test'
};

var couchbase = require('couchbase');
connection = new couchbase.Connection(config);
connection.getDesignDoc('test', function(err, result){
if (err) {
console.log('Error', err);
} else {
console.log(result);
}
});

I can't fathom this at all, it seems to me that the Couchbase SDK simply doesn't work. In fact I've actually managed to bypass the Couchbase SDK altogether (using dscape/nano) and hitting the server on 8092 using regular CouchDB style REST requests, and that works fine.

Cheers,
Steven





Matt Ingenthron

unread,
May 28, 2014, 3:13:47 AM5/28/14
to couc...@googlegroups.com
Hi Steven,

What version of the node client are you running?

Did you install libcouchbase directly, or is it the embedded one (will depend on OS to some degree)?

Also, with the latest libcouchbase, you can set an environment variable and get additional logging.

Thanks!

Matt

--
You received this message because you are subscribed to the Google Groups "Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchbase+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Matt Ingenthron
Couchbase, Inc.

Steven Barlow

unread,
May 28, 2014, 4:15:37 AM5/28/14
to couc...@googlegroups.com
Matt,

I'm using the latest couchbase SDK (1.2.4) installed with npm install couchbase. Presumably then, libcouchbase is installed bundled as part of that installation.

I'm running on OSX, and the server is the latest Couchbase Server release 2.5.1 running on Amazon Linux AMI.

How do I go about enabling logging on libcouchbase?

Cheers,
Steven

Steven Barlow

unread,
May 29, 2014, 9:56:29 PM5/29/14
to couc...@googlegroups.com
Matt,

Is it perhaps possible to get one of the Couchbase JS team to perform a quick test trying to hit my server (http://ec2-54-83-43-209.compute-1.amazonaws.com:8092/test) with the JS SDK 1.2.4?

As far as I can ascertain, the JS SDK is not working at all after a simple npm install (which seems absurd), but I've replicated on multiple environments. Is there something about my server instance, or is JS SDK indeed broken?

This can be as simple as:

var couchbase = require('couchbase');
new couchbase.Connection({
}).stats(function(err, result){
if (err) {
console.log('Error', err);
} else {
console.log(result);
}
});


Cheers,
Steven

On Wednesday, 28 May 2014 17:13:47 UTC+10, Matt Ingenthron wrote:

Matt Ingenthron

unread,
May 29, 2014, 10:13:49 PM5/29/14
to couc...@googlegroups.com
Hi Steven, 

I just tried it myself and sure enough, I got the same thing.  Let me ask someone to have a look at it.

Thanks,

Brett Lawson

unread,
May 29, 2014, 10:18:59 PM5/29/14
to couc...@googlegroups.com
Hey Steven,

It looks like your server does not have the prerequisite ports opened.  What ports have you opened on your firewall?  I can't connect to your server, but any other server works fine, both on and off my own network.

Cheers, Brett

Steven Barlow

unread,
May 30, 2014, 2:57:30 AM5/30/14
to couc...@googlegroups.com
Brett,

I'll check the full list of open ports later, but it's basically all those in the default Couchbase AMI security group (as per Couchbase documentation too). I can certainly CURL and get responses on 8092.

Which ports should be open for this to work?

Cheers,
Steven
You received this message because you are subscribed to a topic in the Google Groups "Couchbase" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/couchbase/scrTb94Mj3w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to couchbase+...@googlegroups.com.

Steven Barlow

unread,
May 30, 2014, 9:19:25 AM5/30/14
to couc...@googlegroups.com
Brett,

I've tried opening various ports (including all of them!), but nothing seems to make any difference. At the moment, I have open:

22tcp0.0.0.0/0
4369tcp0.0.0.0/0
4984tcp0.0.0.0/0
8080tcp0.0.0.0/0
8088tcp0.0.0.0/0
8091tcp0.0.0.0/0
8092tcp0.0.0.0/0
11209tcp0.0.0.0/0
11210tcp0.0.0.0/0
11211tcp0.0.0.0/0
11214tcp0.0.0.0/0
11215tcp0.0.0.0/0
18091tcp0.0.0.0/0
18092tcp0.0.0.0/0
21100-21199tcp0.0.0.0/0

This seems to be consistent with the information here:


Cheers,
Steven

Brett Lawson

unread,
Jun 21, 2014, 12:55:37 AM6/21/14
to couc...@googlegroups.com
Hey Steve,

Would you kindly attempt to provide your config as such (without the http scheme):
var config = {
bucket: 'test'
};

Cheers, Brett

Jason Broughton

unread,
Jul 21, 2014, 9:26:22 AM7/21/14
to couc...@googlegroups.com
Hi Guys
Did you find any resolution for this? Im getting the same thing. Im trying to insert 5,000 records with setMulti on Node.js.
Cheers
Jason
 

jahanzaib...@gmail.com

unread,
Jun 18, 2015, 6:53:04 AM6/18/15
to couc...@googlegroups.com
Hi Steven,

Did you find any solution to this problem. I am facing same problem and unable to found any soltion.

Steven Barlow

unread,
Jun 18, 2015, 10:10:04 AM6/18/15
to couc...@googlegroups.com
No, sorry, in the end I never got to the bottom of this. Since I now access Couchbase via sync gateway, it has ceased to be an issue for me.
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/couchbase/scrTb94Mj3w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to couchbase+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages