Memcache / Membase配置失败,“无法初始化池。 - System.FormatException:指定了无效的IP地址”

时间:2012-01-05 19:57:10

标签: memcached membase

我有membase服务器设置,并且我成功使用了一个memcache存储桶,但我无法使用一个数据库存储桶。

我的配置很简单

<membase>
<servers bucket="membase" retryCount="3">
  <add uri="http://192.168.1.250:8091/pools/default" />
</servers>

相同的设置工作正常,运行在membase服务器上的memcache。

我不确定池/默认位,因为在membase gui中没有提到它,但所有文档都说使用它。

完整的诊断日志

2012-01-05 11:49:06 [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 Membase.MembasePool.InitVBucket(ClusterConfig config, ISaslAuthenticationProvider auth) i n d:\d\repo\EnyimMemcached\Membase\MembasePool.cs:line 206
at Membase.MembasePool.ReconfigurePool(ClusterConfig config) in d:\d\repo\EnyimMemcached\Membase\MembasePool.cs:line 139
2012-01-05 11:49:06 [DEBUG] 6 Membase.MessageStreamListener - Processing message: {"name":"membase","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"uri":"/pools/default/buckets/membase","streamingUri":"/pools/default/bucketsStreaming/membase","flushCacheUri":"/pools/default/buckets/membase/controller/doFlush","nodes":[{"replication":1.0,"clusterMembership":"active","status":"healthy","hostname":"WIN-8CSOET2IERN.netgear.com:8091","clusterCompatibility":1,"version":"1.7.1.1","os":"windows","ports":{"proxy":11211,"direct":11210}}],"stats":{"uri":"/pools/default/buckets/membase/stats","directoryURI":"/pools/default/buckets/membase/statsDirectory","nodeStatsListURI":"/pools/default/buckets/membase/nodes"},"nodeLocator":"vbucket","vBucketServerMap":{"hashAlgorithm":"CRC","numReplicas":0,"serverList":["WIN-8CSOET2IERN.netgear.com:11210"],"vBucketMap":[[[LOTS OF ZEROES}}

1 个答案:

答案 0 :(得分:1)

好的,更改ip地址'是couchbase的一个问题。

简而言之:

http://www.couchbase.com/forums/thread/issues-dhcp-development-laptop

service_stop.bat
service_unregister.bat
service_register.bat <new-dotted-quad-IP-address>