Couchbase: Cannot perform operations on a shutdown bucket

偶尔善良 提交于 2019-12-01 01:23:06

Resolved the issue by increasing the timeout: myBucket.operationTimeout = 120 * 1000;

This error may also happen when there is a password set for the specified bucket.

To verify that open the Couchbase Console -> Navigate to the Data Buckets tab -> Drop-down your bucket -> Click the Edit button -> The third section in the popup dialog is Access Control, which has a password textbox.

Hope this helps,

György

You need to check the compatibility between the couchbase server version and the couchbase npm package version.

On my machine:

  1. The couchbase server was 4.5.1-2844 Enterprise Edition (build-2844).
  2. The couchbase npm package version was 4.6.2.

My soluton was simply downgrading the couchbase npm package back to 2.5.1 with: npm i --save couchbase@2.5.1.

Or you can upgrade the couchbase server version (haven't tested).

I got the error in 2019, I resolved it by authenticating my cluster as now authorization should only be granted at cluster level but no need for bucket level authorization.

" cluster.authenticate('usernameForCluster', 'passwordForCluster'); "

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!