{"action":"closed","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/478","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/478/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/478/events","html_url":"https://github.com/sysrepo/sysrepo/issues/478","id":186270144,"number":478,"title":"Strange errors by using sysrepocfg in no deamon setup","user":{"login":"rastislavszabo","id":15926980,"avatar_url":"https://avatars.githubusercontent.com/u/15926980?v=3","gravatar_id":"","url":"https://api.github.com/users/rastislavszabo","html_url":"https://github.com/rastislavszabo","followers_url":"https://api.github.com/users/rastislavszabo/followers","following_url":"https://api.github.com/users/rastislavszabo/following{/other_user}","gists_url":"https://api.github.com/users/rastislavszabo/gists{/gist_id}","starred_url":"https://api.github.com/users/rastislavszabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastislavszabo/subscriptions","organizations_url":"https://api.github.com/users/rastislavszabo/orgs","repos_url":"https://api.github.com/users/rastislavszabo/repos","events_url":"https://api.github.com/users/rastislavszabo/events{/privacy}","received_events_url":"https://api.github.com/users/rastislavszabo/received_events","type":"User","site_admin":false},"labels":[{"id":297407903,"url":"https://api.github.com/repos/sysrepo/sysrepo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T12:19:05Z","updated_at":"2016-11-04T14:16:04Z","closed_at":"2016-11-04T14:16:04Z","body":"Devel branch, sysrepo daemon wasn't running, application managing ietf-interfaces was running:\r\n```\r\n$ sudo sysrepocfg -e vim ietf-interfaces\r\n[ERR] (rp_dt_enable_xpath:561) Xpath validation failed /ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address\r\n[ERR] (dm_enable_module_subtree_running_internal:414) Enabling of xpath /ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address failed\r\nThe new configuration was successfully applied.\r\n```\r\n\r\nIn case that the application was running under root and sysrepocfg wasn't, it went even worse:\r\n```\r\nrasto@ubuntu:~/sysrepo/build$ sysrepocfg -e vim ietf-interfaces\r\n[ERR] (rp_dt_enable_xpath:561) Xpath validation failed /ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address\r\n[ERR] (dm_enable_module_subtree_running_internal:414) Enabling of xpath /ietf-interfaces:interfaces/interface/ietf-ip:ipv4/address failed\r\n[ERR] (cm_server_watcher_cb:1187) Peer's uid=0 does not match with local uid=1000 (required by local mode).\r\n[ERR] (np_commit_notifications_complete:1051) Commit timeout for commit id=1728819534.\r\n[ERR] (sr_commit:1896) Commit operation failed with 0 error(s).\r\n[ERR] (srcfg_import_datastore:742) Error returned from sr_commit: An operation failed.\r\nUnable to apply the changes. Would you like to continue editing the configuration? [y/n]\r\n[ERR] (pm_save_persistent_data:300) Unable to modify persist data tree.\r\n[ERR] (np_unsubscribe_destination:577) Unable to remove subscriptions for destination '/tmp/sysrepo-subscriptions/ietf-interfaces/3765.RkUkKb.sock' from 'ietf-interfaces'.\r\n[ERR] (np_commit_notifications_complete:1051) Commit timeout for commit id=1728819534.\r\nFailed to commit the new configuration. Would you like to save your changes to a file? [y/n]\r\nn\r\nYour changes were discarded.\r\nrasto@ubuntu:~/sysrepo/build$ sudo sysrepocfg -e vim ietf-interfaces\r\n[sudo] password for rasto: \r\nCannot operate on the running datastore for 'ietf-interfaces' as there are no active subscriptions for it.\r\nCanceling the operation.\r\n```\r\nIssue 1: same errors as above.\r\nIssue 2: sysrepocfg was blocked until commit timeout exceeded.\r\nIssue3: the subscription of the application managing ietf-interfaces running in the background have been lost!"}}
{"actor":{"display_login":"rastislavszabo"}}