hazelcast / hazelcast/hazelcast-python-client

Error while trying to connect to IPv6 cluster

Open
#670 0 comments 0 reactions 0 assignees View on GitHub
Source: Community
Dominant language
Python
Stars
116
Forks
78
Avg merge
10d 22h
Merged PRs (30d)
1

Description

I've got a 2 node cluster running with IPv6 addresses and getting error while trying to make the connection as follows:

Note that the service is running as expected on the port and I'm able to telnet without any issues. Also making a socket connection using socket.socket using AF_INET6 () also works e.g. socket.socket(socket.AF_INET6, socket.SOCK_STREAM) and then sock.connect((ipv6_address, port)).

```
INFO:hazelcast.connection:Trying to connect to Address(host=fc00:10:202:125:210:16ff:faa5:5252, port=5701)
WARNING:hazelcast.connection:Error during initial connection to Address(host=fc00:10:202:125:210:16ff:faa5:5252, port=5701)
Traceback (most recent call last):
File "/root/foo/lib64/python3.6/site-packages/hazelcast/connection.py", line 579, in _connect
return get_or_connect_func(target).result()
File "/root/foo/lib64/python3.6/site-packages/hazelcast/future.py", line 255, in result
re_raise(self._exception, self._traceback)
File "/root/foo/lib64/python3.6/site-packages/hazelcast/util.py", line 448, in re_raise
raise exception.with_traceback(traceback)
socket.gaierror: [Errno -9] Address family for hostname not supported
```

Can anyone please help on this. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.