If you are just typing aql on terminal and following error throwing while your aerospike server has been started successfully.
WARN AEROSPIKE_ERR_CLIENT Socket write error: 111
It may happen because you had connected some other server before, Now you are trying to connect to your localhost or different server.
To remove the above error just type full command:
aql -h 127.0.0.1 -p 3000 ( put server ip in case of other server rather than localhost)
instead of jus aql.
WARN AEROSPIKE_ERR_CLIENT Socket write error: 111
It may happen because you had connected some other server before, Now you are trying to connect to your localhost or different server.
To remove the above error just type full command:
aql -h 127.0.0.1 -p 3000 ( put server ip in case of other server rather than localhost)
instead of jus aql.
thanks it worked.
ReplyDeleteyour welcome.
DeleteWARN Failed to connect to seed 127.0.0.1 3000. AEROSPIKE_ERR_CONNECTION Socket write error: 111, 127.0.0.1:3000
ReplyDeleteError -10: Failed to connect
How to solve this. ?
A little bit late. For others encountering 'Error -10: Failed to connect', it happens because aerospike is not listening on that host/port.
ReplyDeleteIf both server and tools were started using docker, then 'aerospike/aerospike-tools' container will not be able to reach server on 127.0.0.1 because server is running in another container.