Hi,
I have enabled mod_mam with db_type: odbc and it works fine.
It logs both 1 to 1 messages and muc messages.
However, when i restart ejabber service ( or muc module ), then mod_muc stops archiving for rooms that were created before the service was restarted. Rooms that are created after the restart, will continue to archive as they should.
What do i need to do, to make mod_mam archive always...even after the server has been restarted. ?
It works correctly for me
It works correctly for me using ejabberd 15.11:
- Server has mod_muc and mod_mam enabled
- User logins and creates a room, configures as persistent and archiving
- Sends some messages
- Then I restart mod_mam using ejabberd's WebAdmin
- User joins again this existing room and sends more messages
- User also joins a new room, configures archiving and sends a message
- I see in the archive_msg Mnesia table that all those messages are stored
Note: I didn't verify that the stored messages can be retrieved by a client. I only verified that the messages are stored in the database.
What ejabberd version are you using?
When you restart mod_muc, join an existing room and check its configuration. Is "archiving" enabled, or it was strangely disabled?