ejabberd - Comments for "Server crashes" https://www.ejabberd.im/node/1307 en system wide increase https://www.ejabberd.im/node/1307#comment-54049 <p>Had some trouble with this, as PAM and root user restrictions obfuscated the setting. Here's the bug report:</p> <p><noindex><a href="https://bugs.launchpad.net/ubuntu/+source/pam/+bug/65244" title="https://bugs.launchpad.net/ubuntu/+source/pam/+bug/65244" rel="nofollow" >https://bugs.launchpad.net/ubuntu/+source/pam/+bug/65244</a></noindex></p> <p>Problem was that I set the value in limits.conf but PAM was not honoring it for ssh sessions. Then I used the * wildcard which was not honoring the value for the root user. The ejabberd user did have the proper ulimit applied.</p> Tue, 03 Mar 2009 23:10:10 +0000 lazzarello comment 54049 at https://www.ejabberd.im I've increased ulimit to https://www.ejabberd.im/node/1307#comment-52150 <p>I've increased ulimit to 2048, but problem still exist, than i've increased to 8192... but ejabberd still crashe..</p> <p># ulimit -n<br /> 8192</p> <p>We are running jabber on company with nearly 50-60 employees;<br /> Until migration to shared roster the ejabberd never crashes</p> <p>=ERROR REPORT==== 2008-04-10 15:28:59 ===<br /> Mnesia(ejabberd@debian): ** ERROR ** (could not write core file: emfile)<br /> ** FATAL ** Cannot open log file "/var/lib/ejabberd/PREVIOUS.LOG": {file_error,<br /> "/var/lib/ejabberd/PREVIOUS.LOG",<br /> emfile}</p> <p>=ERROR REPORT==== 2008-04-10 15:28:59 ===<br /> ** Generic server ejabberd_sm terminating<br /> ** Last message in was {mnesia_system_event,{mnesia_down,ejabberd@debian}}<br /> ** When Server state == {state}<br /> ** Reason for termination ==<br /> ** {node_not_running,ejabberd@debian}</p> <p>=INFO REPORT==== 2008-04-10 15:28:59 ===<br /> application: mnesia<br /> exited: shutdown<br /> type: temporary</p> <p>=INFO REPORT==== 2008-04-10 15:28:59 ===<br /> application: ejabberd<br /> exited: shutdown<br /> type: temporary</p> <p>Thanks in advance!!</p> Thu, 10 Apr 2008 12:49:42 +0000 sk comment 52150 at https://www.ejabberd.im You are running out of file https://www.ejabberd.im/node/1307#comment-52142 <p>You are running out of file descriptor. Increase your ulimit.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Wed, 09 Apr 2008 11:06:42 +0000 mremond comment 52142 at https://www.ejabberd.im server crashes after migrating company to use shared roster https://www.ejabberd.im/node/1307#comment-52141 <p>I am getting server crashes very often, in logs:</p> <p>=ERROR REPORT==== 2008-04-08 16:03:43 ===<br /> Mnesia(ejabberd@debian): ** ERROR ** (could not write core file: emfile)<br /> ** FATAL ** Cannot open log file "/var/lib/ejabberd/roster.DCL": {file_error,<br /> "/var/lib/ejabberd/roster.DCL",<br /> emfile}</p> <p>=ERROR REPORT==== 2008-04-08 16:03:43 ===<br /> ** Generic server ejabberd_sm terminating<br /> ** Last message in was {mnesia_system_event,{mnesia_down,ejabberd@debian}}<br /> ** When Server state == {state}<br /> ** Reason for termination ==<br /> ** {node_not_running,ejabberd@debian}</p> <p>=INFO REPORT==== 2008-04-08 16:03:43 ===<br /> application: mnesia<br /> exited: shutdown<br /> type: temporary</p> <p>---------------</p> <p>=ERROR REPORT==== 2008-04-09 12:49:53 ===<br /> Mnesia(ejabberd@debian): ** ERROR ** (could not write core file: emfile)<br /> ** FATAL ** Cannot open log file "/var/lib/ejabberd/PREVIOUS.LOG": {file_error,<br /> "/var/lib/ejabberd/PREVIOUS.LOG",<br /> emfile}</p> <p>=ERROR REPORT==== 2008-04-09 12:49:53 ===<br /> ** Generic server ejabberd_sm terminating<br /> ** Last message in was {mnesia_system_event,{mnesia_down,ejabberd@debian}}<br /> ** When Server state == {state}<br /> ** Reason for termination ==<br /> ** {node_not_running,ejabberd@debian}</p> <p>=INFO REPORT==== 2008-04-09 12:49:53 ===<br /> application: mnesia<br /> exited: shutdown<br /> type: temporary</p> <p>------------<br /> until mirating company to use shared roster all was ok.</p> <p>Linux Debian Etch<br /> # ulimit -n<br /> 1024</p> <p>What should I do to stop server crashes ?</p> Wed, 09 Apr 2008 10:07:10 +0000 sk comment 52141 at https://www.ejabberd.im Small comment regarding ulimit -n https://www.ejabberd.im/node/1307#comment-23699 <div class="quote-msg"> <div class="quote-author"><em>koniczynek</em> wrote:</div> <p>What could be the problem (file limit is not possible, because ulimit is "unlimited")?</p></div> <p>To know the maximum number of allowed file descriptors, you must run 'ulimit -n':</p> <pre>$ ulimit -n 1024</pre> Mon, 25 Jun 2007 16:53:02 +0000 mfoss comment 23699 at https://www.ejabberd.im