Couchbase server connection issue on 11210 port - Error: cluster object was closed

Hi All,

I have issue on couchbase connection on ottoman js ODM, please see below error logs. we test 11210 port at telnet it was running. But connection was failed and throw timeout at 11210 port, i increased connection timeout , still same error.

Error Log:
express:router:layer new ‘/’ +1ms
express:application set “port” to 3000 +12ms
couchnode:lcb:trace (confmon @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\bucketconfig\confmon.cc:300) Attempting to retrieve cluster map via CCCP +2s
couchnode:lcb:info (cccp @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\bucketconfig\bc_cccp.cc:176) Requesting connection to node localhost:11210 for CCCP configuration +2s
couchnode:lcb:debug (lcbio_mgr @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\lcbio\manager.cc:501) localhost:11210 (HE=000001BF8C0D99F0) Creating new connection because none are available in the pool +2s
couchnode:lcb:trace (lcbio_mgr @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\lcbio\manager.cc:413) localhost:11210 (HE=000001BF8C0D99F0) New pool entry: I=000001BF8C105FC0 +3ms
couchnode:lcb:info (connection @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\lcbio\connect.cc:485) localhost:11210 (SOCK=3424418e36771f09) Starting. Timeout=2000000us +3ms
couchnode:lcb:error (bootstrap @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\bootstrap.cc:198) Failed to bootstrap client=000001BF8C1C24A0. Error=LCB_ERR_TIMEOUT (201) (Last=LCB_ERR_TIMEOUT (201)), Message=Failed
to bootstrap in time +0ms
couchnode failed to connect to bucket: { [Error: LCB_ERR_TIMEOUT (201): The request was not completed by the user-defined timeout]
code: 201 } +0ms
(node:19964) UnhandledPromiseRejectionWarning: Error: cluster object was closed
at Connection.close (D:API\node_modules\ottoman\node_modules\couchbase\lib\connection.js:266:24)
at conn.connect.catch (D:API\node_modules\ottoman\node_modules\couchbase\lib\cluster.js:612:14)
(node:19964) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
couchnode:lcb:debug (lcbio_mgr @ C:\Jenkins\workspace\nodejs\couchnode\couchnode-scripted-build-pipeline\couchnode\deps\lcb\src\lcbio\manager.cc:523) localhost:11210 (HE=000001BF8C0D99F0) Request=000001BF8C105A80 has no connection… yet +995ms

My connection string:
ottoman.connect({
connectionString: dbConfig.host,
bucketName: dbConfig.bucketName,
username: dbConfig.userName,
password: dbConfig.password,
operationTimeout:3600000,
kvTimeout: 3600000,
kvDurableTimeout: 3600000,
viewTimeout: 3600000,
queryTimeout: 3600000,
analyticsTimeout: 3600000,
searchTimeout: 3600000,
managementTimeout: 3600000
});

Thanks,

Hello @Rajasekar have reached out to you on Ottoman Issues.
Couple of things
1 ) change the localhost to 127.0.0.1 ( being on windows looks like an issue with node sdk)
2) pass the timeouts as parameters in query string as a temp measure. There is a bug in nodejs that will be fixed with its next release.