{"action":"created","issue":{"url":"https://api.github.com/repos/nicolargo/glances/issues/1198","repository_url":"https://api.github.com/repos/nicolargo/glances","labels_url":"https://api.github.com/repos/nicolargo/glances/issues/1198/labels{/name}","comments_url":"https://api.github.com/repos/nicolargo/glances/issues/1198/comments","events_url":"https://api.github.com/repos/nicolargo/glances/issues/1198/events","html_url":"https://github.com/nicolargo/glances/issues/1198","id":280092448,"number":1198,"title":"openssl issue with glances-2.7","user":{"login":"raushanjha146","id":8777628,"avatar_url":"https://avatars3.githubusercontent.com/u/8777628?v=4","gravatar_id":"","url":"https://api.github.com/users/raushanjha146","html_url":"https://github.com/raushanjha146","followers_url":"https://api.github.com/users/raushanjha146/followers","following_url":"https://api.github.com/users/raushanjha146/following{/other_user}","gists_url":"https://api.github.com/users/raushanjha146/gists{/gist_id}","starred_url":"https://api.github.com/users/raushanjha146/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raushanjha146/subscriptions","organizations_url":"https://api.github.com/users/raushanjha146/orgs","repos_url":"https://api.github.com/users/raushanjha146/repos","events_url":"https://api.github.com/users/raushanjha146/events{/privacy}","received_events_url":"https://api.github.com/users/raushanjha146/received_events","type":"User","site_admin":false},"labels":[{"id":300406614,"url":"https://api.github.com/repos/nicolargo/glances/labels/needs%20discussion","name":"needs discussion","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-07T11:19:06Z","updated_at":"2017-12-10T12:45:22Z","closed_at":null,"author_association":"NONE","body":"Before filling this issue, please read the manual (https://glances.readthedocs.io/en/latest/) and search if the bug do not already exists in the database (https://github.com/nicolargo/glances/issues).\r\n\r\n#### Description\r\n\r\nI am using glances 2.7.1.1-2  on our debian-stretch system. \r\nwhen running glances -w or glances -s, got the error \"ssl.SSLError: (\"bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)\",)\"\r\n\r\nstep:\r\ninstall glances 2.7\r\nrun- glances\r\n    After few seconds you will shee the error of open ssl, and then format will be changed.\r\n\r\nrun- glances -w\r\n   you will get the openssl exception\r\n\r\n#### Versions\r\n\r\n* Glances (glances -V): 2.7.1 (Glances v2.7.1 with psutil v5.0.1)\r\n* PSutil (glances -V): 5.0.1\r\n* Operating System (lsb_release -a): debian stretch\r\n\r\n#### Logs\r\n\r\ncomplete error is given below:\r\n-----------------------------------\r\nasdf@systen123:~$ glances -w\r\nGlances web server started on http://0.0.0.0:61208/\r\nException in thread Thread-5:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py\", line 417, in wrap_socket\r\n    cnx.do_handshake()\r\n  File \"/usr/lib/python3/dist-packages/OpenSSL/SSL.py\", line 1426, in do_handshake\r\n    self._raise_ssl_error(self._ssl, result)\r\n  File \"/usr/lib/python3/dist-packages/OpenSSL/SSL.py\", line 1174, in _raise_ssl_error\r\n    _raise_current_error()\r\n  File \"/usr/lib/python3/dist-packages/OpenSSL/_util.py\", line 48, in exception_from_error_queue\r\n    raise exception_type(errors)\r\nOpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/urllib3/connectionpool.py\", line 594, in urlopen\r\n    chunked=chunked)\r\n  File \"/usr/lib/python3/dist-packages/urllib3/connectionpool.py\", line 350, in _make_request\r\n    self._validate_conn(conn)\r\n  File \"/usr/lib/python3/dist-packages/urllib3/connectionpool.py\", line 837, in _validate_conn\r\n    conn.connect()\r\n  File \"/usr/lib/python3/dist-packages/urllib3/connection.py\", line 323, in connect\r\n    ssl_context=context)\r\n  File \"/usr/lib/python3/dist-packages/urllib3/util/ssl_.py\", line 324, in ssl_wrap_socket\r\n    return context.wrap_socket(sock, server_hostname=server_hostname)\r\n  File \"/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py\", line 424, in wrap_socket\r\n    raise ssl.SSLError('bad handshake: %r' % e)\r\nssl.SSLError: (\"bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)\",)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/requests/adapters.py\", line 423, in send\r\n    timeout=timeout\r\n  File \"/usr/lib/python3/dist-packages/urllib3/connectionpool.py\", line 624, in urlopen\r\n    raise SSLError(e)\r\nrequests.packages.urllib3.exceptions.SSLError: (\"bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)\",)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/threading.py\", line 914, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib/python3.5/threading.py\", line 862, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/usr/lib/python3/dist-packages/glances/amps/glances_amp.py\", line 201, in update_wrapper\r\n    return self.update(process_list)\r\n  File \"/usr/lib/python3/dist-packages/glances/amps/glances_nginx.py\", line 80, in update\r\n    res = requests.get(self.get('status_url'))\r\n  File \"/usr/lib/python3/dist-packages/requests/api.py\", line 70, in get\r\n    return request('get', url, params=params, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/requests/api.py\", line 56, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/requests/sessions.py\", line 488, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/lib/python3/dist-packages/requests/sessions.py\", line 630, in send\r\n    history = [resp for resp in gen] if allow_redirects else []\r\n  File \"/usr/lib/python3/dist-packages/requests/sessions.py\", line 630, in <listcomp>\r\n    history = [resp for resp in gen] if allow_redirects else []\r\n  File \"/usr/lib/python3/dist-packages/requests/sessions.py\", line 190, in resolve_redirects\r\n    **adapter_kwargs\r\n  File \"/usr/lib/python3/dist-packages/requests/sessions.py\", line 609, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/requests/adapters.py\", line 497, in send\r\n    raise SSLError(e, request=request)\r\nrequests.exceptions.SSLError: (\"bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)\",)\r\n\r\n---------------------------------------\r\n"},"comment":{"url":"https://api.github.com/repos/nicolargo/glances/issues/comments/350545900","html_url":"https://github.com/nicolargo/glances/issues/1198#issuecomment-350545900","issue_url":"https://api.github.com/repos/nicolargo/glances/issues/1198","id":350545900,"user":{"login":"nicolargo","id":776747,"avatar_url":"https://avatars0.githubusercontent.com/u/776747?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolargo","html_url":"https://github.com/nicolargo","followers_url":"https://api.github.com/users/nicolargo/followers","following_url":"https://api.github.com/users/nicolargo/following{/other_user}","gists_url":"https://api.github.com/users/nicolargo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolargo/subscriptions","organizations_url":"https://api.github.com/users/nicolargo/orgs","repos_url":"https://api.github.com/users/nicolargo/repos","events_url":"https://api.github.com/users/nicolargo/events{/privacy}","received_events_url":"https://api.github.com/users/nicolargo/received_events","type":"User","site_admin":false},"created_at":"2017-12-10T12:45:21Z","updated_at":"2017-12-10T12:45:21Z","author_association":"OWNER","body":"@notFloran Any idea ?"}}
{"actor":{"display_login":"nicolargo"}}