Couchbase: Cannot perform operations on a shutdown bucket

前端 未结 5 1013
南方客
南方客 2021-01-06 12:06

I am getting this error when try to insert 2M objects via node.js into Couchbase. 1M works fine.

C:\\Users\\Administrator\\Desktop\\node_modules\\couc

5条回答
  •  一生所求
    2021-01-06 12:13

    You need to authenticate using USERNAME and PASSWORD, incase you setup a custom cluster. So, in the code ...

    var myCluster = new Couchbase.Cluster('couchbase://10.0.0.103,10.0.0.102,10.0.0.101,');
    myCluster.authenticate('Administrator', 'adminadmin'); // Add this credential
    
    var myBucket = myCluster.openBucket('rre');
    

    By default, the USERNAME is Administrator and PASSWORD will be the cluster password(adminadmin, in my case).

    P.S.-This solution is in particular to Error: cannot perform operations on a shutdown bucket

提交回复
热议问题