[OpenSIPS-Devel] Couchbase Module Bug

Kneeoh kneeoh at yahoo.com
Thu Jan 31 16:33:13 CET 2013


Hello. I'm presently running off of trunk: Server:: OpenSIPS (1.10.0dev-notls (x86_64/linux))

I've got the couchbase module loaded and have the couchbase bucket set to listen on a specific port with no authentication. I am attempting to use cache_fetch to test queries to the database. However, I think there are still some bugs in this module. I'm only doing something very basic for testing as illustrated below. I'm using one AVP as a key to get a value from couchbase and shove it in a second AVP, if this succeeds, I'm simply logging a message for now. It looks like there may be a bug as the key does exist, additionally it looks like there's some sloppy logging as I'm performing a GET and the second log is complaining about STORING a Key. Any insight/help on this would be appreciated, i'm interested to be involved with couchbase testing / feedback.

/// Config Snips ///

#### COUCHBASE module
loadmodule "cachedb_couchbase.so"
modparam("cachedb_couchbase", "cachedb_url","couchbase:bucket://10.1.2.2:6369/")

$avp(test1) = '';
$avp(test2) = ''

if (!cache_fetch("couchbase:bucket","$avp(test1)",$avp(test2))) {

                xlog("L_INFO", "NOTHING FOUND IN COUCHBASE FOR KEY: $avp(test1)\n");

        } else {

                xlog("L_INFO", "VALUE: $avp(test2) FOUND IN COUCHBASE\n");

        }

/// Debug Log Output Level 3 ///

Jan 30 21:34:19 osipscbdev /usr/local/sbin/opensips[22357]: ERROR:cachedb_couchbase:couchbase_get_cb: Failure to get 123456
Jan 30 21:34:19 osipscbdev /usr/local/sbin/opensips[22357]: ERROR:cachedb_couchbase:couchbase_get: Failed to store the key
Jan 30 21:34:19 osipscbdev /usr/local/sbin/opensips[22357]: NOTHING FOUND IN COUCHBASE FOR KEY: 123456
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20130131/eef8f81a/attachment-0001.htm>


More information about the Devel mailing list