Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

.NET Couchbase client (2.0 preview) does not like machine names.

2 replies [Last post]
  • Login or register to post comments
Wed, 11/30/2011 - 20:55
fuali
Offline
Joined: 11/30/2011
Groups: None

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!

Top
  • Login or register to post comments
Thu, 12/22/2011 - 04:02
mickdelaney
Offline
Joined: 12/22/2011
Groups: None

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.

Top
  • Login or register to post comments
Thu, 12/29/2011 - 19:28
ingenthr
Offline
Joined: 03/16/2010
Groups:

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

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