ejabberd - Comments for "ejabberd compiles(X86_64) but doesn&amp;#039;t work" https://www.ejabberd.im/node/4383 en Check logs at ejabberd start https://www.ejabberd.im/node/4383#comment-56790 <div class="quote-msg"> <div class="quote-author"><em>greg_nate</em> wrote:</div> <p>I get this error in the erlang log when connecting to the port:<br /> Reason: {badarg,[{erlang,port_close,[#Port&lt;0.3506&gt;]},</p></div> <p>The documentation of the function port_close says:</p> <pre>port_close(Port) -&gt; true ... Failure: badarg if Port is not an open port or the registered name of an open port.</pre><p> You can try to recompile ejabberd.</p> <p>Also, look if there is any error in the log files related to ejabberd starting: maybe ejabberd reports a more useful error report when starting itself.</p> Tue, 02 Nov 2010 20:22:23 +0000 mfoss comment 56790 at https://www.ejabberd.im tried recompiling. new error https://www.ejabberd.im/node/4383#comment-56782 <p>I get this error in the erlang log when connecting to the port:</p> <p>=CRASH REPORT==== 29-Oct-2010::21:00:54 ===<br /> crasher:<br /> initial call: ejabberd_receiver:init/1<br /> pid: &lt;0.356.0&gt;<br /> registered_name: []<br /> exception exit: {badarg,[{erlang,port_close,[#Port&lt;0.3506&gt;]},<br /> {xml_stream,close,1},<br /> {ejabberd_receiver,terminate,2},<br /> {gen_server,terminate,6},<br /> {proc_lib,init_p_do_apply,3}]}<br /> in function gen_server:terminate/6<br /> ancestors: [ejabberd_receiver_sup,ejabberd_sup,&lt;0.36.0&gt;]<br /> messages: []<br /> links: [#Port&lt;0.3495&gt;,&lt;0.250.0&gt;]<br /> dictionary: []<br /> trap_exit: false<br /> status: running<br /> heap_size: 233<br /> stack_size: 24<br /> reductions: 175<br /> neighbours:</p> <p>=SUPERVISOR REPORT==== 29-Oct-2010::21:00:54 ===<br /> Supervisor: {local,ejabberd_receiver_sup}<br /> Context: child_terminated<br /> Reason: {badarg,[{erlang,port_close,[#Port&lt;0.3506&gt;]},<br /> {xml_stream,close,1},<br /> {ejabberd_receiver,terminate,2},<br /> {gen_server,terminate,6},<br /> {proc_lib,init_p_do_apply,3}]}<br /> Offender: [{pid,&lt;0.356.0&gt;},<br /> {name,undefined},<br /> {mfargs,<br /> {ejabberd_receiver,start_link,<br /> [#Port&lt;0.3495&gt;,gen_tcp,none,65536]}},<br /> {restart_type,temporary},<br /> {shutdown,brutal_kill},<br /> {child_type,worker}]</p> Fri, 29 Oct 2010 20:02:34 +0000 greg_nate comment 56782 at https://www.ejabberd.im