Frequent Error Codes. Something wrong with my code?
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?
Which sdk are you using?
php 1.0 although i'm not connecting to port 8091 yet and still using moxi through 11211
thanks!
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
--
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
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
--
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
--
$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.
Hi Eric,
wich problems do you have with the installation? And on which platform?
Cheers
Jan
--
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
Are these documented error codes?