Project

General

Profile

Throwable in cluster mode

Julia Zashchitina
Added almost 4 years ago

Hello.

We are running tigase 7.0.0 in cluster mode. We ran tests on local environment and on amazon ec2, with one cluster node and using several cluster nodes. In all test cases we have the following error in logs:

2015-03-17 16:44:16.081 [pool-18-thread-3]  S2SAbstractProcessor.generateStreamError()  FINEST: Called from: 
java.lang.Throwable
    at tigase.server.xmppserver.proc.S2SAbstractProcessor.generateStreamError(S2SAbstractProcessor.java:154)
    at tigase.server.xmppserver.proc.StreamOpen.streamOpened(StreamOpen.java:252)
    at tigase.server.xmppserver.S2SConnectionManager.xmppStreamOpened(S2SConnectionManager.java:534)
    at tigase.server.xmppserver.S2SConnectionManager.xmppStreamOpened(S2SConnectionManager.java:71)
    at tigase.xmpp.XMPPIOService.xmppStreamOpened(XMPPIOService.java:801)
    at tigase.xmpp.XMPPDomBuilderHandler.startElement(XMPPDomBuilderHandler.java:280)
    at tigase.xml.SimpleParser.parse(SimpleParser.java:314)
    at tigase.xmpp.XMPPIOService.processSocketData(XMPPIOService.java:686)
    at tigase.net.IOService.call(IOService.java:252)
    at tigase.net.IOService.call(IOService.java:94)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

Could you please suggest what's wrong and how to fix it? You can see init.properties and more detailed log in the attachment. Thanks in advance.


Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You have configured Tigase to use domain as virtual-host, and it looks like you are trying to connect to ubuntu14 domain, which results in host-unknown error.

2015-03-17 16:44:16.081 [pool-18-thread-3]  S2SConnectionManager.xmppStreamOpened()  FINER: CID: null, null, type: accept, Socket: nullSocket[addr=/127.0.0.1,port=60661,localport=5269], jid: null, Stream opened: {to=ubuntu14, xmlns:stream=http://etherx.jabber.org/streams, from=DOMAIN, xmlns=jabber:server, xmlns:db=jabber:server:dialback, version=1.0}
...
2015-03-17 16:44:16.082 [pool-18-thread-3]  S2SAbstractProcessor.generateStreamError()  FINEST: CID: null, null, type: accept, Socket: nullSocket[addr=/127.0.0.1,port=60661,localport=5269], jid: null, Sending stream error: <stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>

Added by Igor Khomenko almost 4 years ago

Looks like I got the same issue here https://projects.tigase.org/boards/4/topics/4642

But in my case I don't use --cluster-mode = true and looks like Tigase is trying to connect it itself. How it can be?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 4 years ago

Igor, this is usually a result of misconfiguration on the network layer, in particular the hostname and DNS area.

    (1-3/3)