-
1. Re: connect 2 servers
chavarao Sep 5, 2012 11:55 AM (in response to vigue)I didn't use memcached but I have used hotrodserver by using command like this.
startServer.sh -r hotrod -p port1-l host1 -c bin/distribution.xml -Djgroups.bind_addr=host1
try passing in host and port.
-
2. Re: connect 2 servers
mircea.markus Sep 5, 2012 7:27 PM (in response to chavarao)jgroups.bind_addr should contain a valid IP address of one of your network inerfaces. Have you tried starting without this propery?
-
3. Re: connect 2 servers
vigue Sep 6, 2012 2:33 AM (in response to chavarao)Nag Ch escribió:
I didn't use memcached but I have used hotrodserver by using command like this.
startServer.sh -r hotrod -p port1-l host1 -c bin/distribution.xml -Djgroups.bind_addr=host1
try passing in host and port.
I have the same problems when I run the server using the command like you said. It is said the next:
Caused by: org.infinispan.CacheException: java.net.BindException: [TCP] /172.18.0.5 is not a valid address on any local network interface
Caused by: java.net.BindException: [TCP] /172.18.0.5 is not a valid address on any local network interface
I have noticed that another problem appear:
Error while trying to create a channel using config files: jgroups.xml
What I have done is copy the file etc/jgroups-tcp.xml in bin and I have changed the name to jgroups.xml. Is it right?
-
4. Re: connect 2 servers
vigue Sep 6, 2012 2:38 AM (in response to mircea.markus)Mircea Markus escribió:
jgroups.bind_addr should contain a valid IP address of one of your network inerfaces. Have you tried starting without this propery?
I have tried to run the server without this flag, but then, the error that appears is the next one:
Caused by: org.infinispan.CacheException: java.lang.Exception: Property assignment of bind_addr in TCP with original property value "IP1" and converted to null could not be assigned
Caused by: java.lang.Exception: Property assignment of bind_addr in TCP with original property value "IP1" and converted to null could not be assigned
Caused by: java.lang.Exception: Conversion of bind_addr in TCP with original property value "IP1" failed
Caused by: java.net.UnknownHostException: "IP1"
Besides, also appear the error that i mentionated before:
Error while trying to create a channel using config files: jgroups.xml
-
5. Re: connect 2 servers
vigue Sep 6, 2012 2:59 AM (in response to vigue)I want to join 2 servers in order to create a cluster in 'distribution' mode. I have 2 different servers, I run Infinispan in each one. I want to insert data in one machine and get the data from the other one.
I know that I have to create de configuration file and I have to use the file called jgroups.xml. But I'm not sure about how to run the Infinispan servers, about how to use the command ./starServer.sh.
Can anyone tell me the steps to build this cluster, please?
-
6. Re: connect 2 servers
galder.zamarreno Sep 6, 2012 4:08 AM (in response to vigue)@vigue, @Mircea has already said what you need to do: find out the IP addresses that connect these machines together, and use them as bind addresses respectively.
If you're still having issues, enable TRACE logging on org.jgroups package and post the logs.
-
7. Re: connect 2 servers
vigue Sep 6, 2012 5:00 AM (in response to galder.zamarreno)Galder Zamarreño escribió:
@vigue, @Mircea has already said what you need to do: find out the IP addresses that connect these machines together, and use them as bind addresses respectively.
If you're still having issues, enable TRACE logging on org.jgroups package and post the logs.
Sorry, I know what are you trying to tell me, but I think that the IP's adresses that i'm using are right. I have 2 machines, so I use the IP of each one of them. Is there any other IP valid?
I'm going to try enable the trace and write here the log.
Thanks any way for all your help.
-
8. Re: connect 2 servers
galder.zamarreno Sep 26, 2012 10:36 AM (in response to vigue)Well, the point really is that "IP1" cannot be resolved, so some DNS issue? What about you type the IP addresses as they are, without the need to do host resolution?