Project

General

Profile

Tigase crashes when doing service discovery

Gabriel Rossetti
Added over 4 years ago

Hi all,

I am running Tigase (5.2.1-b3461) on a Windows 7 dev. environment (VM, 64bit, SP1). I followed the console install guide, initialized my derby DB using the script (the windows one I submitted), I used the Run.bat script to start it (@.\scripts\Rub.bat@). This is a defualt install, no modifications (other than the derby script converted to run on windows, the SQL has not been touched though).

I was able to create the admin user, login, etc. When I do a service discovery using psi the server crashes. There is nothing about the crash in the logs and the colsole prints stuff like this (which is not in the logs):

ws2s/Processed packets thread: in_4-ws2s[long] = 0
ws2s/Processed packets thread: in_5-ws2s[long] = 0
ws2s/Processed packets thread: in_6-ws2s[long] = 0
ws2s/Processed packets thread: in_7-ws2s[long] = 0
ws2s/Processed packets thread: out_0-ws2s[long] = 0
ws2s/Processed packets thread: out_1-ws2s[long] = 0
ws2s/Processed packets thread: out_2-ws2s[long] = 0
ws2s/Processed packets thread: out_3-ws2s[long] = 0
ws2s/Processed packets thread: out_4-ws2s[long] = 0
ws2s/Processed packets thread: out_5-ws2s[long] = 0
ws2s/Processed packets thread: out_6-ws2s[long] = 0
ws2s/Processed packets thread: out_7-ws2s[long] = 0
ws2s/Open connections[int] = 0
ws2s/Waiting to send[int] = 0
ws2s/Bytes sent[long] = 0
ws2s/Bytes received[long] = 0
ws2s/Socket overflow[long] = 0
ws2s/Watchdog runs[long] = 0
ws2s/Watchdog tests[long] = 0
ws2s/Watchdog stopped[long] = 0
total/Total queues wait[int] = 1
total/Total queues overflow[long] = 0

Total number of threads: 268
No locked threads.

ShutdownThread finished...

The last lines in the log are:

2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.processDiscoQuery()  FINEST: Processing disco query by: from=sess-man@dev01.test.com, to=null, DATA=<iq from="admin@xmpp.test.com/DEV01" type="get" xmlns="jabber:client" to="basic-conf@xmpp.test.com" id="abbaa">
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>, SIZE=181, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=get
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : basic-conf@xmpp.test.com
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.getLocalComponent()  FINEST: None compId matches (fast lookup): basic-conf@xmpp.test.com, for map: {amp@dev01.test.com=tigase.server.amp.AmpComponent@3725257b, pubsub@dev01.test.com=tigase.pubsub.PubSubComponent@606506f0, c2s@dev01.test.com=tigase.server.xmppclient.ClientConnectionManager@158805b, monitor@dev01.test.com=tigase.server.monitor.MonitorComponent@44981d16, stats@dev01.test.com=tigase.stats.StatisticsCollector@22c1b7fc, ws2s@dev01.test.com=tigase.server.websocket.WebSocketClientConnectionManager@634f6687, s2s@dev01.test.com=tigase.server.xmppserver.S2SConnectionManager@6917f91d, bosh@dev01.test.com=tigase.server.bosh.BoshConnectionManager@1e70fa05, basic-conf@dev01.test.com=tigase.conf.Configurator@6bf3ede0, sess-man@dev01.test.com=tigase.server.xmppsession.SessionManager@7a1a9fe0, vhost-man@dev01.test.com=tigase.vhosts.VHostManager@5b86447e}
2014-08-28 11:23:41.778 [in_0-message-router]  BasicComponent.getDiscoItems()  FINEST:  Found disco items: null
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.processDiscoQuery()  FINEST: DiscoItems processed by: basic-conf@dev01.test.com, items: null
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.processPacket()  FINEST:   Processing packet: from=sess-man@dev01.test.com, to=null, DATA=<iq from="admin@xmpp.test.com/DEV01" type="get" xmlns="jabber:client" to="basic-conf@xmpp.test.com" id="abc5a">
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>, SIZE=181, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=get
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : basic-conf@xmpp.test.com
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.getLocalComponent()  FINEST: None compId matches (fast lookup): basic-conf@xmpp.test.com, for map: {amp@dev01.test.com=tigase.server.amp.AmpComponent@3725257b, pubsub@dev01.test.com=tigase.pubsub.PubSubComponent@606506f0, c2s@dev01.test.com=tigase.server.xmppclient.ClientConnectionManager@158805b, monitor@dev01.test.com=tigase.server.monitor.MonitorComponent@44981d16, stats@dev01.test.com=tigase.stats.StatisticsCollector@22c1b7fc, ws2s@dev01.test.com=tigase.server.websocket.WebSocketClientConnectionManager@634f6687, s2s@dev01.test.com=tigase.server.xmppserver.S2SConnectionManager@6917f91d, bosh@dev01.test.com=tigase.server.bosh.BoshConnectionManager@1e70fa05, basic-conf@dev01.test.com=tigase.conf.Configurator@6bf3ede0, sess-man@dev01.test.com=tigase.server.xmppsession.SessionManager@7a1a9fe0, vhost-man@dev01.test.com=tigase.vhosts.VHostManager@5b86447e}
2014-08-28 11:23:41.778 [in_0-message-router]  MessageRouter.processDiscoQuery()  FINEST: Processing disco query by: from=sess-man@dev01.test.com, to=null, DATA=<iq from="admin@xmpp.test.com/DEV01" type="get" xmlns="jabber:client" to="basic-conf@xmpp.test.com" id="abc5a">
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>, SIZE=181, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=get
2014-08-28 11:23:41.762 [in_4-message-router]  SessionManager.getDiscoInfo()  FINEST:   Not found disco info for node: stats, jid: stats@xmpp.test.com
2014-08-28 11:23:41.762 [in_1-message-router]  MessageRouter.getLocalComponent()  FINEST: None compId matches (fast lookup): bosh@xmpp.test.com, for map: {amp@dev01.test.com=tigase.server.amp.AmpComponent@3725257b, pubsub@dev01.test.com=tigase.pubsub.PubSubComponent@606506f0, c2s@dev01.test.com=tigase.server.xmppclient.ClientConnectionManager@158805b, monitor@dev01.test.com=tigase.server.monitor.MonitorComponent@44981d16, stats@dev01.test.com=tigase.stats.StatisticsCollector@22c1b7fc, ws2s@dev01.test.com=tigase.server.websocket.WebSocketClientConnectionManager@634f6687, s2s@dev01.test.com=tigase.server.xmppserver.S2SConnectionManager@6917f91d, bosh@dev01.test.com=tigase.server.bosh.BoshConnectionManager@1e70fa05, basic-conf@dev01.test.com=tigase.conf.Configurator@6bf3ede0, sess-man@dev01.test.com=tigase.server.xmppsession.SessionManager@7a1a9fe0, vhost-man@dev01.test.com=tigase.vhosts.VHostManager@5b86447e}
2014-08-28 11:23:41.762 [in_7-message-router]  MessageRouter.getLocalComponent()  FINEST: Called for : c2s@xmpp.test.com

My init.properties is like this:

config-type = --gen-config-def
--admins = admin@xmpp.test.com
--virt-hosts = xmpp.test.com, localhost
--vhost-anonymous-enabled = false
--debug = server, xmpp.impl, pubsub
--user-db=derby
--user-db-uri=jdbc:derby:./derbydb
--sm-plugins = message-all, -amp, -message, -jabber:iq:register, jabber:iq:roster-dynamic, -jabber:iq:roster, -presence, -vcard-temp, -jabber:iq:version, -jabber:iq:private
--comp-name-1 = pubsub
--comp-class-1 = tigase.pubsub.PubSubComponent

I didn't do anything concerning PubSub other than enable it here btw.

I only want dinamic roster, that is why I put jabber:iq:roster-dynamic, -jabber:iq:roster in @--sm-plugins@, I am not sure that is correct, but removing both of those does not change anything (for this problem).

Has anyone experienced this before? I don't know if this is a windows only issue or not.

I downloaded tigase-server-5.2.1-b3461-dist-max.zip

I will create an issue if this is new.

Thanks,

Gabriel


Replies (4)

Added by Wojciech Kapcia TigaseTeam over 4 years ago

Last lines from the console are simply a dump from the server statistics generated by the shutdown hook. You would need to go to the beginning of those statistics to find out what's happening.

My guess right now would be that you are trying to use bundled pubsub component, which is in version 3 and requires own schema (included in the archive) which is missing and it causes Tigase to shutdown with appropriate error message printed to the console log, but it was flooded with the statistics in your case.

Added by Gabriel Rossetti over 4 years ago

Hi Wojciech,

that was exactly the issue, thanks. I attached the Windows script to add it, it may be useful to someone else.

Gabriel

Added by Wojciech Kapcia TigaseTeam over 4 years ago

Thank you, I've included the script in the package.

Added by Gabriel Rossetti over 4 years ago

Cool, thanks.

    (1-4/4)