I get ‘Operation timed out’ error when running the following function:
db.get(key, value, function (err, result) {
console.log(err);
});
db.set(key, value, function (err, result) {
console.log(err);
});
I can save and read documents from the buckets in the ‘locahost:8091’, but I get the ‘operation timed out’ error from the aws-ec2 server. There is no error from the couchbase.Connection() function.
Probably a network issue between your application and Couchbase cluster. Have you checked that all necessary ports are opened between these 2 components, see:
Any new suggestions for the ‘Operation timed out’ error? My test app run successfully talking to the local couchbase server and talking to the remote (ec2) couchbase server from OpsWorks. It is just failed talking to the remote (ec2) couchbase server on my local machine.
PS: I use couchbase v2.2.0 and Linux v12.04 on a virtual machine.