ejabberd - Comments for "Nothing Happens" https://www.ejabberd.im/node/1078 en Solved https://www.ejabberd.im/node/1078#comment-2451 <p>It seems that daemon, responsible for launching services when using "service name action", makes something weird (I think it does not export env variables, which some of them are needed for erl.<br /> If someone experience the same problem that described above, I suggest using :</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>start() {<br /> echo -n $"Starting ejabberd: "</p> <p> export HOME="/var/lib/ejabberd"<br /> daemon \<br /> erl "-pa /usr/lib/ejabberd-1.1.2/ebin \<br /> -sname ejabberd \<br /> -s ejabberd \<br /> -ejabberd \<br /> config \\\"/etc/ejabberd/ejabberd.cfg\\\" \<br /> log_path \\\"/var/log/ejabberd/ejabberd.log\\\" \<br /> -sasl sasl_error_logger \\{file,\\\"/var/log/ejabberd/sasl.log\\\"\\} \<br /> -mnesia dir \\\"/var/lib/ejabberd/spool\\\" \<br /> -kernel inetrc \\\"/etc/ejabberd/inetrc\\\" \<br /> -detached"</p> <p> RETVAL=$?<br /> [ $RETVAL -eq 0 ] &amp;&amp; touch /var/lock/subsys/ejabberd<br /> echo<br /> return $RETVAL<br /> } </p></div> <p>And BTW, restart(), which calls start() and stop() fails 1 every 2 times. I have no idea why...</p> <p>A very quick fix is :</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>restart() {<br /> stop<br /> # restart() fails if start() follows stop() directly. Bad fix.<br /> sleep 1<br /> start<br /> } </p></div> Wed, 25 Oct 2006 08:42:46 +0000 elshaa comment 2451 at https://www.ejabberd.im Hi. I have the same problem https://www.ejabberd.im/node/1078#comment-2446 <p>Hi.</p> <p>I have the same problem here.<br /> I have 2 machines :<br /> -A, local machine, running FC5<br /> -B, remote server, running RHEL4</p> <p>I installed ejabberd on A to make some tests before I set it up on B. It worked well. I am no totally sure, but I think I rebooted my machine during tests because of kernel upgrade (not related to ejabberd)<br /> Then I decided to install ejabberd on B. ( erlang R11B-0.3.el4, ejabberd-1.1.2 )<br /> No problem during the installation.</p> <p>The only thing is that the initscript</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>start() {<br /> echo -n $"Starting ejabberd: "<br /> daemon --user=ejabberd --check=ejabberd \<br /> "erl" "-pa /usr/lib/ejabberd-1.1.2/ebin \<br /> -sname ejabberd \<br /> -s ejabberd \<br /> -ejabberd config \\\"/etc/ejabberd/ejabberd.cfg\\\" \<br /> log_path \\\"/var/log/ejabberd/ejabberd.log\\\" \<br /> -sasl sasl_error_logger \\{file,\\\"/var/log/ejabberd/sasl.log\\\"\\} \<br /> -mnesia dir \\\"/var/lib/ejabberd/spool\\\" \<br /> -kernel inetrc \\\"/etc/ejabberd/inetrc\\\" \<br /> -detached"<br /> RETVAL=$?<br /> [ $RETVAL -eq 0 ] &amp;&amp; touch /var/lock/subsys/ejabberd<br /> echo<br /> return $RETVAL<br /> } </p></div> <p>shows ejabberd starts successfully, but the process actually doesn't exists.<br /> Here is the entry in /var/log/messages :</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Oct 23 20:09:32 dev02 epmd: epmd: epmd running - daemon = 1<br /> Oct 23 20:09:32 dev02 ejabberd: ejabberd startup succeeded </p></div> <p>Unfortunately, nothing is written in /var/log/ejabberd/ejabberd.log (like seebs says, the ejabberd process probably dies before it can log anything).<br /> And of course, nothing is listening on 5222 and other default ejabberd ports.</p> <p>I think rebooting Q is one of the reason that makes it run (not sure), but I would like to avoid rebooting B (production server).</p> <p>Thanks</p> Mon, 23 Oct 2006 18:18:13 +0000 elshaa comment 2446 at https://www.ejabberd.im Is there still free space on https://www.ejabberd.im/node/1078#comment-2373 <p>Is there still free space on the partition where the log file is stored? Does there runs a beam and/or an epmd process and is the load for it normal?</p> <p>--<br /> sander</p> Fri, 06 Oct 2006 07:49:39 +0000 sander comment 2373 at https://www.ejabberd.im And it's back. https://www.ejabberd.im/node/1078#comment-2370 <p>As suggested in another thread, I downgraded to Erlang release 10. Worked fine for a couple of weeks.</p> <p>Now it's doing this again. No diagnostics, no output of any sort to anything, no ports open. Just NOTHING.</p> <p>There is obviously something going on that causes this, but I really have no clue where to even begin looking. Presumably, the server has failed before it gets as far as writing a log file. Where should I look for output, given that?</p> Fri, 06 Oct 2006 00:49:43 +0000 seebs comment 2370 at https://www.ejabberd.im Re-compiled, reinstalled, it https://www.ejabberd.im/node/1078#comment-2315 <p>Re-compiled, reinstalled, it runs now. No idea what was happening.</p> Sun, 24 Sep 2006 01:25:52 +0000 seebs comment 2315 at https://www.ejabberd.im