ejabberd - Comments for "Client gets disconnected unexpectedly" https://www.ejabberd.im/node/1199 en Problem behind a problem https://www.ejabberd.im/node/1199#comment-2705 <p>The message above is mostly irrelevant. If I understand correctly, something has made the expat process die, so the connection must be terminated with an appropriate error message. However, during the termination a function tries to close the expat port, which of course fails (since it is already closed), so the interesting error message has no chance of being printed. (I could be entirely wrong, of course)</p> <p>So try this patch. It won't make it work better, but you'll get a better error message.</p> <pre> --- orig/src/xml_stream.erl +++ mod/src/xml_stream.erl @@ -110,7 +110,7 @@ State#xml_stream_state{stack = NewStack, size = NewSize}. close(#xml_stream_state{port = Port}) -&gt; - port_close(Port). + catch port_close(Port). parse_element(Str) -&gt; </pre> Sun, 10 Dec 2006 12:26:51 +0000 legoscia comment 2705 at https://www.ejabberd.im or check /etc/init.d/ejabberd https://www.ejabberd.im/node/1199#comment-2703 <p>I had this happen also. I had to restart the server after running out of disk space and it refused to come back up. I just made a little change to /etc/init.d/ejabberd:</p> <p>&lt; --exec /usr/lib/erlang/erts-5.5/bin/beam \<br /> &gt; --exec /usr/lib/erlang/erts-5.5.1/bin/beam \</p> <p>And it started right up.</p> Sun, 10 Dec 2006 06:31:58 +0000 zengargoyle comment 2703 at https://www.ejabberd.im Poof. I just rebooted my https://www.ejabberd.im/node/1199#comment-2702 <p>Poof. I just rebooted my jabber server due to kernel upgrade, and suddenly I found myself with exactly the same problem you describe. I am also running hardened gentoo, so I thought at first it might be related, but it is not, it is much simpler. Gentoo recently bumped erlang version in stable x86, so I just re-emerged ejabberd using new erlang and everything works perfectly. Maybe emerging ejabberd again might help you too.</p> Sat, 09 Dec 2006 22:10:46 +0000 fissie comment 2702 at https://www.ejabberd.im Gentoo https://www.ejabberd.im/node/1199#comment-2584 <p>it's definately specific to your setup. either the hardened, 64bit or amd.</p> <p>i have ejabberd running since 0.7.5 version on two of my Gentoo machines without issue.</p> <p>i notice that your ejabberd is in /opt, it doesn't look like you used the Gentoo ebuilds to install. (maybe they don't support your architecture... i only have experience with the x86 builds).</p> <p>but the second of my installs is not via the ebuild, i just downloaded and configed and make installed the erlang and ejabberd packages the old fashioned way and still had no problems.</p> <p>which version of erlang are you using? from the log messages it looks like something is trying to start an external process 'exec expat_erl'. on my system there is no expat_erl program, only an expat_erl.so shared library.</p> <p>i would guess that there's something a bit weird in the expat XML library on your system that is causing different things to happen than on my system.</p> <p>FWIW, my system:</p> <p>Linux gir 2.6.17-gentoo-r8 #1 SMP PREEMPT Thu Sep 21 12:02:28 PDT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux</p> <p># emerge -pv ejabberd<br /> ...<br /> Calculating dependencies... done!<br /> [ebuild R ] net-im/ejabberd-1.1.2-r1 USE="ldap mod_muc mod_pubsub ssl web -mod_irc -odbc" 0 kB</p> Thu, 23 Nov 2006 22:42:39 +0000 zengargoyle comment 2584 at https://www.ejabberd.im Issues on Gentoo https://www.ejabberd.im/node/1199#comment-2583 <div class="quote-msg"> <div class="quote-author"><em>_AA_</em> wrote:</div> <p>I then thought it might be related to the hardened kernel so I tried to run it on my home PC. Also Gentoo amd64 but running a standard kernel. Exactly the same issue.</p></div> <p>Did you tried to connect using telnet? Can you test on another distribution? Can you test on another architecture? Can you test with another Erlang version?</p> <div class="quote-msg"> <div class="quote-author"><em>_AA_</em> wrote:</div> <p>It's amazing how people carry on about ejabberd being so easy to install.<br /> This evening must be about the 20th time I've tried to install it and not once have I managed to get it to work.</p></div> <p>ejabberd is <noindex><a href="http://www.process-one.net/tutorials/ejabberd_setup_linux_en_viewlet_swf.html" rel="nofollow" >easy to install</a></noindex>; you are just experiencing:</p> <ul> <li>a configuration problem (ejabberd, clients, DNS, firewall...),</li> <li>a Gentoo-related problem,</li> <li>a AMD64-related problem,</li> <li>an unknown bug in ejabberd or Erlang.</li> </ul> <div class="quote-msg"> <div class="quote-author"><em>_AA_</em> wrote:</div> <p>Maybe it's a 64bit gentoo thing? No wait, I tried installing it onto a windows box once too... </p></div> <p>...and did that worked? If that did also not worked I guess it is a configuration problem because ejabberd is known to run on Windows, and Windows installations are normally very similar...</p> <div class="quote-msg"> <div class="quote-author"><em>_AA_</em> wrote:</div> <p>Honestly, it boggles my mind that other people manage to get this installed and working.</p></div> <p>The only thing I had to do, was "portinstall erlang-lite &amp;&amp; portinstall ejabberd", and editing a few things in the configuration file (domain name for example)...IMO that's not hard.</p> <p>--<br /> sander</p> Thu, 23 Nov 2006 19:48:23 +0000 sander comment 2583 at https://www.ejabberd.im more than unhappy. https://www.ejabberd.im/node/1199#comment-2579 <p>Triend with TLS, SSL, just plain old unencrypted.<br /> Tried gaim, psi, and even jabbin ...</p> <p>None of them worked.<br /> I then thought it might be related to the hardened kernel so I tried to run it on my home PC. Also Gentoo amd64 but running a standard kernel. Exactly the same issue.</p> <p>It's amazing how people carry on about ejabberd being so easy to install.<br /> This evening must be about the 20th time I've tried to install it and not once have I managed to get it to work.</p> <p>Have the ejabberd developers ever tried installing wildfire or jabberd2? Because both of those are a piece of piss to install, but ejabberd?</p> <p>Maybe it's a 64bit gentoo thing? No wait, I tried installing it onto a windows box once too... </p> <p>Honestly, it boggles my mind that other people manage to get this installed and working.</p> Thu, 23 Nov 2006 01:42:22 +0000 _AA_ comment 2579 at https://www.ejabberd.im Try with and without STARTTLS https://www.ejabberd.im/node/1199#comment-2576 <p>To find where is the problem, and for what reason, try connecting with other options: STARTTLS, old SSL or just plain. You may need to try with different clients.</p> Wed, 22 Nov 2006 10:20:03 +0000 mfoss comment 2576 at https://www.ejabberd.im Environment https://www.ejabberd.im/node/1199#comment-2574 <p>Linux gentoo 2.6.17-hardened-r1 #5 SMP Wed Nov 1 02:30:44 SAST 2006 x86_64<br /> AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux</p> Wed, 22 Nov 2006 01:03:08 +0000 _AA_ comment 2574 at https://www.ejabberd.im