Project

General

Profile

archiving of MUC messages not works

Bruce Chung
Added over 2 years ago

I install Tigase 7.0.4 in cluster mode: im5 and im6.

But the archiving of MUC messages not works.

The etc/init.properties as below:

---------------------------------Begin----------------------------------

config-type=--gen-config-def
--admins=admin@swiftlive.conversant.com.cn,bruce@swiftlive.conversant.com.cn
--virt-hosts = swiftlive.conversant.com.cn
--debug=server,xmpp.XMPPIOService,db

--user-db=pgsql
--user-db-uri=jdbc:postgresql://192.168.1.69/tigasedb?user=tigase&password=tigase_dev&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

--comp-name-1=muc
--comp-class-1=tigase.muc.MUCComponent
--external = muc.swiftlive.conversant.com.cn:muc-pass:connect:5270:swiftlive.conversant.com.cn:accept

--comp-name-3=message-archive
--comp-class-3=tigase.archive.MessageArchiveComponent
sess-man/plugins-conf/message-archive-xep-0136/store-muc-messages=true

message-archive/archive-repo-uri=jdbc:postgresql://192.168.1.69/tigasedb?user=tigase&password=tigase_dev&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

--sm-plugins=-starttls,+message-archive-xep-0136
sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@swiftlive.conversant.com.cn
sess-man/plugins-conf/message-archive-xep-0136/auto=true

sess-man/plugins-conf/message-archive-xep-0136/default-store-method=body
sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body
sess-man/plugins-conf/unified-archive/msg-archive-paths[s]=/message/body,/message/subject

muc/muc-lock-new-room[B]=false
muc/room-log-directory[S]=/opt/app/tigase/logs/muc/

--cluster-mode=true
--cluster-nodes = im5.swiftlive.conversant.com.cn,im6.swiftlive.conversant.com.cn
--cluster-connect-all = true

-----------------------------------------End of init.properties File---------------------

Below is the tables of Tigase server

Under directory /opt/app/tigase/logs/muc/ there is no any muc log file.

Is there any problems of etc/init.properties?

I found some message in table muc_history but I think it is not for the archiving MUC message.

But where is the MUC archiving messages?

Can make the MUC archiving message stored in files?


Replies (2)

Added by Wojciech Kapcia TigaseTeam over 2 years ago

You also need to specify a logger, in case of file-base logging you should specify such logger class:

muc/muc-logger-class[S]=tigase.muc.logger.RoomChatLogger

In addition, in room configuration you must enable Room logging and select logger type (text, html).

Added by Bruce Chung over 2 years ago

Thank you. It works.

    (1-2/2)