# Confd is throwing the confd\_maapi error

**URL:** <https://dmap-community.ductus.global/t/confd-is-throwing-the-confd-maapi-error/4364>\
**Category:** General\
**Created:** [February 27, 2023, 4:03pm UTC](https://dmap-community.ductus.global/t/confd-is-throwing-the-confd-maapi-error/4364 "2023-02-27T16:03:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PratheeshM](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@PratheeshM](https://dmap-community.ductus.global/u/PratheeshM)\
**Post date:** [February 27, 2023, 4:03pm UTC](https://dmap-community.ductus.global/t/confd-is-throwing-the-confd-maapi-error/4364/1 "2023-02-27T16:03:17Z")

</div>

Hi  
I am getting the following error in the confd.

```auto
=ERROR REPORT==== 27-Feb-2023::12:46:40.608765 ===
confd_maapi: diff_iter err: {error,{otts_closed,"otts_nif.c",1057}}: [{otts,
                                                                       pop_iter_node,
                                                                       [{otts,
                                                                         #Ref<0.1543815827.4196532225.8219>,
                                                                         0,
                                                                         #Ref<0.1543815827.4196401153.8220>}],
                                                                       []},
                                                                      {xds_ram,
                                                                       tts_fold_children,
                                                                       7,
                                                                       [{file,
                                                                         "xds_ram.erl"},
                                                                        {line,
                                                                         1446}]},
                                                                      {xds_ram,
                                                                       fold_children,
                                                                       4,
                                                                       [{file,
                                                                         "xds_ram.erl"},
                                                                        {line,
                                                                         488}]},
                                                                      {cs_trans_diff_iterate,
                                                                       sh_diff_iterate_x,
                                                                       10,
                                                                       [{file,
                                                                         "cs_trans_diff_iterate.erl"},
                                                                        {line,
                                                                         502}]},
                                                                      {cs_trans_diff_iterate,
                                                                       sh_diff_iterate,
                                                                       7,
                                                                       [{file,
                                                                         "cs_trans_diff_iterate.erl"},
                                                                        {line,
                                                                         152}]},
                                                                      {confd_maapi,
                                                                       '-diff_iter1/7-fun-3-',
                                                                       8,
                                                                       [{file,
                                                                         "confd_maapi.erl"},
                                                                        {line,
                                                                         535}]},
                                                                      {confd_maapi,
                                                                       diff_iter1,
                                                                       7,
                                                                       [{file,
                                                                         "confd_maapi.erl"},
                                                                        {line,
                                                                         533}]},
                                                                      {confd_maapi,
                                                                       diff_iter,
                                                                       5,
                                                                       [{file,
                                                                         "confd_maapi.erl"},
                                                                        {line,
                                                                         456}]},
                                                                      {confd_maapi,
                                                                       handle_lib,
                                                                       1,
                                                                       [{file,
                                                                         "confd_maapi.erl"},
                                                                        {line,
                                                                         789}]},
                                                                      {proc_lib,
                                                                       init_p,
                                                                       3,
                                                                       [{file,
                                                                         "proc_lib.erl"},
                                                                        {line,
                                                                         234}]}]

```

Also observed the confd-notifications restart by throwing this error

```auto
confd_notifications: confd_notifications.c:112: handle_diff_notif: Assertion `(maapi_diff_iterate(maapi_socket, tctx->thandle, iter, ITER_WANT_ATTR, ((void *)0))) == CONFD_OK' failed.

```

Can anyone please help to understand what this error means?
