Project

General

Profile

Issues setting up a Tigase Cluster

valrio chenzo
Added about 4 years ago

Hi Pros,

I am kind of stuck at the moment trying to setup a cluster. I have followed instructions in the manuals and still not been able to get Tigase work in a cluster. Scenario:

I have to 2 server and would want to get them work in a cluster mode but somehow only one node (called it node1) gets connected while node2 endlessly tries to connect to node1. I might be missing something that's why I would like someone else also have a look at my log file and configuration.

here my configuration:

@

Server version : 5.3.0-SNAPSHOT from October/November 2014

@

Basically node1 and node2 configs are some:

@

--cluster-mode = true

--cluster-nodes = greatsoppo.domain.com,greatsoppo2.domain.com

--cluster-connect-all = true

--cl-comp-ports = 5277

--cl-conn-repo-class = com.soppotech.mutengene.tigase.repo.ClMutengeneRepository

config-type = --gen-config-def

--debug = server,xmpp,component,auth,conf,disco,disteventbus,io,net,sys,vhosts,db,cluster,

--user-db = com.soppotech.mutengene.tigase.repo.MutengeneUserRepository

--auth-db = com.soppotech.mutengene.tigase.repo.MutengeneUserRepository

--virt-hosts = domain.com

--comp-class-2 = tigase.archive.MessageArchiveComponent

--comp-name-2 = message-archive

@

Without setting --cl-comp-ports property leads to a Null Pointer Exception:

@

java.lang.NullPointerException: null

    at tigase.db.comp.ConfigRepository.getItem(ConfigRepository.java:191) ~[tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.cluster.ClusterConnectionManager.getDefPlainPorts(ClusterConnectionManager.java:862) ~[tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.ConnectionManager.getDefaults(ConnectionManager.java:741) ~[tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.cluster.ClusterConnectionManager.getDefaults(ClusterConnectionManager.java:636) ~[tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:553) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.Configurator.componentAdded(Configurator.java:50) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.Configurator.componentAdded(Configurator.java:33) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.MessageRouter.addComponent(MessageRouter.java:108) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.MessageRouter.addRouter(MessageRouter.java:145) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.MessageRouter.setProperties(MessageRouter.java:807) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.Configurator.componentAdded(Configurator.java:50) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.conf.Configurator.componentAdded(Configurator.java:33) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.MessageRouter.setConfig(MessageRouter.java:700) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.XMPPServer.start(XMPPServer.java:142) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

    at tigase.server.XMPPServer.main(XMPPServer.java:112) [tigase-server.jar:5.3.0-SNAPSHOT-b3691/df6b56be (2014-10-20/10:25:14)]

@

with the --cl-comp-ports set node one connects am assuming successfully see logs below while node2 endlessly tries to connect to node1 without any success (see logs below). Both configuration are the same and there is no firewall blocking communication on that port.

Node1 log messages:

@

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - cluster connection opened: 10.132.115.217, type: connect, id=10.132.115.216_38278_10.132.115.217_5277 (ConnectionOpenThread)

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - cid: null, sending: <stream:stream xmlns='tigase:cluster' xmlns:stream='http://etherx.jabber.org/streams' from='greatsoppo' to='greatso

ppo2'> (ConnectionOpenThread)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 121, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 121 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 163 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Stream opened: {id=40b1d136-dc4c-4983-868f-0bbd83ef41dc, to=greatsoppo, xmlns:stream=http://etherx.jabber.org/streams, from=greatsoppo2

, xmlns=tigase:cluster} (pool-13-thread-4)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 63, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 63 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 163 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 163 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Stream opened: {id=37ad9810-e9c5-4481-8ffd-d4b93011d8f4, to=greatsoppo, xmlns:stream=http://etherx.jabber.org/streams, from=greatsoppo2

, xmlns=tigase:cluster} (pool-13-thread-6)

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Stream opened: {id=8921c85f-2097-4f03-8959-a51d596d1776, to=greatsoppo, xmlns:stream=http://etherx.jabber.org/streams, from=greatsoppo2, xmlns=tigase:cluster} (pool-13-thread-5)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 63, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 63 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 63, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 63 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 163 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Stream opened: {id=3a6f0f7c-1893-4e1b-a0f7-7459d06c6099, to=greatsoppo, xmlns:stream=http://etherx.jabber.org/streams, from=greatsoppo2, xmlns=tigase:cluster} (pool-13-thread-8)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 63, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 63 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 163 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Stream opened: {id=a55df684-4ea4-4e45-a782-e3ab9fe18337, to=greatsoppo, xmlns:stream=http://etherx.jabber.org/streams, from=greatsoppo2, xmlns=tigase:cluster} (pool-13-thread-3)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 63, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Wrote to channel 63 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 12 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38277

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 12 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: .*@greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38274

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: .*@greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: .*.greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: .*.greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Connected to: greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: .*@greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: .*@greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - attempt to add regex routing: .*.greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] SessionManagerClustered [] - Nodes connected: greatsoppo2.domain.com (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] AbstractMessageReceiver [] - cl-comp - success adding regex routing: .*.greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] DefaultClusteringStrategyAbstract [] - Cluster nodes: sess-man@greatsoppo2.domain.com, added: true (pool-13-thread-7)

2015-02-03 11:42:15 [INFO] ClusterConnectionManager [] - Connected to: greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] SessionManager [] - Sending packet to admin: admin@njanga (pool-13-thread-7)

2015-02-03 11:42:15 [DEBUG] SessionManagerClustered [] - Nodes connected: greatsoppo2 (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] DefaultClusteringStrategyAbstract [] - Cluster nodes: [sess-man@greatsoppo2.domain.com, sess-man@greatsoppo2], added: true (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] SessionManager [] - Sending packet to admin: admin@njanga (pool-13-thread-9)

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 12 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 12 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38273

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2/10.132.115.217,port=5277,localport=38278

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 12 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

2015-02-03 11:42:15 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=greatsoppo2.domain.com/10.132.115.217,port=5277,localport=38275

@

Node2 log messages

@

2015-02-03 11:42:16 [INFO] ConfigRepository [] - Calling itemAdded for: greatsoppo:greatsoppo:5277:1422981733546:0.4473072:25.329395 (pool-13-thread-5)

2015-02-03 11:42:16 [INFO] ClusterConnectionManager [] - Loaded repoItem: greatsoppo:greatsoppo:5277:1422981733546:0.4473072:25.329395 (pool-13-thread-5)

2015-02-03 11:42:16 [INFO] ClusterConnectionManager [] - Trying to connect to cluster node: greatsoppo (pool-13-thread-5)

2015-02-03 11:42:16 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (pool-13-thread-5)

2015-02-03 11:42:16 [INFO] ClusterConnectionManager [] - Trying to connect to cluster node: greatsoppo (pool-13-thread-5)

2015-02-03 11:42:16 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (pool-13-thread-5)

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38277,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38274,localport=5277

2015-02-03 11:42:16 [INFO] ClusterConnectionManager [] - Connected to: greatsoppo (pool-13-thread-4)

2015-02-03 11:42:16 [DEBUG] SessionManagerClustered [] - Nodes connected: greatsoppo (pool-13-thread-4)

2015-02-03 11:42:16 [DEBUG] DefaultClusteringStrategyAbstract [] - Cluster nodes: [sess-man@greatsoppo], added: true (pool-13-thread-4)

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38278,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38273,localport=5277

2015-02-03 11:42:16 [DEBUG] SessionManager [] - Sending packet to admin: admin@njanga (pool-13-thread-4)

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38275,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 163, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 163 bytes, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 63 bytes, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Read from channel 0 bytes, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - SOCKET - Writing data, remaining: 12, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:16 [DEBUG] SocketIO [] - Wrote to channel 12 bytes, nullSocketaddr=/10.132.115.216,port=38276,localport=5277

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:21 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:21 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@102d16c6, type=connect, max-reconnects=99999999} (ConnectionOpenThread)

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:21 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:21 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@5d400213, type=connect, max-reconnects=99999999} (ConnectionOpenThread)

2015-02-03 11:42:21 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:26 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:26 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:26 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@102d16c6, type=connect, max-reconnects=99999998} (ConnectionOpenThread)

2015-02-03 11:42:26 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:26 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:26 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:26 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@5d400213, type=connect, max-reconnects=99999998} (ConnectionOpenThread)

2015-02-03 11:42:26 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:31 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:31 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:31 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@102d16c6, type=connect, max-reconnects=99999997} (ConnectionOpenThread)

2015-02-03 11:42:31 [DEBUG] ConnectionManager [] - Reconnecting service for: cl-comp, scheduling next try in 5secs, cid: null@null (ConnectionOpenThread)

2015-02-03 11:42:31 [DEBUG] ConnectionManager [] - Reconnecting service for component: cl-comp, to remote host: greatsoppo on port: 5277 (scheduler_pool-6-thread-1-cl-comp)

2015-02-03 11:42:31 [DEBUG] ConnectionOpenThread [] - Registered new client socket: java.nio.channels.SocketChannelconnection-pending remote=greatsoppo/10.132.115.216:5277

2015-02-03 11:42:31 [DEBUG] IOService [] - Problem connecting to remote host: greatsoppo, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2, secret=greatsoppo, ifc=[Ljava.lang.String;@5d400213, type=connect, max-reconnects=99999997} (ConnectionOpenThread)

@

I would appreciate any help I can get to resolve this matter.

Thanks,

Chenzo


Replies (3)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 4 years ago

Hi,

A few notes:

The line is not needed but most likely does not cause your problems.

--cluster-connect-all = true

I think, what causes your problems is this:

--cluster-nodes = greatsoppo.domain.com,greatsoppo2.domain.com
--user-db = com.soppotech.mutengene.tigase.repo.MutengeneUserRepository

Tigase in last version has a logic for the cluster automatic configuration and it uses database to synchronize some metadata between cluster nodes. As you have a custom repository implementation, it may be not compatible with the Tigase's cluster requirements, hence the logic for automated reconfiguration is not working properly. The line with list of nodes is not necessary if the automatic logic is working correctly.

Another thing to double check, is the network configuration. Canonical hostname for both servers should be greatsoppo.domain.com and greatsoppo2.domain.com respectively and these hostname should correctly resolve to a proper IP addresses.

Added by valrio chenzo about 4 years ago

Thanks Artur!

Auto Config seems to be working fine now. I removed the following properties:

--cluster-connect-all = true
--cluster-nodes = greatsoppo.domain.com,greatsoppo2.domain.com

Both servers can now connect with each other!

Just out of curiosity, why is auto config working and normal config not?

Thanks again.

Added by Wojciech Kapcia TigaseTeam about 4 years ago

valrio chenzo wrote:

Just out of curiosity, why is auto config working and normal config not?

As Artur already explained:

Another thing to double check, is the network configuration. Canonical hostname for both servers should be greatsoppo.domain.com and greatsoppo2.domain.com respectively and these hostname should correctly resolve to a proper IP addresses.

And in your logs you have:

exception: java.net.ConnectException: Connection refused, session data: {port-no=5277, socket=plain, remote-host=greatsoppo, local-host=greatsoppo2

so it looks like you have different hostnames configured in the system than those configured in tigase. With automatic discovery correct names are being picked up.

    (1-3/3)