I've successfully deployed a ejabberd server and integrated it with a mobile application.
Everything works great, however, every time I restart the server, the history of every room is lost. Actually, it is still stored in the database, but the client isn't able to retrieve it anymore.
Initially I thought it was a client issue, but I've experienced the same using well-known clients such as Xabber and Pidgin.
I checked multiple times the configuration tutorial https://docs.ejabberd.im/admin/configuration/#mod-muc but I haven't found anything.
Has anything similar ever happened to you guys? What could be the reason behind this unexpected behavior?
Here's how moc_muc is configured on the server:
mod_muc: host: "conf.example.com" history_size: 1000 max_users: 1000000 max_user_conferences: 1000 default_room_options: mam: true max_users: 1000000 members_by_default: true members_only: false password_protected: false persistent: true public: true moderated: false anonymous: false