.NET Couchbase client (2.0 preview) does not like machine names.
I am running Couchbase on a VM and set it up to run on a machine-name by following the instructions here:
http://www.couchbase.org/wiki/display/membase/Using+Membase+in+the+Cloud
I got that to work. in my web config I am pointing to the node like so:
<servers bucket="xxx" bucketPassword="xxx"> <add uri="http://[machinename]:8091/pools/default" /> </servers>
I grabbed the Couchbase 2.0 dev preview and when I try to add something I get this:
2011-11-30 22:46:35 [ERROR] 6 Membase.MembasePool - Failed to initialize the pool. - System.FormatException: An invalid IP address was specified. at System.Net.IPAddress.InternalParse(String ipString, Boolean tryParse) at System.Net.IPAddress.Parse(String ipString) at Membase.MembasePool.InitVBucket(ClusterConfig config, ISaslAuthenticationProvider auth) in C:\dev\couchbase-net-client\libs\EnyimMemcached\Membase\MembasePool.cs:line 206 at Membase.MembasePool.ReconfigurePool(ClusterConfig config) in C:\dev\couchbase-net-client\libs\EnyimMemcached\Membase\MembasePool.cs:line 139
I have used the enyim client (with the source) for previous Membase projects and corrected this in the source using a try parse for ip's so if node is configured to use host/machine name it doesn't blow up.
2 questions:
- Can you make the source for the Couchbase 2.0 Client available so I can fix this for my purposes?
- If you are not planing making the source available when can we expect a fix?
thanks!
Indeed. I filed the issue over there, but we've not updated the 2.0 client yet. Let me see if we can do that soon.
By the way, the source is available:
https://github.com/couchbase/couchbase-net-client
There was an issue for this on membase a while back.
https://github.com/enyim/EnyimMemcached/issues/83
https://groups.google.com/forum/#!topic/enyim-memcached/410bzcO95p0
maybe they've not ported it over to the couchbase 2.0 source yet.