{"action":"created","issue":{"url":"https://api.github.com/repos/naparuba/shinken/issues/1864","repository_url":"https://api.github.com/repos/naparuba/shinken","labels_url":"https://api.github.com/repos/naparuba/shinken/issues/1864/labels{/name}","comments_url":"https://api.github.com/repos/naparuba/shinken/issues/1864/comments","events_url":"https://api.github.com/repos/naparuba/shinken/issues/1864/events","html_url":"https://github.com/naparuba/shinken/issues/1864","id":165369896,"number":1864,"title":"xmpp problems","user":{"login":"Hinnack","id":179074,"avatar_url":"https://avatars.githubusercontent.com/u/179074?v=3","gravatar_id":"","url":"https://api.github.com/users/Hinnack","html_url":"https://github.com/Hinnack","followers_url":"https://api.github.com/users/Hinnack/followers","following_url":"https://api.github.com/users/Hinnack/following{/other_user}","gists_url":"https://api.github.com/users/Hinnack/gists{/gist_id}","starred_url":"https://api.github.com/users/Hinnack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hinnack/subscriptions","organizations_url":"https://api.github.com/users/Hinnack/orgs","repos_url":"https://api.github.com/users/Hinnack/repos","events_url":"https://api.github.com/users/Hinnack/events{/privacy}","received_events_url":"https://api.github.com/users/Hinnack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T16:53:52Z","updated_at":"2016-08-05T16:47:28Z","closed_at":null,"body":"I sometimes get this error on xmpp notifications:\r\n\r\n ```\r\n  File \"/var/lib/shinken/libexec/notify_by_xmpp.py\", line 78, in <module>\r\n    auth = c.auth(user=username, password=password, resource=resource)\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/client.py\", line 229, in auth\r\n    if self.Bind.Bind(resource):\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/auth.py\", line 250, in Bind\r\n    resp=self._owner.SendAndWaitForResponse(Protocol('iq',typ='set',payload=[Node('session',attrs={'xmlns':NS_SESSION})]))\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py\", line 337, in SendAndWaitForResponse\r\n    return self.WaitForResponse(self.send(stanza),timeout)\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py\", line 321, in WaitForResponse\r\n    if not self.Process(0.04):\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py\", line 303, in dispatch\r\n    handler['func'](session,stanza)\r\n  File \"/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py\", line 215, in streamErrorHandler\r\n    raise exc((name,text))\r\nxmpp.protocol.Conflict: (u'conflict', '')\r\n```"},"comment":{"url":"https://api.github.com/repos/naparuba/shinken/issues/comments/237901761","html_url":"https://github.com/naparuba/shinken/issues/1864#issuecomment-237901761","issue_url":"https://api.github.com/repos/naparuba/shinken/issues/1864","id":237901761,"user":{"login":"justinpryzby","id":6146401,"avatar_url":"https://avatars.githubusercontent.com/u/6146401?v=3","gravatar_id":"","url":"https://api.github.com/users/justinpryzby","html_url":"https://github.com/justinpryzby","followers_url":"https://api.github.com/users/justinpryzby/followers","following_url":"https://api.github.com/users/justinpryzby/following{/other_user}","gists_url":"https://api.github.com/users/justinpryzby/gists{/gist_id}","starred_url":"https://api.github.com/users/justinpryzby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinpryzby/subscriptions","organizations_url":"https://api.github.com/users/justinpryzby/orgs","repos_url":"https://api.github.com/users/justinpryzby/repos","events_url":"https://api.github.com/users/justinpryzby/events{/privacy}","received_events_url":"https://api.github.com/users/justinpryzby/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T16:47:28Z","updated_at":"2016-08-05T16:47:28Z","body":"I'm seeing the same thing, and seems to be due to XMPP server disconnecting the first client connection when a 2nd connection begins with same (user,resource) pair:\r\n\r\nsendto(0, \"<iq type=\\\"set\\\" id=\\\"2\\\"><session xmlns=\\\"urn:ietf:params:xml:ns:xmpp-session\\\" /></iq>\", 82, 0, NULL, 0) = 82\r\ngettimeofday({1470387064, 277512}, NULL) = 0\r\nselect(1, [0], [], [], {0, 40000})      = 1 (in [0], left {0, 39997})\r\nrecvfrom(0, \"<stream:error xmlns:stream='http://etherx.jabber.org/streams'><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>\", 1024, 0, NULL, NULL) = 148\r\n\r\nIn jabberd2 sm.log:\r\nFri Aug  5 11:21:03 2016 [notice] session started: jid=nagios@telsasoft/xsend\r\nFri Aug  5 11:21:04 2016 [notice] session replaced: jid=nagios@telsasoft/xsend\r\nFri Aug  5 11:21:04 2016 [notice] session replaced: jid=nagios@telsasoft/xsend\r\nFri Aug  5 11:21:04 2016 [notice] session ended: jid=nagios@telsasoft/xsend\r\nFri Aug  5 11:21:04 2016 [notice] user unloaded jid=nagios@telsasoft\r\n\r\nOne can reliably reproduce the problem by running it rapidly in the background:\r\nsudo -Hu shinken sh -c 'for a in `seq 1 3`; do { /var/lib/shinken/xsend.py justinp@telsasoft sadf >/dev/null || echo failed; } & done'\r\n\r\nI was able to work around the problem by removing the \"/resource\" from ~shinken/.xsend (however that causes my messages to have a 2 char hex suffix to be appended)."}}
{"actor":{"display_login":"justinpryzby"}}