Immediately Connection reset exeption

Hi! I am running aerospike server on Vagrant on mac OS. On my local machine, in IJ IDEA I am using your java client to connect to my aerospile on vagrant, but immediately I got an exception with following stacktrace: Exception in thread “main” com.aerospike.client.AerospikeException$Connection: Error Code -8: Failed to connect to host(s): 3000 Connection reset

at com.aerospike.client.cluster.Cluster.seedNodes(
at com.aerospike.client.cluster.Cluster.tend(
at com.aerospike.client.cluster.Cluster.waitTillStabilized(
at com.aerospike.client.cluster.Cluster.initTendThread(
at com.aerospike.client.cluster.Cluster.<init>(
at com.aerospike.client.AerospikeClient.<init>(
at com.aerospike.client.AerospikeClient.<init>(
at aerospike.AerospikeTest.main(

FAILURE: Build failed with an exception.

That’s how I create client: AerospikeClient client = new AerospikeClient(“”, 3000);
when I run command “nc -z -v -w5 3000” in my terminal I got successful response: “Connection to port 3000 [tcp/hbci] succeeded!”

Any ideas what could be the cause of that exception?

Your vagrant OS is listening on a different IP address. Use “ifconfig” to determine IP address on your vagrant OS.

Typically, it would be:

Works, thanks!

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.