SelectBucketFailedEvent, Unambiguous and Ambiguous Timeout Exceptions with Java SDK

Hi,

I am getting Unambiguous and Ambiguous Timeout Exceptions after upgrading Java SDK to 3.0.6

I am using below configuration :-

Couchbase server :- Enterprise Edition 6.0.2 build 2413
Spring boot version :- 2.3.2
java-client-3.0.6.jar
spring-boot-starter-data-couchbase-reactive-2.3.2.RELEASE.jar
spring-data-couchbase-4.0.2.RELEASE.jar

[com.couchbase.io][SelectBucketFailedEvent] Select bucket failed with status code 0x1

com.couchbase.client.core.error.AmbiguousTimeoutException: RemoveRequest, Reason: TIMEOUT\n\tat com.couchbase.client.core.msg.BaseRequest.cancel(BaseRequest.java:163)\n\tat com.couchbase.client.core.Timer.lambda$register$2(Timer.java:157)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)\n\tat com.couchbase.client.core.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\n\tat java.lang.Thread.run(Thread.java:748)\n

com.couchbase.client.core.error.UnambiguousTimeoutException: GetRequest, Reason: TIMEOUT\n\tat com.couchbase.client.core.msg.BaseRequest.cancel(BaseRequest.java:163)\n\tat com.couchbase.client.core.Timer.lambda$register$2(Timer.java:157)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)\n\tat com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)\n\tat com.couchbase.client.core.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\n\tat java.lang.Thread.run(Thread.java:748)

can someone give me any pointers for above issues.

i had also checked logs after reading below post, i am not getting any logs like BUCKET_NOT_AVAILABLE.

Thank in advance…

SDK-doctor might be useful - https://docs.couchbase.com/server/current/sdk/sdk-doctor.html

It might help to see your configuration for couchbase (connection string)
0x1 error code is NOT_FOUND.
Although when I specify an bucket that does not exist I get:

com.couchbase.client.core.error.AuthenticationFailureException: Either the bucket with name “moviesx” is not present or the user does not have the right privileges to access it
at com.couchbase.client.core.io.netty.kv.SelectBucketHandler.channelRead(SelectBucketHandler.java:175) ~[core-io-2.0.5.jar:na]
at com.couchbase.client.core.io.netty.kv.MemcacheProtocolVerificationHandler.channelRead(MemcacheProtocolVerificationHandler.java:84) ~[core-io-2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

In addition to @mreiche’s point, are you by chance using LDAP authentication or something along those lines?

@amitgupta9501 does your seed node list contain hostnames which do not have the data service enabled ? (so for example only query) - how does your server topology look like?

Thanks for your reply…
bucket name exists, on which application is trying to connect with valid credentials and I can’t see any AuthenticationFailureException also.

Thanks for reply… application is not using any LDAP authentication.