Project

General

Profile

newbie question with cluster config

cheng huang
Added about 5 years ago

hi all.

I am a beginner with tigase and install a single-node tigase server successfully.

My init.properties is:

config-type=--gen-config-def

--admins=admin@jabber.your-great.net

--virt-hosts=jabber.your-great.net

--debug=server

--user-db=mysql

--user-db-uri=jdbc:mysql://xx.xx.xx.xx:3306/tigasedb?user=root&password=xxxxxx&useUnicode=true&characterEncoding=UTF-8

create new account, login, chat are all ok.

After that, I simply add "--cluster-mode=true" and "--cluster-nodes=myip" into init.properties, and try cluster mode tigase (one node).

I restart the server and regist new account.

But fail to login...

Please help, thx.

Some log from tigase.log.0 may be helpful:

2013-10-22 17:00:07.411 [in_14-message-router] MessageRouter.getLocalComponent() FINEST: None compId matches: c2s@jabber.your-great.net/10.15.107.76_5222_10.15.62.94_26012, for map: {monitor@jabber.your-great.net=tigase.cluster.MonitorClustered@48201d6d, cl-comp@jabber.your-great.net=tigase.cluster.ClusterConnectionManager@11f05dde, c2s@jabber.your-great.net=tigase.cluster.ClientConnectionClustered@7e0892c5, amp@jabber.your-great.net=tigase.server.amp.AmpComponent@4d11533d, vhost-man@jabber.your-great.net=tigase.vhosts.VHostManager@43bd856, stats@jabber.your-great.net=tigase.stats.StatisticsCollector@9437a04, sess-man@jabber.your-great.net=tigase.cluster.SessionManagerClustered@2e6326bc, s2s@jabber.your-great.net=tigase.cluster.S2SConnectionClustered@5e72d283, bosh@jabber.your-great.net=tigase.cluster.BoshConnectionClustered@36e824fd, basic-conf@jabber.your-great.net=tigase.conf.Configurator@718b9a3f, cluster-contr@jabber.your-great.net=tigase.cluster.ClusterController@710d806c, ws2s@jabber.your-great.net=tigase.server.websocket.WebSocketClientConnectionManager@358fb466}

2013-10-22 17:00:08.068 [in_14-message-router] MessageRouter.getLocalComponent() FINEST: Still no comp name matches: hc002@jabber.your-great.net/娼樿开瀹 for map: {cl-comp=tigase.cluster.ClusterConnectionManager@11f05dde, c2s=tigase.cluster.ClientConnectionClustered@7e0892c5, basic-conf=tigase.conf.Configurator@718b9a3f, s2s=tigase.cluster.S2SConnectionClustered@5e72d283, cluster-contr=tigase.cluster.ClusterController@710d806c, bosh=tigase.cluster.BoshConnectionClustered@36e824fd, vhost-man=tigase.vhosts.VHostManager@43bd856, sess-man=tigase.cluster.SessionManagerClustered@2e6326bc, ws2s=tigase.server.websocket.WebSocketClientConnectionManager@358fb466, message-router=tigase.server.MessageRouter@74f7f845, stats=tigase.stats.StatisticsCollector@9437a04, amp=tigase.server.amp.AmpComponent@4d11533d, monitor=tigase.cluster.MonitorClustered@48201d6d}, for all VHosts: {3}

2013-10-22 17:00:08.100 [in_46-sess-man] SessionManager.processPacket() INFO: Impossible happened, please report to developer packet: from=c2s@jabber.your-great.net/10.15.107.76_5222_10.15.62.94_26012, to=sess-man@jabber.your-great.net, DATA=, SIZE=132, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set, connection: user_jid=sess-man@jabber.your-great.net, packets=1, connectioId=null, domain=jabber.your-great.net, authState=NOT_AUTHORIZED, isAnon=false.


Replies (2)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 5 years ago

You do not put an IP in the --cluster-nodes property. You have to put a canonical hostname of the machine which is a cluster node.

Added by cheng huang about 5 years ago

Problem solved (using hostname)

Thanks for your help!

    (1-2/2)