It looks like the SDK is failing to get information about the collection myCollectionName in the default scope. I would double-check that this collection exists, and make sure the user has permission to view this collection.
If that doesn’t solve the problem, you can help us diagnose the issue by telling us the versions of Couchbase Server and the Couchbase Java SDK you’re using, and showing the code you’ve written to connect to Couchbase, as well as the code that’s failing. It would also help to see the full log output of your program, if possible.
23-10-19 17:34:38.132 [cb-events] WARN com.couchbase.config - [com.couchbase.config][CollectionMapRefreshFailedEvent][2507ms] Collection Map refresh (CollectionIdentifier{bucket='main', scope=Optional[_default], collection=Optional[account], isDefault=false}) failed: FAILED {"coreId":"0x24edf36100000001"}
com.couchbase.client.core.error.UnambiguousTimeoutException: GetCollectionIdRequest, Reason: TIMEOUT {"cancelled":true,"completed":true,"coreId":"0x24edf36100000001","idempotent":true,"reason":"TIMEOUT","requestId":8,"requestType":"GetCollectionIdRequest","retried":14,"retryReasons":["NODE_NOT_AVAILABLE"],"service":{"bucket":"main","collection":"account","opaque":"0x12","scope":"_default","type":"kv","vbucket":0},"timeoutMs":2500}
at com.couchbase.client.core.msg.BaseRequest.cancel(BaseRequest.java:184)
at com.couchbase.client.core.msg.Request.cancel(Request.java:71)
at com.couchbase.client.core.Timer.lambda$register$2(Timer.java:172)
at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715)
at com.couchbase.client.core.deps.io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34)
at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703)
at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790)
at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503)
at com.couchbase.client.core.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
This happens when the collection is created using the SDK and the app tries to use the collection after that. On subsequent runs, it works just fine.