Couchbas-java-client:2.1.1 doesn't connect to a node

I have a single couchbase instance on a remote node with one bucket without password and every port open. When I’m trying to connect to it using version 2.1.1 (in Scala):

val cluster = CouchbaseCluster.create("<ip>")
val bucket = cluster.openBucket("<bucket>")

it throws an exeption:

04/08 00:30:29.525 INFO [cb-io-1-1] c.c.c.c.n.Node - Connected to Node <ip>
04/08 00:30:29.877 INFO [-computations-5] c.c.c.c.c.ConfigurationProvider - Opened bucket <bucket>
04/08 00:30:29.877 WARN [cb-io-1-2] c.c.c.c.e.Endpoint - [null][KeyValueEndpoint]: Could not connect to endpoint, retrying with delay 32 MILLISECONDS: 
java.net.ConnectException: Connection refused: localhost/127.0.0.1:11210
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_31]
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716) ~[na:1.8.0_31]
	at com.couchbase.client.deps.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:208) ~[core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:281) ~[core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528) [core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [core-io-1.1.1.jar:1.1.1]
	at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [core-io-1.1.1.jar:1.1.1]

It looks like it’s trying to connect to localhost but I provided it with an IP address.

I’ve downgraded to 2.0.3 and it works totally fine. Couchbase version is 3.0.2-1603 Enterprise Edition (build-1603-rel)

Yes, this is a regression introduced in 2.1.1. We already released 2.1.2, can you please upgrade and see if it works?
Thanks!

Thanks, 2.1.2 fixes the issue.

https://github.com/couchbase/couchbase-java-client mentions 2.1.1 in maven download section, I think it may confuse someone else, just like it confused me.

@makados woops, thanks for the heads up! Will fix it now.