Daniel Dormont | 8 Sep 2011 15:54
Favicon

Re: restart strategy for extauth

On Thu, Sep 8, 2011 at 4:51 AM, Badlop <badlop <at> gmail.com> wrote:
> 2011/9/7 Daniel Dormont <dan <at> greywallsoftware.com>:
>> Hi, I am using extauth and I'm running into a tricky situation: what
>> happens if my extauth program crashes? As best I can tell, what
>> happens is the port closes and subsequent auth requests fail with a
>> message like:
>>
>> =CRASH REPORT==== 6-Sep-2011::17:33:02 ===
>>  crasher:
>>    initial call: gen:init_it/6
>>    pid: <0.20948.0>
>>    registered_name: []
>>    exception exit: {badarg,[{extauth,call_port,2},
>>                             {ejabberd_auth_external,check_password_extauth,3},
>>                             {ejabberd_auth,check_password_loop,2},
>
>> Can extauth be configured to restart the program automatically? thanks,
>
> ejabberd 2.1.7 has this feature, no need to configure it:
>> Restart an extauth script instance if it crashes
>> https://support.process-one.net/browse/EJAB-1428
>
> Apparently you found a bug in that feature and sometimes it doesn't restart.
> Can you provide a modified check_pass_null.pl (or any other simple
> script) that provokes the crash, so I can investigate why some
> crashing scripts aren't restarted?
>

I forgot to mention earlier, I am still running 2.1.6 (actually
something more like a 2.1.5/2.1.6 hybrid, truth be told). Let me
upgrade and try it again.

Dan

Gmane