Cannot Set Or Get Values In Production
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.
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.
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
Any update here?
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.
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.)
$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.)
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.
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.
Is this with the 1.0.4 which was just recently released kk_loke86?
1.0.4?
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
This works fine in production:
get code: 13
get value:
get code: 13
In development:
get code: 0
get value: blah
get code: 0