{"action":"created","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/634","labels_url":"https://api.github.com/repos/opnsense/core/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/634/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/634/events","html_url":"https://github.com/opnsense/core/issues/634","id":125828027,"number":634,"title":"Bug: empty IPsec status overview","user":{"login":"8191","id":5854959,"avatar_url":"https://avatars.githubusercontent.com/u/5854959?v=3","gravatar_id":"","url":"https://api.github.com/users/8191","html_url":"https://github.com/8191","followers_url":"https://api.github.com/users/8191/followers","following_url":"https://api.github.com/users/8191/following{/other_user}","gists_url":"https://api.github.com/users/8191/gists{/gist_id}","starred_url":"https://api.github.com/users/8191/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8191/subscriptions","organizations_url":"https://api.github.com/users/8191/orgs","repos_url":"https://api.github.com/users/8191/repos","events_url":"https://api.github.com/users/8191/events{/privacy}","received_events_url":"https://api.github.com/users/8191/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opnsense/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opnsense/core/milestones/2","html_url":"https://github.com/opnsense/core/milestones/16.1","labels_url":"https://api.github.com/repos/opnsense/core/milestones/2/labels","id":1127324,"number":2,"title":"16.1","description":"","creator":{"login":"fichtner","id":1915288,"avatar_url":"https://avatars.githubusercontent.com/u/1915288?v=3","gravatar_id":"","url":"https://api.github.com/users/fichtner","html_url":"https://github.com/fichtner","followers_url":"https://api.github.com/users/fichtner/followers","following_url":"https://api.github.com/users/fichtner/following{/other_user}","gists_url":"https://api.github.com/users/fichtner/gists{/gist_id}","starred_url":"https://api.github.com/users/fichtner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fichtner/subscriptions","organizations_url":"https://api.github.com/users/fichtner/orgs","repos_url":"https://api.github.com/users/fichtner/repos","events_url":"https://api.github.com/users/fichtner/events{/privacy}","received_events_url":"https://api.github.com/users/fichtner/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":155,"state":"open","created_at":"2015-05-24T09:32:10Z","updated_at":"2016-01-13T06:15:28Z","due_on":"2016-01-27T23:00:00Z","closed_at":null},"comments":5,"created_at":"2016-01-10T16:03:52Z","updated_at":"2016-01-13T12:53:03Z","closed_at":null,"body":"I'm afraid that's a bug in vici and not in OPNsense itself:\r\n\r\nThe IPsec: Status Overview is empty, even there are several tunnels established (`ipsec status` shows several SAs). The error can be traced down to `/usr/local/opnsense/scripts/ipsec/list_status.py` not executing successfully:\r\n\r\n```python-traceback\r\n# /usr/local/opnsense/scripts/ipsec/list_status.py\r\nTraceback (most recent call last):\r\n  File \"/usr/local/opnsense/scripts/ipsec/list_status.py\", line 73, in <module>\r\n    for sas in s.list_sas():\r\n  File \"/usr/local/opnsense/scripts/ipsec/vici/session.py\", line 334, in streamed_request\r\n    self._register_unregister(event_stream_type, False);\r\n  File \"/usr/local/opnsense/scripts/ipsec/vici/session.py\", line 250, in _register_unregister\r\n    confirm=Packet.EVENT_CONFIRM,\r\nvici.exception.SessionException: Unexpected response type 53, expected '5' (EVENT_CONFIRM)\r\n```\r\n\r\nThe response type is different after each execution. Even a very simplified vici call leads to the same exception, why I assume the bug lies somewhere in vici (or even strongSwan?):\r\n\r\n```python-traceback\r\n>>> import vici\r\n>>> s = vici.Session()\r\n>>> sas = s.list_sas()\r\n>>> sas.next()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"vici/session.py\", line 334, in streamed_request\r\n    self._register_unregister(event_stream_type, False);\r\n  File \"vici/session.py\", line 250, in _register_unregister\r\n    confirm=Packet.EVENT_CONFIRM,\r\nvici.exception.SessionException: Unexpected response type 46, expected '5' (EVENT_CONFIRM)\r\n```"},"comment":{"url":"https://api.github.com/repos/opnsense/core/issues/comments/171281898","html_url":"https://github.com/opnsense/core/issues/634#issuecomment-171281898","issue_url":"https://api.github.com/repos/opnsense/core/issues/634","id":171281898,"user":{"login":"8191","id":5854959,"avatar_url":"https://avatars.githubusercontent.com/u/5854959?v=3","gravatar_id":"","url":"https://api.github.com/users/8191","html_url":"https://github.com/8191","followers_url":"https://api.github.com/users/8191/followers","following_url":"https://api.github.com/users/8191/following{/other_user}","gists_url":"https://api.github.com/users/8191/gists{/gist_id}","starred_url":"https://api.github.com/users/8191/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8191/subscriptions","organizations_url":"https://api.github.com/users/8191/orgs","repos_url":"https://api.github.com/users/8191/repos","events_url":"https://api.github.com/users/8191/events{/privacy}","received_events_url":"https://api.github.com/users/8191/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T12:53:03Z","updated_at":"2016-01-13T12:53:03Z","body":"Just found these errors in my ipsec logs while error was present; might be related?\r\n\r\n```\r\n\r\nJan 13 13:50:59\tcharon: 10[CFG] vici connection 6 unknown\r\nJan 13 13:50:59\tcharon: 10[CFG] vici connection 6 unknown\r\nJan 13 13:50:59\tcharon: 07[CFG] vici write error: Broken pipe\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c74cb422: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c7104cdf: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c9874632: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI ce4aff68: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI cd6da6a8: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI ccb4ab5d: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c3324b8c: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c9199e22: No such file or directory (2)\r\nJan 13 13:50:59\tcharon: 10[KNL] unable to query SAD entry with SPI c6fcbc3b: No such file or directory (2)\r\n```"}}