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

Cannot Set Or Get Values In Production

12 replies [Last post]
  • Login or register to post comments
Tue, 05/22/2012 - 12:20
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

Works great on localhost (Windows 7 x64 Pro on IIS 7, setting returns result code 0), but when we try to set any keys in Production (Windows Server 2008 x64 on IIS 7) we get result code 13. Strangest part is using the console, I can see these keys being used.

1. Is there a list of result codes?
2. Is there a way to see every key and value on the server?
3. Why is it working fine locally, but not in production?

Since can't test this issue in development, we are close to abandoning the use of Couchbase and going back to Wincache.

Top
  • Login or register to post comments
Tue, 05/22/2012 - 12:46
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

$oCouchbaseConnection = new Couchbase("127.0.0.1:8091");
 
$oCouchbaseConnection->set("MyTest", "blah");
echo "<br />get code: ".$oCouchbaseConnection->getResultCode();
 
echo "<br />get value: ".$oCouchbaseConnection->get("MyTest");
echo "<br />get code: ".$oCouchbaseConnection->getResultCode();

This works fine in production:
get code: 13
get value:
get code: 13

In development:
get code: 0
get value: blah
get code: 0

Top
  • Login or register to post comments
Tue, 05/22/2012 - 12:51
ingenthr
Offline
Joined: 03/16/2010
Groups:

Let me get back in touch with you on the result codes.

Quick question, what are the software differences between the environments? Any? We'd like to work out what's different between the two.

Top
  • Login or register to post comments
Tue, 05/22/2012 - 12:53
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

Like what? I mean, other than what I described, they are identical. I mean we really work hard at keeping our development enviroments exactly like production.

Development: Windows 7 x64 Pro on IIS 7
Production: Windows Server 2008 x64 on IIS 7

Top
  • Login or register to post comments
Mon, 06/04/2012 - 08:16
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

Any update here?

Top
  • Login or register to post comments
Mon, 06/04/2012 - 09:15
ingenthr
Offline
Joined: 03/16/2010
Groups:

I was looking mostly for differences on the client library side or on the way you query the system. Which client library do you have in use, which version? I am guessing that it may be the .NET client library? If, for example, you're using the .NET 1.1 client library, there are a set of Execute* methods that return additional information about the status of the particular operation if it was unsuccessful.

See: http://www.couchbase.com/docs/couchbase-sdk-net-1.1/couchbase-sdk-net-re...

In 1.8, there is not directly a way to see every key and value on the server. One thought is that you could try installing 2.0DP on the server that you're having difficulty getting values from. This would help in two ways. First, if whatever the issue is has been resolved in the updates on the way to 2.0, we'd know that. Second, the 2.0 console has a way to pull up an arbitrary key/_id through the web console.

If neither of those, then can you gather some info by going into logs and clicking on "generate diagnostic report" in the upper right? Then compress the file and attach it to an issue at http://couchbase.com/issues ? Please send a note to matt at couchbase with the issue ID and I'll look a bit further.

Top
  • Login or register to post comments
Mon, 06/11/2012 - 16:13
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

I'm using a PHP extension DLL from Jan Lehnardt.

I'm going to try the 2.0 version right now in production (after hours.)

Top
  • Login or register to post comments
Mon, 06/11/2012 - 16:27
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

laurin1 wrote:
$oCouchbaseConnection = new Couchbase("127.0.0.1:8091");
 
$oCouchbaseConnection->set("MyTest", "blah");
echo "<br />get code: ".$oCouchbaseConnection->getResultCode();
 
echo "<br />get value: ".$oCouchbaseConnection->get("MyTest");
echo "<br />get code: ".$oCouchbaseConnection->getResultCode();

This works fine in production:
get code: 13
get value:
get code: 13

In development:
get code: 0
get value: blah
get code: 0

I just realized, that this was incorrect. This FAILS in production, evidenced by the 13 (I mistyped.)

Top
  • Login or register to post comments
Mon, 06/11/2012 - 16:30
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

ingenthr wrote:

In 1.8, there is not directly a way to see every key and value on the server. One thought is that you could try installing 2.0DP on the server that you're having difficulty getting values from. This would help in two ways. First, if whatever the issue is has been resolved in the updates on the way to 2.0, we'd know that. Second, the 2.0 console has a way to pull up an arbitrary key/_id through the web console.

Nope, does not work in 2.0 either.

Top
  • Login or register to post comments
Mon, 06/18/2012 - 04:36
kk_loke86
Offline
Joined: 04/01/2012
Groups: None

I am having the same error code 13 as well. Try to connect couchbase server with php but only able to set the value, but failed to get it back.

Top
  • Login or register to post comments
Mon, 06/18/2012 - 10:25
ingenthr
Offline
Joined: 03/16/2010
Groups:

Is this with the 1.0.4 which was just recently released kk_loke86?

Top
  • Login or register to post comments
Mon, 06/18/2012 - 10:27
laurin1
laurin1's picture
Offline
Joined: 05/17/2012
Groups: None

1.0.4?

Top
  • Login or register to post comments
Thu, 07/05/2012 - 07:55
spassas
Offline
Joined: 06/26/2012
Groups: None

I don't know if this has already been resolved, but just for reference the result codes can be found in the "temp.h" file of the libcouchbase C client library.

Cheers

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