Confd is crashing with "Internal error: Supervision terminated"

Hi, we are using confd 6.7. Recently we have been seeing numerous authenticationFailure traps not being sent and the following message being printed to stdout.

Confd finally crashes with **"Internal error: Supervision terminated"**

**STDOUT** (logs are very frequent, more than one per second)
** [2021:01:15 00:23:36 437] SNMP MASTER-AGENT INFO ***
   Trap not sent:
   {system_limit,
       [{erlang,spawn_link,
            [proc_lib,init_p,
             [snmp_master_agent,
              [snmpa_agent_sup,snmpa_supervisor,snmp_app_sup,<0.2132.0>],
              snmpa_agent,do_send_trap,
              [{notification,authenticationFailure,
                   [1,3,6,1,6,3,1,1,5,5],
                   [],undefined},
               [],[],no_receiver,[],
               [{'$ancestors',
                    [snmpa_agent_sup,snmpa_supervisor,snmp_app_sup,
                     <0.2132.0>]},
                {mibserver,<0.2164.0>},
                {net_if,<0.2163.0>},
                {net_if_data,undefined},
                {snmp_context,undefined},
                {snmp_community,undefined},
                {snmp_request_id,undefined},
                {sname,ma},
                {set_module,confd_snmpa_set},
                {'__nslist',
                [...]
                {auth_module,snmpa_acm},
                {verbosity,info},
                {'$initial_call',{snmpa_agent,init,1}}],
               undefined]]],
            []},
        {proc_lib,spawn_link,3,[{file,"proc_lib.erl"},{line,93}]},
        {snmpa_agent,do_handle_send_trap,7,
            [{file,"snmpa_agent.erl"},{line,1927}]},
        {snmpa_agent,handle_call,3,[{file,"snmpa_agent.erl"},{line,917}]},
        {gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,645}]},
        {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,677}]},
        {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}

**STDOUT : CONFD CRASHED**
connection refused (debug_dump)
"Internal error: Supervision terminated\n"^M
"Internal error: Component terminated (application_controller) ({application_terminated,capi,shutdown})\n"^M

**DEVEL LOG**
devel-snmpa *encryption error: priv protocol*: 1.3.6.1.6.3.10.1.2.4

That looks like a resource leak to me. Are you able to throttle the amount of traps to be sent to check if the system is able to recover/release the resources when it is given some more time?

Btw. when you write that you are using confd-6.7, does it mean 6.7.x or really 6.7? The revision 6.7 is a bit dated already.

The issue was seen on all confd versions (eg 6.7, 7.3.2 etc)
Is there a reason why we are seeing “encryption error: priv protocol” ?

I’m not sure about trap throttling. We have setup an snmp trap target that takes v2 traps.

I’ve noticed that when snmpagent restarts confd crashes with Internal Error : Supervision Terminated.

The snmpagent can restart on changing snmp version, localengineid etc

Hi,

Any update on why we are seeing “encryption error: priv protocol” ?

(also correction in above message, we are sending v3 traps to the target with authPriv security level)

Thanks

There is not much that can fail during aes_encrypt, so I would assume this error is a consequence of other problems.