{"action":"closed","issue":{"url":"https://api.github.com/repos/iclab/centinel/issues/191","labels_url":"https://api.github.com/repos/iclab/centinel/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/iclab/centinel/issues/191/comments","events_url":"https://api.github.com/repos/iclab/centinel/issues/191/events","html_url":"https://github.com/iclab/centinel/issues/191","id":112504780,"number":191,"title":"Result file upload exception","user":{"login":"rpanah","id":6577290,"avatar_url":"https://avatars.githubusercontent.com/u/6577290?v=3","gravatar_id":"","url":"https://api.github.com/users/rpanah","html_url":"https://github.com/rpanah","followers_url":"https://api.github.com/users/rpanah/followers","following_url":"https://api.github.com/users/rpanah/following{/other_user}","gists_url":"https://api.github.com/users/rpanah/gists{/gist_id}","starred_url":"https://api.github.com/users/rpanah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpanah/subscriptions","organizations_url":"https://api.github.com/users/rpanah/orgs","repos_url":"https://api.github.com/users/rpanah/repos","events_url":"https://api.github.com/users/rpanah/events{/privacy}","received_events_url":"https://api.github.com/users/rpanah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iclab/centinel/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/iclab/centinel/labels/priority-critical","name":"priority-critical","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"lianke123321","id":4263572,"avatar_url":"https://avatars.githubusercontent.com/u/4263572?v=3","gravatar_id":"","url":"https://api.github.com/users/lianke123321","html_url":"https://github.com/lianke123321","followers_url":"https://api.github.com/users/lianke123321/followers","following_url":"https://api.github.com/users/lianke123321/following{/other_user}","gists_url":"https://api.github.com/users/lianke123321/gists{/gist_id}","starred_url":"https://api.github.com/users/lianke123321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianke123321/subscriptions","organizations_url":"https://api.github.com/users/lianke123321/orgs","repos_url":"https://api.github.com/users/lianke123321/repos","events_url":"https://api.github.com/users/lianke123321/events{/privacy}","received_events_url":"https://api.github.com/users/lianke123321/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-10-21T03:25:22Z","updated_at":"2015-10-26T05:32:32Z","closed_at":"2015-10-26T05:32:32Z","body":"This seems to be caused by the newer versions of `PyOpenSSL`. The upload mechanism has to be changed to become compatible with the new library.\r\n\r\n```\r\n2015-10-20 23:13:26,246 backend.py(line 87) INFO: Uploading result file - /home/abbas/.centinel/results/results-2015-10-02T18:07:07.448419_1.tar.bz2\r\n2015-10-20 23:13:26,435 backend.py(line 104) ERROR: Error trying to submit result: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]\r\nTraceback (most recent call last):\r\n  File \"/home/abbas/iclab/centinel/centinel/backend.py\", line 98, in submit_result\r\n    verify=self.verify)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/api.py\", line 109, in post\r\n    return request('post', url, data=data, json=json, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/api.py\", line 50, in request\r\n    response = session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/sessions.py\", line 468, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/sessions.py\", line 576, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/adapters.py\", line 370, in send\r\n    timeout=timeout\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py\", line 559, in urlopen\r\n    body=body, headers=headers)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py\", line 353, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1048, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1088, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1044, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 888, in _send_output\r\n    self.send(msg)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 864, in send\r\n    self.sock.sendall(data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py\", line 220, in sendall\r\n    sent = self._send_until_done(data[total_sent:total_sent+SSL_WRITE_BLOCKSIZE])\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py\", line 206, in _send_until_done\r\n    return self.connection.send(data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py\", line 1271, in send\r\n    self._raise_ssl_error(self._ssl, result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py\", line 1187, in _raise_ssl_error\r\n    _raise_current_error()\r\n  File \"/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py\", line 48, in exception_from_error_queue\r\n    raise exception_type(errors)\r\nError: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]\r\n2015-10-20 23:13:26,437 backend.py(line 315) ERROR: Unable to send result file: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]\r\nTraceback (most recent call last):\r\n  File \"./run.py\", line 6, in <module>\r\n    centinel.cli.run()\r\n  File \"/home/abbas/iclab/centinel/centinel/cli.py\", line 108, in run\r\n    centinel.backend.sync(configuration.params)\r\n  File \"/home/abbas/iclab/centinel/centinel/backend.py\", line 316, in sync\r\n    raise exp\r\nOpenSSL.SSL.Error: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]\r\n```"}}