Infinispan hotrod unable to add new server in IPv6 #10920
-
Hey guys, Anyone have an experience setting up ispn in IPv6 environment? Thanks for any help! Edit:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The problem seems to be with the server, not with the client. How are you binding the server ? Can you enable trace logs for |
Beta Was this translation helpful? Give feedback.
-
@tristantarrant big thanks for the response! Here is the log and the configuration which cause the error ( I am running ispn with docker-compose IPv6 network) I discovered that there is problem about getting the right IP address to bind with IPv6. infinispan1:
image: infinispan/server:14.0.4.Final
command: ["--bind-address=::"] # here is bind with ipv6 wildcard
environment:
- NODE_NAME=is-1
- _JAVA_OPTIONS=-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true # prefer IPv6 and disable IPv4
- JGROUPS_DISCOVERY_PROTOCOL=TCPIP
- JGROUPS_DISCOVERY_PROPERTIES="initial_hosts=infinispan1[7800],infinispan2[7800]"
- USER=admin
- PASS=admin123
volumes:
- ./log4j2.xml:/opt/infinispan/server/conf/log4j2.xml
ports:
- 11222:11222
networks:
- ipv6-network here is the
So I try to use binding network interface with And here is the log from
|
Beta Was this translation helpful? Give feedback.
Sorry, I wrongly assumed that
::
would be passed on as-is, but the JDK expands it to0:0:0:0:0:0:0:0
. I'm afraid that there is no workaround until those PRs are merged.