Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Frequent Error Codes. Something wrong with my code?

10 replies [Last post]
  • Login or register to post comments
Wed, 02/22/2012 - 12:11
ericbrown
Offline
Joined: 09/08/2011
Groups: None

Quick questions on errors I am getting.

I frequently get the following error code from memcached/couchbase
Error 16 NOT FOUND
But when I look up the key myself I get a value returned. Any reason for this type of behavior? I have multiple calls to couchbase in my app and even though I call the error code right after I execute a get or add/replace I'm wondering if this is an error code for a previous / parallel call?

I also intermittently get the following even though the server is online and other requests complete successfully. This happens when connecting to Couchbase locally or on a remote machine.

Error 47 SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY

Am I invoking Couchbase incorrectly?

Top
  • Login or register to post comments
Mon, 02/27/2012 - 11:10
ericbrown
Offline
Joined: 09/08/2011
Groups: None

Are these documented error codes?

Top
  • Login or register to post comments
Fri, 03/02/2012 - 20:41
mikew
Offline
Joined: 03/14/2011
Groups:

Which sdk are you using?

Top
  • Login or register to post comments
Sat, 03/03/2012 - 11:34
ericbrown
Offline
Joined: 09/08/2011
Groups: None

php 1.0 although i'm not connecting to port 8091 yet and still using moxi through 11211

thanks!

Top
  • Login or register to post comments
Mon, 03/05/2012 - 02:33
jan
Offline
Joined: 02/15/2011
Groups: None

Hi Eric,

thanks for writing. Can you share some of your code? With PHP SDK 1.0.0 it is not possible to talk to raw memcached servers. That could explain the errors :)

We are looking into making that a future feature though, but there's no timeline for that yet.

Cheers
Jan
--

Top
  • Login or register to post comments
Tue, 03/06/2012 - 12:57
ericbrown
Offline
Joined: 09/08/2011
Groups: None

to be clear, i have not updated my code to use the php sdk, i'm still using my standard memcached install.

 

$new_range = ($this->CI->cacher->replace($key,$this->octet_ranges[$first_octet]))?:$this->CI->cacher->add($key,$this->octet_ranges[$first_octet]);
                if(!$new_range){
                    // Write Error to CI Log
                    $memcached_result_code = $this->CI->cacher->get_raw_result();
                    $memcached_result_message = $this->CI->cacher->get_raw_message();
                    log_message('error','Method: ' . __METHOD__ . ' Line: ' . __LINE__ .' Memcached Error Code: ' . $memcached_result_code .' Memcached Error Message: ' . $memcached_result_message .  '  Error -> Did not store traffic source range for octet ' . $first_octet . ' key: ' . $key . ' ' . print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS),1));
 
                }

 

Example error:

 

ERROR - 2012-03-06 19:50:42 --> Method: Traffic_source_range::set_octet_ranges Line: 138 Memcached Error Code: 47 Memcached Error Message: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY  Error -> Did not store traffic source range for octet 166 key: traffic_source_octet_ranges_166

Top
  • Login or register to post comments
Tue, 03/06/2012 - 14:47
jan
Offline
Joined: 02/15/2011
Groups: None

Hey Eric,

can you show the part that connects to Couchbase? And just to be clear, you are using ext/memcached + moxi to connect to Couchbase Server?

Also, if you could try the new SDK, that'd be great :)

Cheers
Jan
--

Top
  • Login or register to post comments
Tue, 03/06/2012 - 14:48
jan
Offline
Joined: 02/15/2011
Groups: None

Hey Eric,

can you show the part that connects to Couchbase? And just to be clear, you are using ext/memcached + moxi to connect to Couchbase Server?

Also, if you could try the new SDK, that'd be great :)

Cheers
Jan
--

Top
  • Login or register to post comments
Tue, 03/06/2012 - 14:54
ericbrown
Offline
Joined: 09/08/2011
Groups: None

$this->mc = new Memcached;
        if (!count($this->mc->getServerList())) {
$slist = = array(
	'cbase01' => array(
			'host'			=> 'cbase01',
			'port'			=> '11211',
			'weight'		=> '1',
 
		),
        'cbase02' => array(
			'host'			=> 'cbase02',
			'port'			=> '11211',
			'weight'		=> '1',
		),
        'cbase03' => array(
			'host'			=> 'cbase03',
			'port'			=> '11211',
			'weight'		=> '1',
		),
 
        'cbase04' => array(
			'host'			=> 'cbase04',
			'port'			=> '11211',
			'weight'		=> '1',
		),
 
        'cbase05' => array(
			'host'			=> 'cbase05',
			'port'			=> '11211',
			'weight'		=> '1',
		)
);
 
if(!$this->mc->addServers( $slist )){
                    $memcached_result_code = $this->get_raw_result();
                    $memcached_result_message = $this->get_raw_message();
                    log_message('error','Method: ' . __METHOD__ . ' Line: ' . __LINE__ .' Memcached Error Code: ' . $memcached_result_code .' Memcached Error Message: ' . $memcached_result_message .  ' Error -> Multiple Servers Not Added');
                }
}

Correct we are using ext/memcached + moxi to connect to Couchbase Server. I'd like to switch to the SDK at some point once I can get it to install correctly.

Top
  • Login or register to post comments
Tue, 03/06/2012 - 14:55
jan
Offline
Joined: 02/15/2011
Groups: None

Hi Eric,

wich problems do you have with the installation? And on which platform?

Cheers
Jan
--

Top
  • Login or register to post comments
Tue, 03/06/2012 - 15:22
ericbrown
Offline
Joined: 09/08/2011
Groups: None

Linux dev-copilot 2.6.34.7-56.40.amzn1.x86_64 #1 SMP Fri Oct 22 18:48:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

'./configure' --with-libdir=lib64 --with-openssl --with-mysql --with-mysqli --with-pdo-mysql --with-gd --enable-fpm --with-mcrypt --with-pic --enable-mbstring --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-config-file-path=/etc/ --with-layout=GNU --with-freetype-dir=/usr --enable-gd-native-ttf --with-gettext

/usr/bin/ld: warning: libssl.so.6, needed by /usr/lib64/libssh2.so.1, may conflict with libssl.so.10
/usr/bin/ld: warning: libcrypto.so.6, needed by /usr/lib64/libssh2.so.1, may conflict with libcrypto.so.10
ext/standard/info.o: In function `php_print_gpcse_array':
/home/jrussell/src/php-5.3.6/ext/standard/info.c:149: undefined reference to `executor_globals'
ext/standard/info.o: In function `php_print_info':
/home/jrussell/src/php-5.3.6/ext/standard/info.c:975: undefined reference to `executor_globals'
/home/jrussell/src/php-5.3.6/ext/standard/info.c:906: undefined reference to `sapi_globals'
/home/jrussell/src/php-5.3.6/ext/standard/info.c:680: undefined reference to `sapi_globals'
/home/jrussell/src/php-5.3.6/ext/standard/info.c:885: undefined reference to `sapi_globals'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker