I am using standard code on my local machine - server is working (verified through the GUI).
I tried to use standard code (this is a snippet):
var couchbase = require(“couchbase”);
var cluster = new couchbase.Cluster(“couchbase://127.0.0.1”);
//cluster.manager(“administrator”,“password”);
var bucket = cluster.openBucket(‘beer-sample’, function(err) {
if (err) {
// Failed to make a connection to the Couchbase cluster.
throw err;
};
});
NO ERROR connection. But - if I debug console this:
cluster.connectedBuckets
Array(0) []
But if I debug this:
luster.connectingBuckets
Array(1) [Bucket]
_name:“beer-sample”
_password:""
_username:"beer-sample"
clientVersion:"2.4.1"
configThrottle:10000
connected:null
connectionTimeout:5000
durabilityInterval:100
durabilityTimeout:5000
httpAgent:Agent {domain: null, _events: Object, _eventsCount: 1, …}
lcbVersion:"2.7.5-njs"
managementTimeout:75000
n1qlTimeout:75000
nodeConnectionTimeout:2500
operationTimeout:2500
viewTimeout:75000
waitQueue:Array(0) []
proto:EventEmitter {enableN1ql: , manager: , disconnect: , …}
When I try to later access the bucket - I get an error.
ottoman.store = new ottoman.CbStoreAdapter(bucket, couchbase);
ottoman.bucket = bucket; <error
module.exports.bucket;
Error: The couchbase module version used by the application does not match Ottomans. Please explicitly pass the application couchbase module using StoreAdapter.Couchbase
.
at new CbStoreAdapter (/home/shawn/xxxxxx/DEVELOPMENT/test/node_modules/ottoman/lib/cbstoreadapter.js:33:13)
at Ottoman.set (/home/shawn/xxxxxx/DEVELOPMENT/test/node_modules/ottoman/lib/ottoman.js:55:20)
at Object. (/home/shawn/xxxxxx/DEVELOPMENT/test/app.js:23:16)
at Module._compile (module.js:621:14)
at Object.Module._extensions…js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3rd_place_medal:
I can’t tell what to do at this point.