#1048 [mod_mam] mam doesn't archive messages after server shutdown
What steps will reproduce the problem?
1. Setup mam to always archive on internal memory (same issue with SQL as well)
2. Send some messages
3. Restart the server
What is the expected output?
I'm expecting to see all the messages once again and be able to fetch them.
What do you see instead?
mam is empty and i can't archive any messages sent pre-restart
What version of the product are you using? On what operating system?
We're running the latest version of prosody on Ubuntu 16
Please provide any additional information below.
The response we get from the server when asking for prefs are following :
xmlns="jabber:client" id="jebeniKveri" type="result" to="email@example.com/ab4f7a26-8147-4d59-a35b-9cc5ef25f9b0"><prefs xmlns="urn:xmpp:mam:2" default="always"><always/><never/></prefs></iq
Everything works as normal when the server is up and running, all the messages are archived but when we restart the server they are all gone. We tried everything and didn't get it to work. When trying over SQL it doesn't create any additional tables for it nor does it archive.
What does "the latest version" mean, exactly? Check `prosodyctl about`.
If this is 0.9.x then what you see is the expected behaviour. Proper archive support was added in 0.10, and if you are using mod_mam from the community repo with 0.9.x then it will only store archives in memory, which are lost on restarts. If that is the case, there should be a log message saying so.
No response, going to assume that comment #2 was the case. Report back if you are still having issues.