Couchbase Questions: C SDK

Have a Question? Get it answered by our community

Damian's picture
Asked 11 months 6 days ago

build couchview on Linux

How do I build libcouchbase/example/yajl/couchview on Linux?
The other examples builds from the git clone.

I build yajl from its git clone.

Damian's picture
Asked 11 months 1 week ago
Latest activity 9 months 2 weeks ago

couchview.c example on windows

Did anyone succeed in building couchview.c under Windows?

#include is causing problems since it does not exist on Windows.

I am using Visual Studio 2008, libcouchbase and yajl from GitHub.

here are some of by errors:

marcoeg's picture
Asked 11 months 1 week ago
Latest activity 11 months 6 days ago

trying to use libevent

I am having some problems in using libevent using the application event loop. Couchbase lib version 2.0.6.

Please clarify that both libcouchbase and libcouchbase_libevent need to be linked.

I am getting the warning:

[warn] event_base_loop: reentrant invocation. Only one...

atm188's picture
Asked 12 months 1 day ago
Latest activity 12 months 1 day ago

Get operation timeout 0x17

I am actually quite excited about deploying Couchbase and I am doing some tests on Couchbase cluster. However, I am now stuck and wonder if anyone here encountered similar problem.

I have written a simple client application using C SDK 2.0 and put them on two identical CentOS client...'s picture
Asked 12 months 3 days ago
Latest activity 11 months 3 weeks ago

lcb_create as a Singleton instance

Hey there,

We are using Couchbase cluster for a high-load ad-serving system.

thousands of HTTP requests are coming to our load balancer in a second.
Every HTTP request is handled by one of our application server (which is web server with couchbase C client)

We have...

tttzhang2000's picture
Asked 1 year 3 days ago
Latest activity 1 year 3 days ago

Cannot connect to bucket use bucket name as username

Hi! I create a two server cluster and created a memcached bucket called cachedcontext through admin UI. And I created it with password. I thought by default when I connect to the system, I should use bucket name as the username. But it won't let me. I tried to use couchbase-cli to change...

frank.s's picture
Asked 1 year 1 week ago
Latest activity 1 year 6 days ago

bug in iofactory.c

The routine "options_from_info" does not preserve the "cookie" field when a version 0 "struct lcb_create_io_ops_st" is passed to lcb_create_io_ops().

I began experiencing segmentation faults when I began using libcouchbase 2.1.0 that were not present when I used version 2.0.7. I tracked...

zzy55555's picture
Asked 1 year 2 weeks ago
Latest activity 1 year 2 weeks ago

observe callback

hello, i use c sdk.
execute lcb_observe, observe_callback be executed three times, why?
and lcb_observe_resp_t.v.v0.status are differents, but the last value is LCB_OBSERVE_FOUND always.
actually the key has been deleted.

mikearrgh's picture
Asked 1 year 1 month ago
Latest activity 11 months 1 week ago

What is the right way of reconnecting upon initial connect error?

If couchbase server is down at the time of first lcb_connect call then libcouchbase will not automatically reconnect.

Right now I use workaround, by issuing another call to lcb_connect after some time (when server is possibly back again). It helps, but there are problems:

1. No...

bateau020's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

exptime and append

Found behaviour that is somewhat strange.

do a set, with exptime 20
wait 1 sec
do a touch with exptime 2, overriding the previous exptime
wait 3 secs
the document is no longer there, and that looks like wanted behaviour....