Project

General

Profile

offline message doesn't seem to work

Raylin lin
Added about 5 years ago

hi all:

   I use tigase(5.3 built by myself),and when user(35434833,150096983) sent offline message to each other, they can not receive it. and I got empty set from the msg_history table;

my init.property :

config-type=--gen-config-def

--admins=admin@www.xxxxx.com

--virt-hosts = www.xxxxx.com

--debug=server,xmpp.XMPPIOService,db

--user-db=mysql

--user-db-uri=jdbc:mysql://192.168.1.3:3306/tigasedb?user=admin&password=thepassword&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:topicUser

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

this is the log info,offline message is geageag

2014-03-10 16:24:03.659 [pool-13-thread-26] XMPPIOService.processSocketData() FINEST: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, type: accept, Socket: TLS: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101 Socket[addr=/14.145.155.174,port=50101,localport=5222], jid: 150096983@wwww.xxxxx.com/Spark 2.6.3, READ:geageagbiak2u

2014-03-10 16:24:03.660 [pool-13-thread-26] XMPPIOService.processSocketData() FINEST: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, type: accept, Socket: TLS: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101 Socket[addr=/14.145.155.174,port=50101,localport=5222], jid: 150096983@wwww.xxxxx.com/Spark 2.6.3, Read packet: geageagbiak2u

2014-03-10 16:24:03.661 [pool-13-thread-26] ClientConnectionManager.processSocketData() FINEST: Processing socket data: from=null, to=null, DATA=CData size: 7CData size: 6, SIZE=211, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat from connection: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101

2014-03-10 16:24:03.661 [pool-13-thread-26] ClientConnectionManager.processSocketData() FINEST: XMLNS set for packet: from=null, to=null, DATA=CData size: 7CData size: 6, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat from connection: c2s@localhost/183.61.70.41_5222_14.145.155.174_50101

2014-03-10 16:24:03.662 [in_2-message-router] MessageRouter.processPacket() FINEST: Processing packet: from=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat

2014-03-10 16:24:03.662 [in_2-message-router] MessageRouter.getLocalComponent() FINEST: Called for : 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.663 [in_2-message-router] MessageRouter.getLocalComponent() FINEST: None compId matches (fast lookup): 35434833@wwww.xxxxx.com, for map: {s2s@localhost=tigase.cluster.S2SConnectionClustered@23006ff2, ws2s@localhost=tigase.cluster.WebSocketClientConnectionClustered@4537c13, basic-conf@localhost=tigase.conf.Configurator@4cf8744c, bosh@localhost=tigase.cluster.BoshConnectionClustered@4a2b11c0, monitor@localhost=tigase.cluster.MonitorClustered@65c6f01d, amp@localhost=tigase.server.amp.AmpComponent@5de46100, c2s@localhost=tigase.cluster.ClientConnectionClustered@1b68f060, sess-man@localhost=tigase.cluster.SessionManagerClustered@21e9753f, cluster-contr@localhost=tigase.cluster.ClusterController@3d144d62, vhost-man@localhost=tigase.cluster.VHostManagerClustered@4b9b510e, stats@localhost=tigase.stats.StatisticsCollector@103846d0, cl-comp@localhost=tigase.cluster.ClusterConnectionManager@a8182c5, muc@localhost=tigase.muc.MUCComponent@17dc67d5, pubsub@localhost=tigase.pubsub.PubSubComponent@64124f93}

2014-03-10 16:24:03.663 [in_2-message-router] MessageRouter.getLocalComponent() FINEST: Still no comp name matches (VHost lookup): 35434833@wwww.xxxxx.com, for map: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, for all VHosts: {3}

2014-03-10 16:24:03.663 [in_2-message-router] MessageRouter.getLocalComponent() FINEST: Component match failed: 35434833@wwww.xxxxx.com, for comp: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, basename: 173cx.com

2014-03-10 16:24:03.664 [in_2-message-router] MessageRouter.getLocalComponent() FINEST: Called for : sess-man@localhost

2014-03-10 16:24:03.664 [in_2-message-router] MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@localhost, from=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat

2014-03-10 16:24:03.664 [in_34-sess-man] SessionManager.processPacket() FINEST: processing packet: from=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, to=sess-man@localhost, DATA=CData size: 7CData size: 6, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat, connection: user_jid=150096983@wwww.xxxxx.com/Spark 2.6.3, packets=29, connectioId=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, domain=wwww.xxxxx.com, authState=AUTHORIZED, isAnon=false, isTmp=false

2014-03-10 16:24:03.665 [in_34-sess-man] PacketDefaultHandler.preprocess() FINEST: Skipping setting correct from attribute: 150096983@wwww.xxxxx.com/Spark 2.6.3, is already correct.

2014-03-10 16:24:03.665 [in_34-sess-man] SessionManager.walk() FINEST: XMPPProcessorIfc: MessageAmp (amp)Request: from=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat, conn: user_jid=150096983@wwww.xxxxx.com/Spark 2.6.3, packets=30, connectioId=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, domain=wwww.xxxxx.com, authState=AUTHORIZED, isAnon=false, isTmp=false

2014-03-10 16:24:03.666 [in_34-sess-man] SessionManager.walk() FINEST: XMPPProcessorIfc: MessageCarbons (message-carbons)Request: from=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=chat, conn: user_jid=150096983@wwww.xxxxx.com/Spark 2.6.3, packets=30, connectioId=c2s@localhost/183.61.70.41_5222_14.145.155.174_50101, domain=wwww.xxxxx.com, authState=AUTHORIZED, isAnon=false, isTmp=false

2014-03-10 16:24:03.666 [in_34-sess-man] SessionManager.processPacket() FINEST: Packet processed by: [amp, message-carbons]

2014-03-10 16:24:03.666 [in_29-message-router] MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@localhost, to=null, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=chat

2014-03-10 16:24:03.667 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Called for : 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.667 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: None compId matches (fast lookup): 35434833@wwww.xxxxx.com, for map: {s2s@localhost=tigase.cluster.S2SConnectionClustered@23006ff2, ws2s@localhost=tigase.cluster.WebSocketClientConnectionClustered@4537c13, basic-conf@localhost=tigase.conf.Configurator@4cf8744c, bosh@localhost=tigase.cluster.BoshConnectionClustered@4a2b11c0, monitor@localhost=tigase.cluster.MonitorClustered@65c6f01d, amp@localhost=tigase.server.amp.AmpComponent@5de46100, c2s@localhost=tigase.cluster.ClientConnectionClustered@1b68f060, sess-man@localhost=tigase.cluster.SessionManagerClustered@21e9753f, cluster-contr@localhost=tigase.cluster.ClusterController@3d144d62, vhost-man@localhost=tigase.cluster.VHostManagerClustered@4b9b510e, stats@localhost=tigase.stats.StatisticsCollector@103846d0, cl-comp@localhost=tigase.cluster.ClusterConnectionManager@a8182c5, muc@localhost=tigase.muc.MUCComponent@17dc67d5, pubsub@localhost=tigase.pubsub.PubSubComponent@64124f93}

2014-03-10 16:24:03.668 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Still no comp name matches (VHost lookup): 35434833@wwww.xxxxx.com, for map: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, for all VHosts: {3}

2014-03-10 16:24:03.668 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Component match failed: 35434833@wwww.xxxxx.com, for comp: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, basename: 173cx.com

2014-03-10 16:24:03.668 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Called for : 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.669 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: None compId matches (fast lookup): 35434833@wwww.xxxxx.com, for map: {s2s@localhost=tigase.cluster.S2SConnectionClustered@23006ff2, ws2s@localhost=tigase.cluster.WebSocketClientConnectionClustered@4537c13, basic-conf@localhost=tigase.conf.Configurator@4cf8744c, bosh@localhost=tigase.cluster.BoshConnectionClustered@4a2b11c0, monitor@localhost=tigase.cluster.MonitorClustered@65c6f01d, amp@localhost=tigase.server.amp.AmpComponent@5de46100, c2s@localhost=tigase.cluster.ClientConnectionClustered@1b68f060, sess-man@localhost=tigase.cluster.SessionManagerClustered@21e9753f, cluster-contr@localhost=tigase.cluster.ClusterController@3d144d62, vhost-man@localhost=tigase.cluster.VHostManagerClustered@4b9b510e, stats@localhost=tigase.stats.StatisticsCollector@103846d0, cl-comp@localhost=tigase.cluster.ClusterConnectionManager@a8182c5, muc@localhost=tigase.muc.MUCComponent@17dc67d5, pubsub@localhost=tigase.pubsub.PubSubComponent@64124f93}

2014-03-10 16:24:03.669 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Still no comp name matches (VHost lookup): 35434833@wwww.xxxxx.com, for map: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, for all VHosts: {3}

2014-03-10 16:24:03.669 [in_29-message-router] MessageRouter.getLocalComponent() FINEST: Component match failed: 35434833@wwww.xxxxx.com, for comp: {cl-comp=tigase.cluster.ClusterConnectionManager@a8182c5, c2s=tigase.cluster.ClientConnectionClustered@1b68f060, basic-conf=tigase.conf.Configurator@4cf8744c, s2s=tigase.cluster.S2SConnectionClustered@23006ff2, cluster-contr=tigase.cluster.ClusterController@3d144d62, bosh=tigase.cluster.BoshConnectionClustered@4a2b11c0, vhost-man=tigase.cluster.VHostManagerClustered@4b9b510e, sess-man=tigase.cluster.SessionManagerClustered@21e9753f, ws2s=tigase.cluster.WebSocketClientConnectionClustered@4537c13, message-router=tigase.server.MessageRouter@41e694e9, stats=tigase.stats.StatisticsCollector@103846d0, pubsub=tigase.pubsub.PubSubComponent@64124f93, amp=tigase.server.amp.AmpComponent@5de46100, monitor=tigase.cluster.MonitorClustered@65c6f01d, muc=tigase.muc.MUCComponent@17dc67d5}, basename: 173cx.com

2014-03-10 16:24:03.670 [in_29-message-router] MessageRouter.processPacket() FINEST: 2. Packet will be processed by: sess-man@localhost, from=sess-man@localhost, to=null, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=chat

2014-03-10 16:24:03.670 [in_61-sess-man] SessionManager.getXMPPResourceConnection() FINEST: Searching for resource connection for: 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.671 [in_61-sess-man] SessionManager.processPacket() FINEST: processing packet: from=sess-man@localhost, to=sess-man@localhost, DATA=CData size: 7CData size: 6, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=chat, connection: null

2014-03-10 16:24:03.671 [in_61-sess-man] SessionManager.walk() FINEST: XMPPProcessorIfc: MessageAmp (amp)Request: from=sess-man@localhost, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=chat, conn: null

2014-03-10 16:24:03.671 [in_61-sess-man] SessionManager.walk() FINEST: XMPPProcessorIfc: MessageCarbons (message-carbons)Request: from=sess-man@localhost, to=sess-man@localhost, DATA=geageagbiak2u, SIZE=233, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=chat, conn: null

2014-03-10 16:24:03.673 [in_61-sess-man] MsgRepository.storeMessage() FINEST: Storring expired: null message: geageagbiak2uOffline Storage - localhost

2014-03-10 16:24:03.677 [in_61-sess-man] MsgRepository.getUserUID() FINEST: Found entry for JID: 150096983@wwww.xxxxx.com, DB JID: 150096983@wwww.xxxxx.com

2014-03-10 16:24:03.679 [in_61-sess-man] MsgRepository.getUserUID() FINEST: Found entry for JID: 35434833@wwww.xxxxx.com, DB JID: 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.681 [in_61-sess-man] MsgRepository.storeMessage() FINE: Data truncated for message from 150096983@wwww.xxxxx.com/Spark 2.6.3 to 35434833@wwww.xxxxx.com

2014-03-10 16:24:03.682 [in_61-sess-man] SessionManager.processPacket() FINEST: Packet processed by: [amp, message-carbons, msgoffline]


Replies (6)

Added by Raylin lin about 5 years ago

well,if i put tigase in a LAN environment, it seems to work fine(can see offline message in msg_history), but if I put tigase on the Internet,I can not get any message from msg_history(the client receiver can not receive any offline message either).

Added by Wojciech Kapcia TigaseTeam about 5 years ago

Could you enable debugging for xmpp package (i.e.: @--debug=server,xmpp,db@) and share the logs, including @logs/tigase-console.log@?

Added by Raylin lin about 5 years ago

hi, Wojciech Kapcia:

        I've enabled debugging for xmpp package,restarted the tigase server,and tried again,  the offline message is "abcde" from user 35434833 to user 150096983.There are two files in the attachment(tigase.log.0 and tigase-console.log), thank you。

Added by Raylin lin about 5 years ago

hi,all:

     I  modified the code , printed Data truncated  exception log, and found "Data too long for column message at row 1". I modified the column length in mysql database, and It works now.
Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 5 years ago

Hm, what was the size of your message? The column length should be good enough for most common use cases.

Added by Raylin lin about 5 years ago

hi, Artur Hefczyc:

          I modified the column size from 4096 to 255(I should modified another column jid for mysql key 766 size limit,but not this one) before.    That caused  this error. It works after I recovered this column size.

    (1-6/6)