perfsonar-user - [perfsonar-user] Error loading test listing; measurement archive unreachable.
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: "White, Doug" <>
- To: "" <>
- Subject: [perfsonar-user] Error loading test listing; measurement archive unreachable.
- Date: Tue, 10 May 2022 00:21:43 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ipac.caltech.edu; dmarc=pass action=none header.from=ipac.caltech.edu; dkim=pass header.d=ipac.caltech.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OS30qjk3moh5v3nBRbkBQ5LuJllsrLgJF05xInSFZJQ=; b=NdY6Oyy3Ys9jC6VbQUUxVpN+rRColjqtuyabdjQJ5zZPbjS5a6V8KRj5xKxTiW02Hyd7VOe/Qr0hP3Hz3PUrr5hBVI5uDDd5pysyTHEk+St+xPEfTDvgKZsUEjUadJatHWYMRtmV0ML7CBp5G1GXYEtJhm8mmMouu0kl7LJLG+0lqrW+MX/5nBv/wWt7A3/falEEmNLiqiDBoC5oMgY4p+f/TKAILAgV9WKky4pcsx0OtwMEr1LcA1ET57dv9cS+br7/SwSRlpIZ3Krk8Igzh//UMicfTdfUWR6RVH/WZfSWEM9LRmxzwNht8V5wQANdVvtQa4qFHRKeEGXs4eaW/g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofnlmw529wgtSPNAznE/VTgXe1NbFuS7+TKwncGSjjmNXMEg/TSh9f8fBlE49zUa/E1C2UlVzADuD3oQKHqnzseD8JoylCNrTFsIX0F9jS4GdCzicG1K/6X41+Uu9GnXLRGq1C/sTbFfFqt3i9IXo0LmiqytWFhhNZgzgIEeKPIXkuREE+nskOm6ggBPLO9+9JR0b80xNa5RUGRWu76UJrvTChMwJoX8UAu6TqUFntqeDO7RSooOcVOOuTLzWPxB3w/8M0XIByWOQqosQ9ST1IsYfI/zU4Refb2+6cStZN9wA1gZQcxdxA3gcgijGp3MVfVNFwfuiZ7LPVVXzYhcAA==
One of our Perfsonar Nodes did an “Automatic” update to version 5.0.0 recently. After the update it could no longer access test results posting the “Error loading test listing; measurement archive unreachable”. We noticed the similarity between this problem and a problem posted in January of this year by Jim Govoni at Tufts University so we ran some of the commands given to him to provide you with some information up front (see output below). We didn’t see a resolution to his problem so we decided to post as well.
Thank you in advance for your assistance,
Doug White
California Institute of Technology
[root@isgpscore ~]# curl -k
https://127.0.0.1/esmond/perfsonar/archive
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<title>elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate
verify failed (_ssl.c:877)) // Werkzeug Debugger</title>
<link rel="stylesheet" href=""?__debugger__=yes&cmd=resource&f=style.css"
type="text/css">
<!-- We need to make sure this has a favicon so that the debugger does
not by accident trigger a request to /favicon.ico which might
change the application state. -->
<link rel="shortcut icon"
href=""?__debugger__=yes&cmd=resource&f=console.png">
<script src=""?__debugger__=yes&cmd=resource&f=jquery.js"></script>
<script src=""?__debugger__=yes&cmd=resource&f=debugger.js"></script>
<script type="text/_javascript_">
var TRACEBACK = 140595454387704,
CONSOLE_MODE = false,
EVALEX = true,
EVALEX_TRUSTED = false,
SECRET = "CrPsXtJtQZvLDtBBI7zO";
</script>
</head>
<body style="background-color: #fff">
<div class="debugger">
<h1>elasticsearch.exceptions.SSLError</h1>
<div class="detail">
<p class="errormsg">elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:877))</p>
</div>
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
<div class="traceback">
<ul><li><div class="frame" id="frame-140595454389832">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">672</em>,
in <code class="function">urlopen</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>method,</pre>
<pre class="line before"><span class="ws"> </span>url,</pre>
<pre class="line before"><span class="ws"> </span>timeout=timeout_obj,</pre>
<pre class="line before"><span class="ws"> </span>body=body,</pre>
<pre class="line before"><span class="ws"> </span>headers=headers,</pre>
<pre class="line current"><span class="ws"> </span>chunked=chunked,</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span># If we're going to release the connection in ``finally:``, then</pre>
<pre class="line after"><span class="ws"> </span># the response doesn't need to know about the connection. Otherwise</pre>
<pre class="line after"><span class="ws"> </span># it will also try to release it and we'll have a double-release</pre></div>
</div>
<li><div class="frame" id="frame-140595454386640">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">376</em>,
in <code class="function">_make_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>timeout_obj.start_connect()</pre>
<pre class="line before"><span class="ws"> </span>conn.timeout = timeout_obj.connect_timeout</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span># Trigger any extra validation we need to do.</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line current"><span class="ws"> </span>self._validate_conn(conn)</pre>
<pre class="line after"><span class="ws"> </span>except (SocketTimeout, BaseSSLError) as e:</pre>
<pre class="line after"><span class="ws"> </span># Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.</pre>
<pre class="line after"><span class="ws"> </span>self._raise_timeout(err=e, url="url," timeout_value=conn.timeout)</pre>
<pre class="line after"><span class="ws"> </span>raise</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454389552">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">994</em>,
in <code class="function">_validate_conn</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>"""</pre>
<pre class="line before"><span class="ws"> </span>super(HTTPSConnectionPool, self)._validate_conn(conn)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span># Force connect early to allow us to validate the connection.</pre>
<pre class="line before"><span class="ws"> </span>if not getattr(conn, "sock", None): # AppEngine might not have `.sock`</pre>
<pre class="line current"><span class="ws"> </span>conn.connect()</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>if not conn.is_verified:</pre>
<pre class="line after"><span class="ws"> </span>warnings.warn(</pre>
<pre class="line after"><span class="ws"> </span>(</pre>
<pre class="line after"><span class="ws"> </span>"Unverified HTTPS request is being made. "</pre></div>
</div>
<li><div class="frame" id="frame-140595454386248">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connection.py"</cite>,
line <em class="line">408</em>,
in <code class="function">connect</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>certfile=self.cert_file,</pre>
<pre class="line before"><span class="ws"> </span>key_password=self.key_password,</pre>
<pre class="line before"><span class="ws"> </span>ca_certs=self.ca_certs,</pre>
<pre class="line before"><span class="ws"> </span>ca_cert_dir=self.ca_cert_dir,</pre>
<pre class="line before"><span class="ws"> </span>server_hostname=server_hostname,</pre>
<pre class="line current"><span class="ws"> </span>ssl_context=context,</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>if self.assert_fingerprint:</pre>
<pre class="line after"><span class="ws"> </span>assert_fingerprint(</pre>
<pre class="line after"><span class="ws"> </span>self.sock.getpeercert(binary_form=True), self.assert_fingerprint</pre></div>
</div>
<li><div class="frame" id="frame-140595454388208">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py"</cite>,
line <em class="line">370</em>,
in <code class="function">ssl_wrap_socket</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span># not be using SNI anyways due to IP address for server_hostname.</pre>
<pre class="line before"><span class="ws"> </span>if (</pre>
<pre class="line before"><span class="ws"> </span>server_hostname is not None and not is_ipaddress(server_hostname)</pre>
<pre class="line before"><span class="ws"> </span>) or IS_SECURETRANSPORT:</pre>
<pre class="line before"><span class="ws"> </span>if HAS_SNI and server_hostname is not None:</pre>
<pre class="line current"><span class="ws"> </span>return context.wrap_socket(sock, server_hostname=server_hostname)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>warnings.warn(</pre>
<pre class="line after"><span class="ws"> </span>"An HTTPS request has been made, but the SNI (Server Name "</pre>
<pre class="line after"><span class="ws"> </span>"Indication) extension to TLS is not available on this platform. "</pre>
<pre class="line after"><span class="ws"> </span>"This may cause the server to present an incorrect TLS "</pre></div>
</div>
<li><div class="frame" id="frame-140595454387256">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">365</em>,
in <code class="function">wrap_socket</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>server_hostname=None, session=None):</pre>
<pre class="line before"><span class="ws"> </span>return SSLSocket(sock=sock, server_side=server_side,</pre>
<pre class="line before"><span class="ws"> </span>do_handshake_on_connect=do_handshake_on_connect,</pre>
<pre class="line before"><span class="ws"> </span>suppress_ragged_eofs=suppress_ragged_eofs,</pre>
<pre class="line before"><span class="ws"> </span>server_hostname=server_hostname,</pre>
<pre class="line current"><span class="ws"> </span>_context=self, _session=session)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def wrap_bio(self, incoming, outgoing, server_side=False,</pre>
<pre class="line after"><span class="ws"> </span>server_hostname=None, session=None):</pre>
<pre class="line after"><span class="ws"> </span>sslobj = self._wrap_bio(incoming, outgoing, server_side=server_side,</pre>
<pre class="line after"><span class="ws"> </span>server_hostname=server_hostname)</pre></div>
</div>
<li><div class="frame" id="frame-140595454387480">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">776</em>,
in <code class="function">__init__</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>if do_handshake_on_connect:</pre>
<pre class="line before"><span class="ws"> </span>timeout = self.gettimeout()</pre>
<pre class="line before"><span class="ws"> </span>if timeout == 0.0:</pre>
<pre class="line before"><span class="ws"> </span># non-blocking</pre>
<pre class="line before"><span class="ws"> </span>raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")</pre>
<pre class="line current"><span class="ws"> </span>self.do_handshake()</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>except (OSError, ValueError):</pre>
<pre class="line after"><span class="ws"> </span>self.close()</pre>
<pre class="line after"><span class="ws"> </span>raise</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454386976">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">1036</em>,
in <code class="function">do_handshake</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>self._check_connected()</pre>
<pre class="line before"><span class="ws"> </span>timeout = self.gettimeout()</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>if timeout == 0.0 and block:</pre>
<pre class="line before"><span class="ws"> </span>self.settimeout(None)</pre>
<pre class="line current"><span class="ws"> </span>self._sslobj.do_handshake()</pre>
<pre class="line after"><span class="ws"> </span>finally:</pre>
<pre class="line after"><span class="ws"> </span>self.settimeout(timeout)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def _real_connect(self, addr, connect_ex):</pre>
<pre class="line after"><span class="ws"> </span>if self.server_side:</pre></div>
</div>
<li><div class="frame" id="frame-140595454389160">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">648</em>,
in <code class="function">do_handshake</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>"""Return the number of bytes that can be read immediately."""</pre>
<pre class="line before"><span class="ws"> </span>return self._sslobj.pending()</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>def do_handshake(self):</pre>
<pre class="line before"><span class="ws"> </span>"""Start the SSL/TLS handshake."""</pre>
<pre class="line current"><span class="ws"> </span>self._sslobj.do_handshake()</pre>
<pre class="line after"><span class="ws"> </span>if self.context.check_hostname:</pre>
<pre class="line after"><span class="ws"> </span>if not self.server_hostname:</pre>
<pre class="line after"><span class="ws"> </span>raise ValueError("check_hostname needs server_hostname "</pre>
<pre class="line after"><span class="ws"> </span>"argument")</pre>
<pre class="line after"><span class="ws"> </span>match_hostname(self.getpeercert(), self.server_hostname)</pre></div>
</div>
<li><div class="exc-divider">During handling of the above exception, another exception occurred:</div>
<li><div class="frame" id="frame-140595454390000">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py"</cite>,
line <em class="line">238</em>,
in <code class="function">perform_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span># oops, Python2.7 doesn't have `gzip.compress` let's try</pre>
<pre class="line before"><span class="ws"> </span># again</pre>
<pre class="line before"><span class="ws"> </span>body = gzip.zlib.compress(body)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>response = self.pool.urlopen(</pre>
<pre class="line current"><span class="ws"> </span>method, url, body, retries=Retry(False), headers=request_headers, **kw</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"> </span>duration = time.time() - start</pre>
<pre class="line after"><span class="ws"> </span>raw_data = response.data.decode("utf-8")</pre>
<pre class="line after"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line after"><span class="ws"> </span>self.log_request_fail(</pre></div>
</div>
<li><div class="frame" id="frame-140595454386416">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">720</em>,
in <code class="function">urlopen</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>e = ProxyError("Cannot connect to proxy.", e)</pre>
<pre class="line before"><span class="ws"> </span>elif isinstance(e, (SocketError, HTTPException)):</pre>
<pre class="line before"><span class="ws"> </span>e = ProtocolError("Connection aborted.", e)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>retries = retries.increment(</pre>
<pre class="line current"><span class="ws"> </span>method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"> </span>retries.sleep()</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span># Keep track of the error for the retry warning.</pre>
<pre class="line after"><span class="ws"> </span>err = e</pre></div>
</div>
<li><div class="frame" id="frame-140595454389048">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/util/retry.py"</cite>,
line <em class="line">376</em>,
in <code class="function">increment</code></h4>
<div class="source "><pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>:return: A new ``Retry`` object.</pre>
<pre class="line before"><span class="ws"> </span>"""</pre>
<pre class="line before"><span class="ws"> </span>if self.total is False and error:</pre>
<pre class="line before"><span class="ws"> </span># Disabled, indicate to re-raise the error.</pre>
<pre class="line current"><span class="ws"> </span>raise six.reraise(type(error), error, _stacktrace)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>total = self.total</pre>
<pre class="line after"><span class="ws"> </span>if total is not None:</pre>
<pre class="line after"><span class="ws"> </span>total -= 1</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454388600">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/six.py"</cite>,
line <em class="line">702</em>,
in <code class="function">reraise</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>def reraise(tp, value, tb=None):</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>if value is None:</pre>
<pre class="line before"><span class="ws"> </span>value = tp()</pre>
<pre class="line before"><span class="ws"> </span>if value.__traceback__ is not tb:</pre>
<pre class="line current"><span class="ws"> </span>raise value.with_traceback(tb)</pre>
<pre class="line after"><span class="ws"> </span>raise value</pre>
<pre class="line after"><span class="ws"> </span>finally:</pre>
<pre class="line after"><span class="ws"> </span>value = None</pre>
<pre class="line after"><span class="ws"> </span>tb = None</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454387536">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">672</em>,
in <code class="function">urlopen</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>method,</pre>
<pre class="line before"><span class="ws"> </span>url,</pre>
<pre class="line before"><span class="ws"> </span>timeout=timeout_obj,</pre>
<pre class="line before"><span class="ws"> </span>body=body,</pre>
<pre class="line before"><span class="ws"> </span>headers=headers,</pre>
<pre class="line current"><span class="ws"> </span>chunked=chunked,</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span># If we're going to release the connection in ``finally:``, then</pre>
<pre class="line after"><span class="ws"> </span># the response doesn't need to know about the connection. Otherwise</pre>
<pre class="line after"><span class="ws"> </span># it will also try to release it and we'll have a double-release</pre></div>
</div>
<li><div class="frame" id="frame-140595454387144">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">376</em>,
in <code class="function">_make_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>timeout_obj.start_connect()</pre>
<pre class="line before"><span class="ws"> </span>conn.timeout = timeout_obj.connect_timeout</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span># Trigger any extra validation we need to do.</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line current"><span class="ws"> </span>self._validate_conn(conn)</pre>
<pre class="line after"><span class="ws"> </span>except (SocketTimeout, BaseSSLError) as e:</pre>
<pre class="line after"><span class="ws"> </span># Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.</pre>
<pre class="line after"><span class="ws"> </span>self._raise_timeout(err=e, url="url," timeout_value=conn.timeout)</pre>
<pre class="line after"><span class="ws"> </span>raise</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454387816">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connectionpool.py"</cite>,
line <em class="line">994</em>,
in <code class="function">_validate_conn</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>"""</pre>
<pre class="line before"><span class="ws"> </span>super(HTTPSConnectionPool, self)._validate_conn(conn)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span># Force connect early to allow us to validate the connection.</pre>
<pre class="line before"><span class="ws"> </span>if not getattr(conn, "sock", None): # AppEngine might not have `.sock`</pre>
<pre class="line current"><span class="ws"> </span>conn.connect()</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>if not conn.is_verified:</pre>
<pre class="line after"><span class="ws"> </span>warnings.warn(</pre>
<pre class="line after"><span class="ws"> </span>(</pre>
<pre class="line after"><span class="ws"> </span>"Unverified HTTPS request is being made. "</pre></div>
</div>
<li><div class="frame" id="frame-140595454389664">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/connection.py"</cite>,
line <em class="line">408</em>,
in <code class="function">connect</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>certfile=self.cert_file,</pre>
<pre class="line before"><span class="ws"> </span>key_password=self.key_password,</pre>
<pre class="line before"><span class="ws"> </span>ca_certs=self.ca_certs,</pre>
<pre class="line before"><span class="ws"> </span>ca_cert_dir=self.ca_cert_dir,</pre>
<pre class="line before"><span class="ws"> </span>server_hostname=server_hostname,</pre>
<pre class="line current"><span class="ws"> </span>ssl_context=context,</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>if self.assert_fingerprint:</pre>
<pre class="line after"><span class="ws"> </span>assert_fingerprint(</pre>
<pre class="line after"><span class="ws"> </span>self.sock.getpeercert(binary_form=True), self.assert_fingerprint</pre></div>
</div>
<li><div class="frame" id="frame-140595454389608">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py"</cite>,
line <em class="line">370</em>,
in <code class="function">ssl_wrap_socket</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span># not be using SNI anyways due to IP address for server_hostname.</pre>
<pre class="line before"><span class="ws"> </span>if (</pre>
<pre class="line before"><span class="ws"> </span>server_hostname is not None and not is_ipaddress(server_hostname)</pre>
<pre class="line before"><span class="ws"> </span>) or IS_SECURETRANSPORT:</pre>
<pre class="line before"><span class="ws"> </span>if HAS_SNI and server_hostname is not None:</pre>
<pre class="line current"><span class="ws"> </span>return context.wrap_socket(sock, server_hostname=server_hostname)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>warnings.warn(</pre>
<pre class="line after"><span class="ws"> </span>"An HTTPS request has been made, but the SNI (Server Name "</pre>
<pre class="line after"><span class="ws"> </span>"Indication) extension to TLS is not available on this platform. "</pre>
<pre class="line after"><span class="ws"> </span>"This may cause the server to present an incorrect TLS "</pre></div>
</div>
<li><div class="frame" id="frame-140595454387648">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">365</em>,
in <code class="function">wrap_socket</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>server_hostname=None, session=None):</pre>
<pre class="line before"><span class="ws"> </span>return SSLSocket(sock=sock, server_side=server_side,</pre>
<pre class="line before"><span class="ws"> </span>do_handshake_on_connect=do_handshake_on_connect,</pre>
<pre class="line before"><span class="ws"> </span>suppress_ragged_eofs=suppress_ragged_eofs,</pre>
<pre class="line before"><span class="ws"> </span>server_hostname=server_hostname,</pre>
<pre class="line current"><span class="ws"> </span>_context=self, _session=session)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def wrap_bio(self, incoming, outgoing, server_side=False,</pre>
<pre class="line after"><span class="ws"> </span>server_hostname=None, session=None):</pre>
<pre class="line after"><span class="ws"> </span>sslobj = self._wrap_bio(incoming, outgoing, server_side=server_side,</pre>
<pre class="line after"><span class="ws"> </span>server_hostname=server_hostname)</pre></div>
</div>
<li><div class="frame" id="frame-140595454386808">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">776</em>,
in <code class="function">__init__</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>if do_handshake_on_connect:</pre>
<pre class="line before"><span class="ws"> </span>timeout = self.gettimeout()</pre>
<pre class="line before"><span class="ws"> </span>if timeout == 0.0:</pre>
<pre class="line before"><span class="ws"> </span># non-blocking</pre>
<pre class="line before"><span class="ws"> </span>raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")</pre>
<pre class="line current"><span class="ws"> </span>self.do_handshake()</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>except (OSError, ValueError):</pre>
<pre class="line after"><span class="ws"> </span>self.close()</pre>
<pre class="line after"><span class="ws"> </span>raise</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454389944">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">1036</em>,
in <code class="function">do_handshake</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>self._check_connected()</pre>
<pre class="line before"><span class="ws"> </span>timeout = self.gettimeout()</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>if timeout == 0.0 and block:</pre>
<pre class="line before"><span class="ws"> </span>self.settimeout(None)</pre>
<pre class="line current"><span class="ws"> </span>self._sslobj.do_handshake()</pre>
<pre class="line after"><span class="ws"> </span>finally:</pre>
<pre class="line after"><span class="ws"> </span>self.settimeout(timeout)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def _real_connect(self, addr, connect_ex):</pre>
<pre class="line after"><span class="ws"> </span>if self.server_side:</pre></div>
</div>
<li><div class="frame" id="frame-140595454388656">
<h4>File <cite class="filename">"/usr/lib64/python3.6/ssl.py"</cite>,
line <em class="line">648</em>,
in <code class="function">do_handshake</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>"""Return the number of bytes that can be read immediately."""</pre>
<pre class="line before"><span class="ws"> </span>return self._sslobj.pending()</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>def do_handshake(self):</pre>
<pre class="line before"><span class="ws"> </span>"""Start the SSL/TLS handshake."""</pre>
<pre class="line current"><span class="ws"> </span>self._sslobj.do_handshake()</pre>
<pre class="line after"><span class="ws"> </span>if self.context.check_hostname:</pre>
<pre class="line after"><span class="ws"> </span>if not self.server_hostname:</pre>
<pre class="line after"><span class="ws"> </span>raise ValueError("check_hostname needs server_hostname "</pre>
<pre class="line after"><span class="ws"> </span>"argument")</pre>
<pre class="line after"><span class="ws"> </span>match_hostname(self.getpeercert(), self.server_hostname)</pre></div>
</div>
<li><div class="exc-divider">During handling of the above exception, another exception occurred:</div>
<li><div class="frame" id="frame-140595454389104">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">2464</em>,
in <code class="function">__call__</code></h4>
<div class="source "><pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>def __call__(self, environ, start_response):</pre>
<pre class="line before"><span class="ws"> </span>"""The WSGI server calls the Flask application object as the</pre>
<pre class="line before"><span class="ws"> </span>WSGI application. This calls :meth:`wsgi_app` which can be</pre>
<pre class="line before"><span class="ws"> </span>wrapped to applying middleware."""</pre>
<pre class="line current"><span class="ws"> </span>return self.wsgi_app(environ, start_response)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def __repr__(self):</pre>
<pre class="line after"><span class="ws"> </span>return "<%s %r>" % (self.__class__.__name__, self.name)</pre></div>
</div>
<li><div class="frame" id="frame-140595454388936">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">2450</em>,
in <code class="function">wsgi_app</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>ctx.push()</pre>
<pre class="line before"><span class="ws"> </span>response = self.full_dispatch_request()</pre>
<pre class="line before"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line before"><span class="ws"> </span>error = e</pre>
<pre class="line current"><span class="ws"> </span>response = self.handle_exception(e)</pre>
<pre class="line after"><span class="ws"> </span>except: # noqa: B001</pre>
<pre class="line after"><span class="ws"> </span>error = sys.exc_info()[1]</pre>
<pre class="line after"><span class="ws"> </span>raise</pre>
<pre class="line after"><span class="ws"> </span>return response(environ, start_response)</pre>
<pre class="line after"><span class="ws"> </span>finally:</pre></div>
</div>
<li><div class="frame" id="frame-140595454389888">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">1867</em>,
in <code class="function">handle_exception</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span># if we want to repropagate the exception, we can attempt to</pre>
<pre class="line before"><span class="ws"> </span># raise it with the whole traceback in case we can do that</pre>
<pre class="line before"><span class="ws"> </span># (the function was actually called from the except part)</pre>
<pre class="line before"><span class="ws"> </span># otherwise, we just raise the error again</pre>
<pre class="line before"><span class="ws"> </span>if exc_value is e:</pre>
<pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre>
<pre class="line after"><span class="ws"> </span>else:</pre>
<pre class="line after"><span class="ws"> </span>raise e</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>self.log_exception((exc_type, exc_value, tb))</pre>
<pre class="line after"><span class="ws"> </span>server_error = InternalServerError()</pre></div>
</div>
<li><div class="frame" id="frame-140595454386472">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/_compat.py"</cite>,
line <em class="line">39</em>,
in <code class="function">reraise</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>import collections.abc as collections_abc</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>def reraise(tp, value, tb=None):</pre>
<pre class="line before"><span class="ws"> </span>if value.__traceback__ is not tb:</pre>
<pre class="line before"><span class="ws"> </span>raise value.with_traceback(tb)</pre>
<pre class="line current"><span class="ws"> </span>raise value</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>implements_to_string = _identity</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"></span>else:</pre>
<pre class="line after"><span class="ws"> </span>iterkeys = lambda d: d.iterkeys()</pre></div>
</div>
<li><div class="frame" id="frame-140595454386696">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">2447</em>,
in <code class="function">wsgi_app</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>ctx = self.request_context(environ)</pre>
<pre class="line before"><span class="ws"> </span>error = None</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>ctx.push()</pre>
<pre class="line current"><span class="ws"> </span>response = self.full_dispatch_request()</pre>
<pre class="line after"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line after"><span class="ws"> </span>error = e</pre>
<pre class="line after"><span class="ws"> </span>response = self.handle_exception(e)</pre>
<pre class="line after"><span class="ws"> </span>except: # noqa: B001</pre>
<pre class="line after"><span class="ws"> </span>error = sys.exc_info()[1]</pre></div>
</div>
<li><div class="frame" id="frame-140595454388880">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">1952</em>,
in <code class="function">full_dispatch_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>request_started.send(self)</pre>
<pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre>
<pre class="line before"><span class="ws"> </span>if rv is None:</pre>
<pre class="line before"><span class="ws"> </span>rv = self.dispatch_request()</pre>
<pre class="line before"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line current"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre>
<pre class="line after"><span class="ws"> </span>return self.finalize_request(rv)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def finalize_request(self, rv, from_error_handler=False):</pre>
<pre class="line after"><span class="ws"> </span>"""Given the return value from a view function this finalizes</pre>
<pre class="line after"><span class="ws"> </span>the request by converting it into a response and invoking the</pre></div>
</div>
<li><div class="frame" id="frame-140595454388040">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">1821</em>,
in <code class="function">handle_user_exception</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>return self.handle_http_exception(e)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>handler = self._find_error_handler(e)</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>if handler is None:</pre>
<pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre>
<pre class="line after"><span class="ws"> </span>return handler(e)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def handle_exception(self, e):</pre>
<pre class="line after"><span class="ws"> </span>"""Handle an exception that did not have an error handler</pre>
<pre class="line after"><span class="ws"> </span>associated with it, or that was raised from an error handler.</pre></div>
</div>
<li><div class="frame" id="frame-140595454387200">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/_compat.py"</cite>,
line <em class="line">39</em>,
in <code class="function">reraise</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>import collections.abc as collections_abc</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>def reraise(tp, value, tb=None):</pre>
<pre class="line before"><span class="ws"> </span>if value.__traceback__ is not tb:</pre>
<pre class="line before"><span class="ws"> </span>raise value.with_traceback(tb)</pre>
<pre class="line current"><span class="ws"> </span>raise value</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>implements_to_string = _identity</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"></span>else:</pre>
<pre class="line after"><span class="ws"> </span>iterkeys = lambda d: d.iterkeys()</pre></div>
</div>
<li><div class="frame" id="frame-140595454387088">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">1950</em>,
in <code class="function">full_dispatch_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>self.try_trigger_before_first_request_functions()</pre>
<pre class="line before"><span class="ws"> </span>try:</pre>
<pre class="line before"><span class="ws"> </span>request_started.send(self)</pre>
<pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre>
<pre class="line before"><span class="ws"> </span>if rv is None:</pre>
<pre class="line current"><span class="ws"> </span>rv = self.dispatch_request()</pre>
<pre class="line after"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line after"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre>
<pre class="line after"><span class="ws"> </span>return self.finalize_request(rv)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def finalize_request(self, rv, from_error_handler=False):</pre></div>
</div>
<li><div class="frame" id="frame-140595454390112">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/flask/app.py"</cite>,
line <em class="line">1936</em>,
in <code class="function">dispatch_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>getattr(rule, "provide_automatic_options", False)</pre>
<pre class="line before"><span class="ws"> </span>and req.method == "OPTIONS"</pre>
<pre class="line before"><span class="ws"> </span>):</pre>
<pre class="line before"><span class="ws"> </span>return self.make_default_options_response()</pre>
<pre class="line before"><span class="ws"> </span># otherwise dispatch to the handler for that endpoint</pre>
<pre class="line current"><span class="ws"> </span>return self.view_functions[rule.endpoint](**req.view_args)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>def full_dispatch_request(self):</pre>
<pre class="line after"><span class="ws"> </span>"""Dispatches the request and on top of that performs request</pre>
<pre class="line after"><span class="ws"> </span>pre and postprocessing as well as HTTP exception catching and</pre>
<pre class="line after"><span class="ws"> </span>error handling.</pre></div>
</div>
<li><div class="frame" id="frame-140595454386528">
<h4>File <cite class="filename">"/usr/lib/perfsonar/elmond/app.py"</cite>,
line <em class="line">59</em>,
in <code class="function">list_metadata</code></h4>
<div class="source "><pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>@app.route('/', methods=['GET'])</pre>
<pre class="line before"><span class="ws"> </span>def list_metadata():</pre>
<pre class="line before"><span class="ws"> </span>emd = EsmondMetadata(es)</pre>
<pre class="line current"><span class="ws"> </span>metadata = emd.search(q=request.args, request_url=request.url, paginate=True)</pre>
<pre class="line after"><span class="ws"> </span>return json_response(metadata)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>@app.route('/<metadata_key>', methods=['GET'])</pre>
<pre class="line after"><span class="ws"> </span>def get_metadata(metadata_key):</pre>
<pre class="line after"><span class="ws"> </span>emd = EsmondMetadata(es)</pre></div>
</div>
<li><div class="frame" id="frame-140595454386304">
<h4>File <cite class="filename">"/usr/lib/perfsonar/elmond/metadata.py"</cite>,
line <em class="line">151</em>,
in <code class="function">search</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>"filter": filters</pre>
<pre class="line before"><span class="ws"> </span>}</pre>
<pre class="line before"><span class="ws"> </span>}</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>#Get list of tests</pre>
<pre class="line current"><span class="ws"> </span>res = self.es.search(index="pscheduler_*", body=dsl)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>#format JSON</pre>
<pre class="line after"><span class="ws"> </span>metadata=[]</pre>
<pre class="line after"><span class="ws"> </span>buckets = res.get("aggregations",{}).get("tests",{}).get("buckets",[])</pre>
<pre class="line after"><span class="ws"> </span>for bucket in buckets:</pre></div>
</div>
<li><div class="frame" id="frame-140595454389272">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/elasticsearch/client/utils.py"</cite>,
line <em class="line">84</em>,
in <code class="function">_wrapped</code></h4>
<div class="source "><pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span># don't treat ignore and request_timeout as other params to avoid escaping</pre>
<pre class="line before"><span class="ws"> </span>for p in ("ignore", "request_timeout"):</pre>
<pre class="line before"><span class="ws"> </span>if p in kwargs:</pre>
<pre class="line before"><span class="ws"> </span>params[p] = kwargs.pop(p)</pre>
<pre class="line current"><span class="ws"> </span>return func(*args, params=params, **kwargs)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>return _wrapped</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>return _wrapper</pre>
<pre class="line after"><span class="ws"></span> </pre></div>
</div>
<li><div class="frame" id="frame-140595454389216">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/elasticsearch/client/__init__.py"</cite>,
line <em class="line">805</em>,
in <code class="function">search</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>params["from"] = params.pop("from_")</pre>
<pre class="line before"><span class="ws"></span> </pre>
<pre class="line before"><span class="ws"> </span>if not index:</pre>
<pre class="line before"><span class="ws"> </span>index = "_all"</pre>
<pre class="line before"><span class="ws"> </span>return self.transport.perform_request(</pre>
<pre class="line current"><span class="ws"> </span>"GET", _make_path(index, "_search"), params=params, body=body</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>@query_params(</pre>
<pre class="line after"><span class="ws"> </span>"_source",</pre>
<pre class="line after"><span class="ws"> </span>"_source_excludes",</pre></div>
</div>
<li><div class="frame" id="frame-140595454388264">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/elasticsearch/transport.py"</cite>,
line <em class="line">350</em>,
in <code class="function">perform_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>url,</pre>
<pre class="line before"><span class="ws"> </span>params,</pre>
<pre class="line before"><span class="ws"> </span>body,</pre>
<pre class="line before"><span class="ws"> </span>headers=headers,</pre>
<pre class="line before"><span class="ws"> </span>ignore=ignore,</pre>
<pre class="line current"><span class="ws"> </span>timeout=timeout,</pre>
<pre class="line after"><span class="ws"> </span>)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span>except TransportError as e:</pre>
<pre class="line after"><span class="ws"> </span>if method == "HEAD" and e.status_code == 404:</pre>
<pre class="line after"><span class="ws"> </span>return False</pre></div>
</div>
<li><div class="frame" id="frame-140595454387872">
<h4>File <cite class="filename">"/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py"</cite>,
line <em class="line">247</em>,
in <code class="function">perform_request</code></h4>
<div class="source "><pre class="line before"><span class="ws"> </span>except Exception as e:</pre>
<pre class="line before"><span class="ws"> </span>self.log_request_fail(</pre>
<pre class="line before"><span class="ws"> </span>method, full_url, url, body, time.time() - start, exception=e</pre>
<pre class="line before"><span class="ws"> </span>)</pre>
<pre class="line before"><span class="ws"> </span>if isinstance(e, UrllibSSLError):</pre>
<pre class="line current"><span class="ws"> </span>raise SSLError("N/A", str(e), e)</pre>
<pre class="line after"><span class="ws"> </span>if isinstance(e, ReadTimeoutError):</pre>
<pre class="line after"><span class="ws"> </span>raise ConnectionTimeout("TIMEOUT", str(e), e)</pre>
<pre class="line after"><span class="ws"> </span>raise ConnectionError("N/A", str(e), e)</pre>
<pre class="line after"><span class="ws"></span> </pre>
<pre class="line after"><span class="ws"> </span># raise errors based on http status codes, let the client handle those if needed</pre></div>
</div>
</ul>
<blockquote>elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:877))</blockquote>
</div>
<div class="plain">
<form action=""/?__debugger__=yes&cmd=paste"" method="post">
<p>
<input type="hidden" name="language" value="pytb">
This is the Copy/Paste friendly version of the traceback. <span
class="pastemessage">You can also paste this traceback into
a <a href=""https://gist.github.com/">gist</a>:
<input type="submit" value="create paste"></span>
</p>
<textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 408, in connect
ssl_context=context,
File "/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in __init__
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 238, in perform_request
method, url, body, retries=Retry(False), headers=request_headers, **kw
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 376, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3.6/site-packages/six.py", line 702, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 408, in connect
ssl_context=context,
File "/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in __init__
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/perfsonar/elmond/app.py", line 59, in list_metadata
metadata = emd.search(q=request.args, request_url=request.url, paginate=True)
File "/usr/lib/perfsonar/elmond/metadata.py", line 151, in search
res = self.es.search(index="pscheduler_*", body=dsl)
File "/usr/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 805, in search
"GET", _make_path(index, "_search"), params=params, body=body
File "/usr/lib/python3.6/site-packages/elasticsearch/transport.py", line 350, in perform_request
timeout=timeout,
File "/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 247, in perform_request
raise SSLError("N/A", str(e), e)
elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:877))</textarea>
</form>
</div>
<div class="explanation">
The debugger caught an exception in your WSGI application. You can now
look at the traceback which led to the error. <span class="nojavascript">
If you enable _javascript_ you can also use additional features such as code
execution (if the evalex feature is enabled), automatic pasting of the
exceptions and much more.</span>
</div>
<div class="footer">
Brought to you by <strong class="arthur">DON'T PANIC</strong>, your
friendly Werkzeug powered traceback interpreter.
</div>
</div>
<div class="pin-prompt">
<div class="inner">
<h3>Console Locked</h3>
<p>
The console is locked and needs to be unlocked by entering the PIN.
You can find the PIN printed out on the standard output of your
shell that runs the server.
<form>
<p>PIN:
<input type=text name=pin size=14>
<input type=submit name=btn value="Confirm Pin">
</form>
</div>
</div>
</body>
</html>
<!--
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 408, in connect
ssl_context=context,
File "/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in __init__
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 238, in perform_request
method, url, body, retries=Retry(False), headers=request_headers, **kw
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 376, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3.6/site-packages/six.py", line 702, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 408, in connect
ssl_context=context,
File "/usr/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in __init__
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/perfsonar/elmond/app.py", line 59, in list_metadata
metadata = emd.search(q=request.args, request_url=request.url, paginate=True)
File "/usr/lib/perfsonar/elmond/metadata.py", line 151, in search
res = self.es.search(index="pscheduler_*", body=dsl)
File "/usr/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 805, in search
"GET", _make_path(index, "_search"), params=params, body=body
File "/usr/lib/python3.6/site-packages/elasticsearch/transport.py", line 350, in perform_request
timeout=timeout,
File "/usr/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 247, in perform_request
raise SSLError("N/A", str(e), e)
elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:877))
-->
[root@isgpscore ~]#
- [perfsonar-user] Error loading test listing; measurement archive unreachable., White, Doug, 05/10/2022
- Re: [perfsonar-user] Error loading test listing; measurement archive unreachable., Mark Feit, 05/13/2022
Archive powered by MHonArc 2.6.24.