ejabberd - Comments for "Ejabberd crashes after 2.1.5 -&amp;gt; 16.09 upgrade " https://www.ejabberd.im/forum/28588/ejabberd-crashes-after-215-1609-upgrade en I'm ok with that start time. https://www.ejabberd.im/forum/28588/ejabberd-crashes-after-215-1609-upgrade#comment-67159 <p>I'm ok with that start time. I just was not sure if ejabberd should check these passwords every restart or no. If it needs it, then let it be so</p> <p>About users - I don't think there gonna be great increase, so I did not plan to move to another storage engine.</p> Thu, 27 Oct 2016 10:20:57 +0000 Merlyel comment 67159 at https://www.ejabberd.im Merlyel wrote: > Do you have https://www.ejabberd.im/forum/28588/ejabberd-crashes-after-215-1609-upgrade#comment-67157 <div class="quote-msg"> <div class="quote-author"><em>Merlyel</em> wrote:</div> <p>&gt; Do you have many users? And does it take too long to start ejabberd due to that (almost unnecessary) step?<br /> About 15000 registered users. Start takes about 3-4 minutes </p></div> <p>You can try to disable that scram step, that may improve your start time:</p> <pre> --- a/src/ejabberd_auth_mnesia.erl +++ b/src/ejabberd_auth_mnesia.erl @@ -367,7 +367,7 @@ update_table() -&gt; case mnesia:table_info(passwd, attributes) of Fields -&gt; convert_to_binary(Fields), - maybe_scram_passwords(), + %%maybe_scram_passwords(), ok; _ -&gt; ?INFO_MSG("Recreating passwd table", []), </pre><div class="quote-msg"> <div class="quote-author"><em>Merlyel</em> wrote:</div> <p>&gt; Do you have many users? Maybe mnesia backup is not efficient for backing up so many users. Also check which mnesia tables are bigger (you can see with "mnesia info", or in the WebAdmin.<br /> Largest tables:<br /> &gt; offline_msg : with 89441 records occupying 73924455 bytes on disc<br /> &gt; roster : with 48611 records occupying 3323591 words of mem</p> <p>&gt; then you better forget about that backup method.<br /> I'm afraid that if backup fails, then it may be the sign of a larger problem that can pop up later after I upgrade prod server</p></div> <p>Those sound reasonable numbers for 15000 registered accounts. You can try to purge old useless information with commands like delete_old_users and delete_old_messages.</p> <p>Also, it may happen that mnesia (as a default internal database for basic usage) is not able to handle your present or future requirements. If you expect the amount of users to increase shortly, you should try to use a SQL storage, which is anyway recommended for large databases. Another benefit is that you probably already know how your prefered SQL server works and how to administer it, compared to a Mnesia database.</p> Wed, 26 Oct 2016 11:11:12 +0000 badlop comment 67157 at https://www.ejabberd.im > Do you have many users? And https://www.ejabberd.im/forum/28588/ejabberd-crashes-after-215-1609-upgrade#comment-67156 <p>&gt; Do you have many users? And does it take too long to start ejabberd due to that (almost unnecessary) step?<br /> About 15000 registered users. Start takes about 3-4 minutes</p> <p>&gt; Do you have many users? Maybe mnesia backup is not efficient for backing up so many users. Also check which mnesia tables are bigger (you can see with "mnesia info", or in the WebAdmin.<br /> Largest tables:<br /> &gt; offline_msg : with 89441 records occupying 73924455 bytes on disc<br /> &gt; roster : with 48611 records occupying 3323591 words of mem</p> <p>&gt; then you better forget about that backup method.<br /> I'm afraid that if backup fails, then it may be the sign of a larger problem that can pop up later after I upgrade prod server</p> Wed, 26 Oct 2016 07:36:22 +0000 Merlyel comment 67156 at https://www.ejabberd.im > Is that OK? Or it should https://www.ejabberd.im/forum/28588/ejabberd-crashes-after-215-1609-upgrade#comment-67154 <p>&gt; Is that OK? Or it should appear only during spool upgrade?</p> <p>It's OK in the sense that the code works that way: if the SCRAM option is set, then it traverses all the passwd table to convert to SCRAM any plaintext password it finds. Do you have many users? And does it take too long to start ejabberd due to that (almost unnecessary) step?</p> <p>&gt; ejabberdctl backup file... Ejabberd creates backup file of about 1M size and then hangs.</p> <p>Do you have many users? Maybe mnesia backup is not efficient for backing up so many users. Also check which mnesia tables are bigger (you can see with "mnesia info", or in the WebAdmin.</p> <p>If you see nothing abnormal in your tables sizes (no signs of spammers or abusers), then you better forget about that backup method. Instead simply copy the spool files, preferably with ejabberd stopped or when there's low access to the database (for example on sunday at 4 AM).</p> Tue, 25 Oct 2016 16:21:47 +0000 badlop comment 67154 at https://www.ejabberd.im