Project

General

Profile

online message store

fan xiao
Added over 2 years ago

Hi,

When I run tigase server ,i didn't find the online message . I searched it in table msg_history .Did i searched wrong table ?

I appreciate any help from you guys.

Thank you.


Replies (4)

Added by jeff shaw over 2 years ago

You should add blow configure items in your init.properties file:

--sm-plugins = +message-archive-xep-0136,-message-carbons,+msgoffline

--comp-name-1=message-archive

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

message-archive/archive-repo-uri=jdbc:mysql://localhost:3306/tigasedb?user=root&password=mysql&useUnicode=true&characterEncoding=UTF-8

sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@yourhost

sess-man/plugins-conf/message-archive-xep-0136/default-store-method=message

sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body

sess-man/plugins-conf/message-archive-xep-0136/auto=true

Added by Wojciech Kapcia TigaseTeam over 2 years ago

fan xiao wrote:

Hi,

When I run tigase server ,i didn't find the online message . I searched it in table msg_history .Did i searched wrong table ?

Offline storage is enabled by default and you've looked in correct table. Have you send a message to user, which was offline?

jeff shaw wrote:

You should add blow configure items in your init.properties file:

--sm-plugins = +message-archive-xep-0136,-message-carbons,+msgoffline

--comp-name-1=message-archive

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

message-archive/archive-repo-uri=jdbc:mysql://localhost:3306/tigasedb?user=root&password=mysql&useUnicode=true&characterEncoding=UTF-8

sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@yourhost

sess-man/plugins-conf/message-archive-xep-0136/default-store-method=message

sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body

sess-man/plugins-conf/message-archive-xep-0136/auto=true

Message Archiving component is not responsible for storing offline messages!

Added by fan xiao over 2 years ago

Thanks for the help.

@ jeff shaw

I will try it.

@ Wojciech Kapcia

For example, I have two users,user A and user B .Eiterh of them was online ,sent a message ,I found it in table msg_history .But both of them were online ,I didn't find any messages .

Added by Wojciech Kapcia TigaseTeam over 2 years ago

fan xiao wrote:

For example, I have two users,user A and user B .Eiterh of them was online ,sent a message ,I found it in table msg_history .But both of them were online ,I didn't find any messages .

It's quite unlikely.

  • was the message delivered to the other contact? Can you share full log from XML console of the client?

  • can you enable debug --debug=server,xmpp.impl,db and check the logs of the processing of the message and verify why it was stored in the repository?

    (1-4/4)