Hi everyone.
I am facing a trouble with my Couchbase server EC2 instance.
The Couchbase server version is:
Community Edition 6.0.0 build 1693
Since Friday, 27 I am trying to get a document outside the EC2 instance but timeout always are happening. I already check if all ports are open and it’s ok.
I get the feedback of the connection as the code bellow:
this.couchbase = require('couchbase');
this.cluster = new this.couchbase.Cluster('couchbase://db.hostname/');
this.cluster.authenticate('name', 'password');
this.bucket = this.cluster.openBucket('bucketname');
this.bucket.operationTimeout = 120 * 1000;
this.bucket.n1qlTimeout = 120 * 1000;
this.bucket.on('connect', function (err) {
if (err){
console.log("Error connecting: ", err)
} else
console.log('Created database connection');
});
this.bucket.on('error', function(err) {
console.log('CONNECTION ERROR:', err);
});
but always when I run the GET DOCUMENT code, it not run outside the instance:
this.bucket.get(docId, function(err, res) {
if (err){
reject(err);
} else{
resolve(res.value);
}
})
All the comands works very well in localhost.
Anyone knows how can I solve it?
Thanks for all help