Server list from configuration and node are out of synch


#1

Hi,

I had installed couchbase 3.0.3 in one server and i want to connect to couchbase client from java code from other server using java sdk. i have done all setup and compiled the code and it compiled successfully
but when i run the java program, it is raising error

“com.couchbase.client.vbucket.VbucketNodeLocator: Critical reconfiguration error:Server list from configuration and node are out of synch”

Please help me


#2

Can you please share more information on the client version in use, some code and ideally some logs (TRACE/FINEST would be best).

Also, is your cluster stable or were you experiencing failover conditions? Did you perform a rebalance operation?


#3

Hi Daschl,

couchbase version is 3.0.3 and code is below

import java.util.List;
import java.util.concurrent.TimeUnit;
import com.couchbase.client.CouchbaseClient;
import net.spy.memcached.internal.GetFuture;
import net.spy.memcached.internal.OperationFuture;

public class MainClass {
public static final int EXP_TIME = 10;
public static final String KEY = “spoon”;
public static final String VALUE = “Hello World!”;

public static void main(String args[]) {
// Set the URIs and get a client
List uris = new LinkedList();

//Boolean do_delete = false;

// Connect to localhost or to the appropriate URI
uris.add(URI.create("http://ServerName:8091/pools"));

CouchbaseClient client = null;
try {
  client = new CouchbaseClient(uris, "default", "");

System.out.println(“Successful”);
} catch (Exception e) {
System.err.println("Error connecting to Couchbase: "
+ e.getMessage());
System.exit(0);
}
}
}

please find the logs below of commandline

C:\CouchDB>java -classpath .;couchbase-client-1.4.8.jar;netty-3.5.5.Final.jar;sp
ymemcached-2.11.6.jar;commons-codec-1.5.jar;httpcore-4.3.jar;httpcore-nio-4.3.ja
r;jettison-1.1.jar;netty-3.5.5.Final.jar MainClass
2015-05-06 09:01:20.849 INFO com.couchbase.client.vbucket.provider.BucketConfigu
rationProvider: Could bootstrap through carrier publication.
2015-05-06 09:01:20.881 INFO com.couchbase.client.CouchbaseConnection: Added {Q
A sa=pvukrtspdt01.ukroi.tesco.org/ServrName:11210, #Rops=0, #Wops=0, #iq=0,
topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2015-05-06 09:01:20.881 ERROR com.couchbase.client.vbucket.VBucketNodeLocator:
Critical reconfiguration error: Server list from Configuration and Nodes are out
of synch. causing ServerName:11210 to be removed
2015-05-06 09:01:20.881 INFO com.couchbase.client.CouchbaseClient: CouchbaseCon
nectionFactory{bucket=‘default’, nodes=[http://ServerName:8091/pools], order=
RANDOM, opTimeout=2500, opQueue=16384, opQueueBlockTime=10000, obsPollInt=10, ob
sPollMax=500, obsTimeout=5000, viewConns=10, viewTimeout=75000, viewWorkers=1, c
onfigCheck=10, reconnectInt=1100, failureMode=Redistribute, hashAlgo=NATIVE_HASH
, authWaitTime=2500}
2015-05-06 09:01:20.974 INFO com.couchbase.client.CouchbaseClient: viewmode pro
perty isn’t defined. Setting viewmode to production mode
Successful

Please check and help me


#4

Looks like opening the bucket was fine though. Does the application continue to work from there or do OPs keep failing?

Can you share FINEST logs from the code so we can inspect in greater detail what configuration is returned? Thank you!

Also, if your company has paid couchbase support you can also bring up such questions through the usual channels.