[sysrepo-announce] a question about sysrepo when forced power off the device

dx dengxunaaa at 163.com
Wed Jun 24 08:02:23 UTC 2020


i have call sr_unsubscribe when device shutdown or reboot normally,but when i force power off the device.
the program will not call sr_unsubscribe. there will be some residual files in the system. what should i do to  when device force power off to deal with these problems?


for  example: 
there are some residual  content in ietf-keystore.persist in /etc/sysrepo/data
and there are residual socks : 2127.yargFz.sock in /var/run/sysrepo-subscriptions/ietf-keystore






when the device restart, there will be some errors as below:
 calhost sysrepod[1533]: [ERR] (pm_save_persistent_data:409) Unable to modify persist data tree.
Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (np_unsubscribe_destination:1178) Unable to remove subscriptions for destination '/var/run/sysrepo-subscriptions/ietf-keystore/2125.aIQVaa.sock' from 'ietf-keystore'.
Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (pm_save_persistent_data:409) Unable to modify persist data tree.
Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (np_unsubscribe_destination:1178) Unable to remove subscriptions for destination '/var/run/sysrepo-subscriptions/ietf-keystore/2125.aIQVaa.sock' from 'ietf-keystore'.
Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (pm_save_persistent_data:409) Unable to modify persist data tree.


Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (np_notification_subscribe:1046) Unable to enable the subtree in the running datastore.
Jun 23 14:54:13 localhost sysrepo-sysrepo-plugind[2102]: [ERR] (sr_subtree_change_subscribe:2617) Error by processing of the request.
Jun 23 14:54:13 localhost sysrepod[1533]: [ERR] (pm_save_persistent_data:409) Unable to modify persist data tree.
Jun 23 14:54:13 localhost sysrepo-sysrepo-plugind[2102]: [ERR] (cl_request_process:543) Error by processing of the unsubscribe request (session id=603730676): The item expected to exist is missing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/pipermail/sysrepo-announce/attachments/20200624/620b7dfd/attachment.html>


More information about the sysrepo-announce mailing list