Re: problems with java couchbase library

1,516 views
Skip to first unread message

Tugdual Grall

unread,
Jun 11, 2013, 6:23:50 AM6/11/13
to couc...@googlegroups.com
Hello Pablo,

Can you please give more information about your environment:

1- Which SDK are you using (exact release)?

2- Which version of the Server?  
    - what is the configuration of your bucket? (SASL password,  bucket name)

3- Share some code snippet ? 
    - especially the connection part


Regards
Tug
@tgrall

On Tuesday, June 11, 2013 2:08:15 AM UTC+2, Pablo Nebrera wrote:
Hello 

I am getting this error:

2013-06-10 23:59:35.903 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=0}
2013-06-10 23:59:35.904 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@4cbf45af
2013-06-10 23:59:35.904 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=8}
2013-06-10 23:59:35.904 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo05/192.168.106.205:11210
2013-06-10 23:59:35.907 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-10 23:59:35.907 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-10 23:59:35.908 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-10 23:59:35.908 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation

What can I do ?

Thanks


Pablo Nebrera

Pablo Nebrera

unread,
Jun 11, 2013, 6:38:57 AM6/11/13
to couc...@googlegroups.com
Inline:



2013/6/11 Tugdual Grall <tug...@gmail.com>

Hello Pablo,

Can you please give more information about your environment:

1- Which SDK are you using (exact release)?

SDK-1.1.7

couchbase-client-1.1.7.jar
spymemcached-2.9.0.jar
jettison-1.1.jar
netty-3.5.5.Final.jar
commons-codec-1.5.jar
httpcore-4.1.1.jar
httpcore-nio-4.1.1.jar


2- Which version of the Server?  

# rpm -qa|grep -i couchb
libcouchbase2-core-2.0.6-1.x86_64
libcouchbase2-2.0.6-1.x86_64
libcouchbase2-libevent-2.0.6-1.x86_64
couchbase-server-2.0.1-170.x86_64
 
    - what is the configuration of your bucket? (SASL password,  bucket name)

The bucket name is redborder and I use password to access. I have connected to the webpage listining on http://192.168.101.205:8091 with this credentials and it worked perfectlky.
 

3- Share some code snippet ? 
    - especially the connection part

Now I am using the hello code found on http://www.couchbase.com/develop/java/current. I have changed the lines:

*   public class App     ->      public class Main                  Because the filename is called Main.java in the example
*   client = new CouchbaseClient(uris, "default", "");    ->      client = new CouchbaseClient(uris, "redborder", "1c5UEGXdZG6Uv8h"); 
                        -> I use redborder bucket name
                        -> the password 1c5UEGXdZG6Uv8h is random in lab

I create the user with this command:

couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-init-username=Administrator --cluster-init-password=1c5UEGXdZG6Uv8h --cluster-init-ramsize=1024
couchbase-cli cluster-init -c 127.0.0.1:8091 --cluster-init-username=redborder --cluster-init-password=1c5UEGXdZG6Uv8h --cluster-init-ramsize=1024 -u Administrator -p 1c5UEGXdZG6Uv8h


And the bucket with this command:

couchbase-cli bucket-create -c 127.0.0.1:8091 --bucket=redborder --bucket-type=couchbase --bucket-replica=1 --bucket-ramsize=1024 -u Administrator -p 1c5UEGXdZG6Uv8h


When I compile it works and when I execute I get this logs:


# java -cp .:couchbase-client-1.1.7.jar:spymemcached-2.9.0.jar:jettison-1.1.jar:netty-3.5.5.Final.jar:commons-codec-1.5.jar:httpcore-4.1.1.jar:httpcore-nio-4.1.1.jar Main
jun 11, 2013 10:34:49 AM com.couchbase.client.CouchbaseProperties setPropertyFile
INFO: Could not load properties file "cbclient.properties" because: File not found with system classloader.
2013-06-11 10:34:49.850 INFO com.couchbase.client.CouchbaseConnection:  Added {QA sa=/192.168.106.205:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-06-11 10:34:49.851 INFO com.couchbase.client.CouchbaseConnection:  Added {QA sa=/192.168.106.203:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-06-11 10:34:49.852 INFO com.couchbase.client.CouchbaseConnection:  Added {QA sa=/192.168.106.204:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-06-11 10:34:49.861 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@36263003
2013-06-11 10:34:49.864 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@7a75479a
2013-06-11 10:34:49.864 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@51a30bb
2013-06-11 10:34:49.884 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:49.885 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:49.889 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:49.890 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:49.891 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:49.892 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:49.892 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:49.893 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:49.893 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:49.893 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo03/192.168.106.203:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:49.894 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo03/192.168.106.203:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:49.895 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:49.908 INFO com.couchbase.client.ViewConnection:  Added pablo04 to connect queue
2013-06-11 10:34:49.911 INFO com.couchbase.client.ViewConnection:  Added pablo05 to connect queue
2013-06-11 10:34:49.912 INFO com.couchbase.client.ViewConnection:  Added pablo03 to connect queue
2013-06-11 10:34:49.913 INFO com.couchbase.client.CouchbaseClient:  viewmode property isn't defined. Setting viewmode to production mode
2013-06-11 10:34:49.986 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo04/192.168.106.204:11210
2013-06-11 10:34:49.992 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo05/192.168.106.205:11210
2013-06-11 10:34:49.994 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo03/192.168.106.203:11210
2013-06-11 10:34:50.118 WARN com.couchbase.client.CouchbaseConnection:  Node expected to receive data is inactive. This could be due to a failure within the cluster. Will check for updated configuration. Key without a configured node is: beer_Wrath.
2013-06-11 10:34:51.891 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo04/192.168.106.204:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=0}
2013-06-11 10:34:51.892 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@59159684
2013-06-11 10:34:51.893 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo04/192.168.106.204:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=8}
2013-06-11 10:34:51.893 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo04/192.168.106.204:11210
2013-06-11 10:34:51.894 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=0}
2013-06-11 10:34:51.894 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@60194bf0
2013-06-11 10:34:51.895 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=8}
2013-06-11 10:34:51.895 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo05/192.168.106.205:11210
2013-06-11 10:34:51.895 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo03/192.168.106.203:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=0}
2013-06-11 10:34:51.896 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:51.896 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:51.897 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:51.897 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:51.898 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@5a37d54
2013-06-11 10:34:51.899 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo03/192.168.106.203:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=SASL steps operation, toWrite=0, interested=8}
2013-06-11 10:34:51.900 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo03/192.168.106.203:11210
2013-06-11 10:34:51.901 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:51.902 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:51.904 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:51.905 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:51.905 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting due to exception on {QA sa=pablo03/192.168.106.203:11210, #Rops=1, #Wops=1, #iq=0, topRop=Cmd: 1 Opaque: 7 Key: beer_Wrath Cas: 0 Exp: 10 Flags: 0 Data Length: 206, topWop=SASL auth operation, toWrite=0, interested=5}
java.io.IOException: Disconnected unexpected, will reconnect.
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:551)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:51.906 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo03/192.168.106.203:11210, #Rops=1, #Wops=1, #iq=0, topRop=Cmd: 1 Opaque: 7 Key: beer_Wrath Cas: 0 Exp: 10 Flags: 0 Data Length: 206, topWop=SASL auth operation, toWrite=0, interested=5}, attempt 0.
2013-06-11 10:34:51.907 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: Cmd: 1 Opaque: 7 Key: beer_Wrath Cas: 0 Exp: 10 Flags: 0 Data Length: 206
ExecutionException while doing set: java.util.concurrent.CancellationException: Cancelled
2013-06-11 10:34:51.996 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo04/192.168.106.204:11210
2013-06-11 10:34:52.002 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo05/192.168.106.205:11210
2013-06-11 10:34:53.899 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo04/192.168.106.204:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=Cmd: 10 Opaque: 12, toWrite=0, interested=0}
2013-06-11 10:34:53.900 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@44eedabc
2013-06-11 10:34:53.900 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo04/192.168.106.204:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=Cmd: 10 Opaque: 12, toWrite=0, interested=8}
2013-06-11 10:34:53.901 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo04/192.168.106.204:11210
2013-06-11 10:34:53.901 INFO net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Removing cancelled operation: SASL steps operation
2013-06-11 10:34:53.903 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:53.903 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:53.904 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo04/192.168.106.204:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:53.905 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:53.906 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=Cmd: 10 Opaque: 13, toWrite=0, interested=0}
2013-06-11 10:34:53.907 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@5eebbe
2013-06-11 10:34:53.907 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo05/192.168.106.205:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=Cmd: 10 Opaque: 13, toWrite=0, interested=8}
2013-06-11 10:34:53.908 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo05/192.168.106.205:11210
2013-06-11 10:34:53.908 INFO net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Removing cancelled operation: SASL steps operation
2013-06-11 10:34:53.909 INFO com.couchbase.client.CouchbaseConnection:  Reconnecting {QA sa=pablo03/192.168.106.203:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=SASL auth operation, toWrite=0, interested=0}
2013-06-11 10:34:53.910 INFO com.couchbase.client.CouchbaseConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@4ba57633
2013-06-11 10:34:53.910 WARN net.spy.memcached.auth.AuthThreadMonitor:  Incomplete authentication interrupted for node {QA sa=pablo03/192.168.106.203:11210, #Rops=0, #Wops=2, #iq=0, topRop=null, topWop=SASL auth operation, toWrite=0, interested=8}
2013-06-11 10:34:53.911 WARN net.spy.memcached.auth.AuthThread:  Authentication failed to pablo03/192.168.106.203:11210
2013-06-11 10:34:53.911 ERROR net.spy.memcached.protocol.binary.SASLAuthOperationImpl:  Error:  Auth failure
2013-06-11 10:34:53.911 INFO com.couchbase.client.CouchbaseConnection:  Reconnection due to exception handling a memcached operation on {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: Auth failure
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:164)
at net.spy.memcached.protocol.binary.OperationImpl.finishedPayload(OperationImpl.java:176)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.finishedPayload(SASLBaseOperationImpl.java:93)
at net.spy.memcached.protocol.binary.OperationImpl.readFromBuffer(OperationImpl.java:162)
at net.spy.memcached.protocol.binary.SASLBaseOperationImpl.readFromBuffer(SASLBaseOperationImpl.java:41)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:562)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:479)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:260)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:273)
2013-06-11 10:34:53.912 WARN com.couchbase.client.CouchbaseConnection:  Closing, and reopening {QA sa=pablo05/192.168.106.205:11210, #Rops=1, #Wops=0, #iq=0, topRop=SASL auth operation, topWop=null, toWrite=0, interested=1}, attempt 0.
2013-06-11 10:34:53.913 WARN net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl:  Discarding partially completed op: SASL auth operation
2013-06-11 10:34:53.914 WARN com.couchbase.client.CouchbaseConnection:  Shut down with 55 bytes remaining to write
2013-06-11 10:34:53.914 INFO com.couchbase.client.CouchbaseConnection:  Shut down Couchbase client
2013-06-11 10:34:53.918 INFO com.couchbase.client.ViewConnection:  Node pablo04 has no ops in the queue
2013-06-11 10:34:53.919 INFO com.couchbase.client.ViewNode:  I/O reactor terminated for pablo04
2013-06-11 10:34:53.919 INFO com.couchbase.client.ViewConnection:  Node pablo05 has no ops in the queue
2013-06-11 10:34:53.920 INFO com.couchbase.client.ViewNode:  I/O reactor terminated for pablo05
2013-06-11 10:34:53.920 INFO com.couchbase.client.ViewConnection:  Node pablo03 has no ops in the queue
2013-06-11 10:34:53.921 INFO com.couchbase.client.ViewNode:  I/O reactor terminated for pablo03


Do you need more details?

Thanks


Pablo
                    

 

--
You received this message because you are subscribed to the Google Groups "Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchbase+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pablo Nebrera

unread,
Jun 11, 2013, 10:29:12 AM6/11/13
to couc...@googlegroups.com
I have changed the example connection with:

          CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
          cfb.setOpTimeout(10000);
          CouchbaseConnectionFactory cf = cfb.buildCouchbaseConnection(uris, this.bucket, this.password, "");
          client = new CouchbaseClient((CouchbaseConnectionFactory) cf);

And now it works!!

I think the Hello example has some bugs with new version

Thanks for your help



Pablo Nebrera



2013/6/11 Pablo Nebrera <pablon...@eneotecnologia.com>
Reply all
Reply to author
Forward
0 new messages