ejabberd - Comments for "How to debug extauth?" https://www.ejabberd.im/node/4404 en dp_wiz wrote: I moved my https://www.ejabberd.im/node/4404#comment-56822 <div class="quote-msg"> <div class="quote-author"><em>dp_wiz</em> wrote:</div> <p>I moved my ejabberd to new server and found that my extauth script is no longer working. It starts, writes an entry into log file and... does nothing.<br /> Maybe ejabberd itself is killing it </p></div> <p>Remember that your extauth script must have an infinite loop.</p> <div class="quote-msg"> <div class="quote-author"><em>dp_wiz</em> wrote:</div> <p>I moved my ejabberd to new server and found that my extauth script is no longer working. It starts, writes an entry into log file and... does nothing.<br /> Also, i see «crash» message on every connection try:</p> <div class="codeblock"><code>** Reason for termination = <br />** {badarg,[{extauth,call_port,2},</code></div> <p>Which «arg» is «bad» i honestly don't know because there's nothing in my script log and erlang dumps are so unhelpful ): </p></div> <p>The bad argument problem is detected in the function call_port. That function tries to send an erlang message to the erlang process that is connected to your script. Apparently that process doesn't exist.</p> <p>Simple example:</p> <pre> $ erl Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false] Eshell V5.7.5 (abort with ^G) 1&gt; self() ! hello. hello 2&gt; aei ! hello. ** exception error: bad argument in operator !/2 called as aei ! hello </pre> Fri, 19 Nov 2010 11:35:40 +0000 mfoss comment 56822 at https://www.ejabberd.im