I'm getting below error message in error.log of ejabberd when i try to authenticate through an external python script (Tried with java also).
External script is succesfully receiving inputs from ejabberd and processing it how it should. But it takes a long time to receive the input in external script , by that time ejabberd gets timedout.
Error Log:
2023-03-18 18:01:27.127906+00:00 [error] <0.925.0>@ejabberd_auth_external:failure/4:103 External authentication program failed when calling 'check_password' for vipin@xmpp.mydomain.org: timeout
2023-03-18 17:46:12.699876+00:00 [error] <0.667.0>@supervisor:do_restart/3:736 SUPERVISOR REPORT:
supervisor: {local,'extauth_pool_xmpp.mydomain.org'}
errorContext: child_terminated
reason: normal
offender: [{pid,<0.668.0>},
{id,'extauth_pool_xmpp.mydomain.org_1'},
{mfargs,{extauth,start_link,
['extauth_pool_xmpp.mydomain.org_1',
"/usr/bin/python3 /home/ejabberd/external-auth.py"]}},
{restart_type,permanent},
{significant,false},
{shutdown,5000},
{child_type,worker}]
External auth configuration in ejabberd.yml :
auth_method: external
extauth_program: "/usr/bin/python3 /home/ejabberd/external-auth.py"
extauth_pool_size: 1
I'm using ejabberd/ecs
docker image. Copied python script inside the custom docker image created from ejabberd/ecs.
Any help much appreciated