Project

General

Profile

question about cluster

Raylin lin
Added over 4 years ago

hi,all:

I have tigase server running on two different machines(5.3 built by myself).       this caught error like this:          

2014-06-20 18:53:09.283 [ConnectionOpenThread] ConnectionOpenThread.addAllWaiting() WARNING: Error: creating connection for: {secret=804ac6c1f4f2fb941818f8bb6a330a9c3143ebe96426c1b443f9d7c6f9fba376, local-host=tencent11.site, type=connect, socket=plain, remote-host=vmmachine1, ifc=[Ljava.lang.String;@42cf1e95, max-reconnects=99999979, port-no=5277}

java.nio.channels.UnresolvedAddressException

etc/init.properties look like this:

config-type=--gen-config-def

--admins=admin@10.14.70.190

--virt-hosts = www.1111111.com

--debug=server,xmpp,db

--user-db=mysql

--user-db-uri=jdbc:mysql://10.60.10.26:3306/tigase?user=admin&password=20130101&noAccessToProcedureBodies=true&useUnicode=true&characterEncoding=utf-8

--cluster-connect-all=true

--cluster-mode=true

#--cl-conn-repo-class=tigase.cluster.repo.ClConConfigRepository

--cross-domain-policy-file=/etc/tigase/cross-domain-policy.xml

--bosh-extra-headers-file=/etc/tigase/bosh-extra-headers-file.txt

--bosh-ports=5280

--sm-plugins=+jabber:iq:storeLastMessage

sess-man/plugins-conf/amp/store-limit=1200

amp/store-limit[S]=1200

muc/muc-lock-new-room[B]=false

--comp-class-1 = tigase.muc.MUCComponent

--comp-name-1 = muc

--comp-name-2=pubsub

--comp-class-2=tigase.pubsub.PubSubComponent

#--comp-name-3 = ext

#--comp-class-3 = tigase.server.ext.ComponentProtocol

--monitoring=jmx:9050,http:9080,snmp:9060

#--monitoring=http:9080


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 4 years ago

Your network configuration is incorrect - that is hostnames on both both machines. And the error also says UnresolvedAddressException so you have to set correct DNS records for your cluster nodes.

Also, do not use IP addresses in your init.properties file, because it will not work.

    (1-1/1)