I am trying to build the Hello World sample for CouchBase on Windows, but I am unable to save anything.
When I tried the ExecuteStore() method it returned IStoreOperationResult with the message “Failed to locate node”.
here is my app.config file -
<?xml version="1.0"?>
CouchBase console says everything is working fine.
Usually that error indicates the client library can’t get it’s configuration from the cluster.
I’d recommend trying to turn on/up logging, and you’ll probably see more. The configuration fetching happens in another thread, so most feedback is available via the logging. See the docs for more on logging.
Many development environments just set it to ‘127.0.0.1’ or ‘localhost’, which wouldn’t allow clustering but makes development locally more reliable as you move a laptop around.
After running into some problems with accessing Couchbase Server 2.0 with the .net client .NET 1.1 , I was forced to try again with the .NET 1.2 client
This time I took the official NuGet Package for .NET client (which is still 1.1), replaced the .dlls within with the downloaded .NET 1.2 versions and loaded that Package into my environment.
That did the trick for me. Without any changes in my code, now everything works fine. Problems vanished.
Thought this might help other people with problems using the .NET 1.2 client on Couchbase_2.0_preview4
I have this same problem. I’ve tried so many different ways of resolving it, I’m not sure where I’m even at
I’m using 1.8.1 community edition
I’m using .net Enyim 2.12.0 and Couchbase 1.1.6 - I installed these with NuGet
When I browse to the uri in my web.config file, the results are as expected.
However, when I try to store data I get “Failed to locate node”
Any troubleshooting suggestions would be appreciated.
Hi guys, I have noticed the same and in my case i had downloaded the source for each depended library of couchbase .net 1.2 and noticed that the distribution .dll’s produce a different result than if you compile source. I think they are using a very old version of Newtonsoft.Json library which may have been broken in the latest source code…
I’m having the same experience as optimator (“Failed to locate node”, CB 1.8 on CentOS, .net lib 1.1.6). My config is:
I can browse to the resource in a browser from the client host. Running tcpdump on the CB server is silent, telling me that the .net client lib isn’t sending one packet to the server (though I see traffic of course when navigating with the browser). Firewalls are disabled on both client and server hosts.
Browsing the source of the client lib, it appears that a node for the given key can’t be identified in the server pool. I can’t successfully build or debug the lib, though, so the trail goes cold.
Update: I can build/debug the client lib now, enough to see that my pool is initialized with a NotFoundLocator, which does what it says
Adding a locator line in my couchbase section seemed promising:
…
… or
… but in the end has no effect; the NotFoundLocator is still configured.
The NotFoundLocator is generally the result of the client’s not being able to get the config information from the cluster (i.e., the handshake starting with http://192.168.202.163:8091/pools fails). Your config looks right and you shouldn’t need to change the locator element.
Thanks for sharing your solution. I’ve created an issue at http://www.couchbase.com/issues/browse/NCBC-133 to separate those two timeout values. The WebClient will almost always be slower, though 11 seconds seems to be slower than expected.
I am trying to store keys in couchbase on windows, bt i am not able to save all keys.
Its not storing more 250 keys at a time.
here is my web.config file