couchbase

ImportError: No module named couchbase._libcouchbase

≯℡__Kan透↙ 提交于 2020-01-06 02:16:26
问题 This only happens for me in Travis under the pypy build. Here's the exact error string: Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "app_main.py", line 581, in run_it File "<string>", line 1, in <module> File "tests/test_pycouchbase.py", line 15, in <module> from pycouchbase.utils import * File "pycouchbase/__init__.py", line 8, in <module> from .connection import Connection File "pycouchbase/connection.py", line 3, in <module> from couchbase.bucket

Couchbase 4 beta “ORDER BY” performance

无人久伴 提交于 2020-01-06 01:30:16
问题 I have one question about performance of "ORDER BY" in Couchbase 4 Beta (Ubuntu 64bits). I create a Bucket "testing" and a primary index: CREATE PRIMARY INDEX `testing-idx` ON `testing` USING GSI; And a second index: CREATE INDEX testing_field_value_idx ON `testing`(field_value) USING GSI In my bucket I have items such as: { "type": "entry", "field_name": "field-testing", "field_value": "1 bla bla bla bla bla bla bla bla" }, { "type": "entry", "field_name": "field-testing", "field_value": "2

how to query on particular keys in couchbase through java client?

隐身守侯 提交于 2020-01-05 10:13:58
问题 I am new to CouchBase. I have few simple documents as : 1. { "docType": "DeviceData", "id": "57 0F 75 00 C8 0B@2013-06-26 23:59:38.979", "time": 1372271378979, "group": "London" } 2. { "docType": "DeviceData", "id": "57 0F 75 00 C8 0B@2013-06-27 10:02:46.197", "time": 1372307566197, "group": "Bristol" } 3. { "docType": "DeviceData", "id": "57 0F 75 00 C8 0B@2013-06-27 10:03:36.4", "time": 1372307616400, "group": "Bristol" } I have requirement to query on group and time. for example I want to

Invalid ELF header Node js with couchbase db

一笑奈何 提交于 2020-01-05 10:05:33
问题 I've seen a handful of posts about this issue but the results all seem to be specific to the users configuration. I'm using couchbase db with a express js server. When I run the code locally (windows) it works fine. The database it self is hosted on a linux server. When I deploy the code to our testing environment ( linux ), I'm getting this error when I try to run "node server.js": /var/www/html/BTRnode/node_modules/couchbase/node_modules/bindings/bindings.js:83 throw 8 Error: /var/www/html

Couchbase network error when using get & set in bucket.js

﹥>﹥吖頭↗ 提交于 2020-01-05 09:23:32
问题 I have this simple js script: var cb = require('couchbase'); var bucket; var connectionSettings = { 'user':'test-bucket', 'password':'test', 'hosts':['localhost:8091'], 'bucket':'test-bucket' }; cb.connect(connectionSettings, function(e, bucket) { if (e) { errorHandler('connect', e); } else { console.log('Connection established!'); bucket.get('testObject', function(e, doc) { if(e) { errorHandler('get', e); } else { console.log(doc); } }); } }); function errorHandler(from, e) { console.log(

Couchbase network error when using get & set in bucket.js

一笑奈何 提交于 2020-01-05 09:23:32
问题 I have this simple js script: var cb = require('couchbase'); var bucket; var connectionSettings = { 'user':'test-bucket', 'password':'test', 'hosts':['localhost:8091'], 'bucket':'test-bucket' }; cb.connect(connectionSettings, function(e, bucket) { if (e) { errorHandler('connect', e); } else { console.log('Connection established!'); bucket.get('testObject', function(e, doc) { if(e) { errorHandler('get', e); } else { console.log(doc); } }); } }); function errorHandler(from, e) { console.log(

Memcached::getStats not working with Couchbase

随声附和 提交于 2020-01-05 08:49:47
问题 I recently set up a server that I'm running Apache, PHP, and Couchbase on. However, I've been having problems testing the Couchbase installation. In the past, the way I would test that everything is working is with a simple script to run getStats on Couchbase: <?php $memcache = new Memcached(); $memcache->addServer('127.0.0.1', 11211); $result = $memcache->getStats(); print_r($result); ?> This used to return the normal array of statistics. Lately, though, it doesn't return anything and there

Memcached::getStats not working with Couchbase

ⅰ亾dé卋堺 提交于 2020-01-05 08:49:16
问题 I recently set up a server that I'm running Apache, PHP, and Couchbase on. However, I've been having problems testing the Couchbase installation. In the past, the way I would test that everything is working is with a simple script to run getStats on Couchbase: <?php $memcache = new Memcached(); $memcache->addServer('127.0.0.1', 11211); $result = $memcache->getStats(); print_r($result); ?> This used to return the normal array of statistics. Lately, though, it doesn't return anything and there

CouchDB / Couchbase view ordered by number of keys

梦想与她 提交于 2020-01-05 08:03:48
问题 I'm trying to write a view which shows me the top 10 tags used in my system. It's fairly easy to get the amount with _count in the reduce function, but that does not order the list by the numbers. Is there any way to do this? function(doc, meta) { if(doc.type === 'log') { emit(doc.tag, 1); } } _count As a result I'd like to have: Tag3 10 Tag1 7 Tag2 3 ... Instead of Tag1 7 Tag2 3 Tag3 10 Most importantly, I do not want to transfer the full set to my application server and handle it there. 回答1

Status 403 : SG Wrong User while using Couchbase

偶尔善良 提交于 2020-01-05 03:48:11
问题 I'm sending a POST request to add Document to Couchbase Server via Sync Gateway Server. I'm using serviceconfig.json, similar to link. server key in "databases" contains a link to my Couchbase Server (http://localhost:8091). While firing the POST request, it shows a response shown below. Also, I have added the logs below, 404 no such database "fineract-cn" 400 invalid database name "favicon.ico" 回答1: The response indicate you are not posting a doc with a proper user authentication. You need