ejabberd - Comments for "Message sent by User A to a offline user B is not received by the User B when online but that message is found in the archive" https://www.ejabberd.im/forum/25573/message-sent-user-offline-user-b-not-received-user-b-when-online-message-found-archive en After digging a lot through https://www.ejabberd.im/forum/25573/message-sent-user-offline-user-b-not-received-user-b-when-online-message-found-archive#comment-67053 <p>After digging a lot through error log i came to know that messages are not getting inserted into SPOOL table , error saying that database was too slow or not available .</p> <p>[error] &lt;0.393.0&gt;@ejabberd_odbc:run_sql_cmd:382 Database was not available or too slow, discarding 61231 milliseconds old request.</p> Thu, 15 Sep 2016 09:48:46 +0000 amoghsingh comment 67053 at https://www.ejabberd.im amoghsingh wrote: Could you https://www.ejabberd.im/forum/25573/message-sent-user-offline-user-b-not-received-user-b-when-online-message-found-archive#comment-67043 <div class="quote-msg"> <div class="quote-author"><em>amoghsingh</em> wrote:</div> <p>Could you please tell me which default should I set to always. Is it for default: under record archive_prefs? Please specify..</p></div> Mon, 12 Sep 2016 12:04:49 +0000 amoghsingh comment 67043 at https://www.ejabberd.im Could you please tell me https://www.ejabberd.im/forum/25573/message-sent-user-offline-user-b-not-received-user-b-when-online-message-found-archive#comment-67042 <p>Could you please tell me which default should I set to always. Is it for default: under record archive_prefs? Please specify..</p> Mon, 12 Sep 2016 11:34:46 +0000 amoghsingh comment 67042 at https://www.ejabberd.im I guess you refer to mod_mam, https://www.ejabberd.im/forum/25573/message-sent-user-offline-user-b-not-received-user-b-when-online-message-found-archive#comment-67041 <p>I guess you refer to mod_mam, and you enabled it in the ejabberd configuration file. Try to set the option default: always, so all messages are stored.</p> Mon, 12 Sep 2016 10:56:10 +0000 badlop comment 67041 at https://www.ejabberd.im