ejabberd - Comments for "doesn&amp;#039;t establish connections anymore" https://www.ejabberd.im/node/4021 en Got it running again. :-) I https://www.ejabberd.im/node/4021#comment-55652 <p>Got it running again. :-)</p> <p>I made a backup and then ran 'aptitude reinstall'. Since that flushed the hostname and admin user out auf the configuration file, I then used dpkg-reconfigure to set those settings. Then everything worked fine and I didn't even have to import the backup - all the data got preserved.</p> <p>Sadly, I don't know whether the reinstall or the reconfiguration did the trick (should have tried the reconf first...)</p> Sun, 02 May 2010 07:20:15 +0000 Shakademus comment 55652 at https://www.ejabberd.im It is, no intrusion happened; https://www.ejabberd.im/node/4021#comment-55640 <p>It is, no intrusion happened; so it'll be the reinstallation... Hope it helps.</p> Sat, 24 Apr 2010 23:16:39 +0000 Shakademus comment 55640 at https://www.ejabberd.im Random port: typical in erlang https://www.ejabberd.im/node/4021#comment-55638 <div class="quote-msg"> <div class="quote-author"><em>Shakademus</em> wrote:</div> <p>What I just mentioned when looking for the webadmin: Besides c2s, s2s, http and a locally listening port 7777, there's a port 34188 beam is listening on. May it be the daemon got hacked? Could be a remote shell I guess...</p></div> <p>That random-looking port number is typical in erlang, see<br /> <noindex><a href="http://www.process-one.net/en/ejabberd/guide_en#firewall" title="http://www.process-one.net/en/ejabberd/guide_en#firewall" rel="nofollow" >http://www.process-one.net/en/ejabberd/guide_en#firewall</a></noindex></p> <p>How to reproduce:<br /> 1. In a shell execute: </p> <pre> erl -sname aaa </pre><p>2. In another shell execute: </p> <pre> $ epmd -names epmd: up and running on port 4369 with data: name aaa at port 44399 </pre><p>3. Then verify this is the port number that you found intriguing:</p> <pre> $ netstat -nlp | grep beam (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:44399 0.0.0.0:* LISTEN 11513/beam.smp </pre> Sat, 24 Apr 2010 19:22:48 +0000 mfoss comment 55638 at https://www.ejabberd.im No, s2s connection do not https://www.ejabberd.im/node/4021#comment-55637 <p>No, s2s connection do not work as well. As I said the logs only show an 'Accepted connection' message, no 'Connection established' or anything else following.</p> <p>What I said about authentication was wrong. I mixed that up, sorry. In fact I _do_ use the standard internal method.</p> <p>Connecting to webadmin, I get a 404 Not Found page. I don't know whether that's normal or not, since I've never used it before. But the good news: Calling webadmin, the connection does not terminate abnormally, just normal responses. Log shows:</p> <div class="codeblock"><code>=INFO REPORT==== 2010-04-24 19:03:27 ===<br />I(&lt;0.248.0&gt;:ejabberd_listener:112) : (#Port&lt;0.744&gt;) Accepted connection {{92,226<br />,110,251},50207} -&gt; {{89,238,65,243},5280} <p>=INFO REPORT==== 2010-04-24 19:03:27 ===<br />I(&lt;0.241.0&gt;:ejabberd_http:123) : started: {gen_tcp,#Port&lt;0.744&gt;}</p></code></div> <p>So it seems the problem is bound to just xmpp connections.</p> <p>I think I'll try to reinstall these days, although I would really like to know what's wrong / what happened.</p> <p>What I just mentioned when looking for the webadmin: Besides c2s, s2s, http and a locally listening port 7777, there's a port 34188 beam is listening on. May it be the daemon got hacked? Could be a remote shell I guess...</p> Sat, 24 Apr 2010 17:29:45 +0000 Shakademus comment 55637 at https://www.ejabberd.im Try to use "Service https://www.ejabberd.im/node/4021#comment-55635 <p>Try to use "Service Discovery" from a remote server (like jabber.org) to your ejabberd. If you can see your MUC service, Pubsub, Vjud... then the problem is only in client connections.</p> <p>You say that in ejabberd.cfg you don't use the internal auth_method. In that case, configure auth_method to use internal, register some dummy account "dummy123", and try to login to it. If that works, it means the problem is only in your specific auth method.</p> <p>You can also check if ejabberd WebAdmin works or not.</p> <p>If that doesn't work either... then I ran out of ideas. Of course, you can try to backup your Mnesia spool dir, your configuration file, and reinstall ejabberd.</p> Sat, 24 Apr 2010 14:58:18 +0000 mfoss comment 55635 at https://www.ejabberd.im