Skip to content

Instantly share code, notes, and snippets.

@amygdala
Created August 19, 2019 17:43
Show Gist options
  • Save amygdala/19670fcf32c1369c03d4125e86db822b to your computer and use it in GitHub Desktop.
Save amygdala/19670fcf32c1369c03d4125e86db822b to your computer and use it in GitHub Desktop.
metadata server connection error
---------------------------------------------------------------------------
RemoteDisconnected Traceback (most recent call last)
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
599 body=body, headers=headers,
--> 600 chunked=chunked)
601
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
383 # otherwise it looks like a programming error was the cause.
--> 384 six.raise_from(e, None)
385 except (SocketTimeout, BaseSSLError, SocketError) as e:
/opt/conda/lib/python3.6/site-packages/urllib3/packages/six.py in raise_from(value, from_value)
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
379 try:
--> 380 httplib_response = conn.getresponse()
381 except Exception as e:
/opt/conda/lib/python3.6/http/client.py in getresponse(self)
1330 try:
-> 1331 response.begin()
1332 except ConnectionError:
/opt/conda/lib/python3.6/http/client.py in begin(self)
296 while True:
--> 297 version, status, reason = self._read_status()
298 if status != CONTINUE:
/opt/conda/lib/python3.6/http/client.py in _read_status(self)
265 # sending a valid response.
--> 266 raise RemoteDisconnected("Remote end closed connection without"
267 " response")
RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
ProtocolError Traceback (most recent call last)
<ipython-input-5-c8d147568194> in <module>
3 workspace=ws1,
4 run=r,
----> 5 description="execution example",
6 )
7 print("An execution is create with id %s" % exec.id)
/opt/conda/lib/python3.6/site-packages/kfmd/metadata.py in __init__(self, name, workspace, run, description)
151 response = self.workspace.client.create_execution(
152 parent=self.EXECUTION_TYPE_NAME,
--> 153 body=self.serialized(),
154 )
155 self.id = response.execution.id
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/api/metadata_service_api.py in create_execution(self, parent, body, **kwargs)
398 """
399 kwargs['_return_http_data_only'] = True
--> 400 return self.create_execution_with_http_info(parent, body, **kwargs) # noqa: E501
401
402 def create_execution_with_http_info(self, parent, body, **kwargs): # noqa: E501
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/api/metadata_service_api.py in create_execution_with_http_info(self, parent, body, **kwargs)
491 _preload_content=local_var_params.get('_preload_content', True),
492 _request_timeout=local_var_params.get('_request_timeout'),
--> 493 collection_formats=collection_formats)
494
495 def create_execution_type(self, body, **kwargs): # noqa: E501
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/api_client.py in call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host)
339 response_type, auth_settings,
340 _return_http_data_only, collection_formats,
--> 341 _preload_content, _request_timeout, _host)
342 else:
343 thread = self.pool.apply_async(self.__call_api, (resource_path,
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/api_client.py in __call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host)
170 post_params=post_params, body=body,
171 _preload_content=_preload_content,
--> 172 _request_timeout=_request_timeout)
173
174 self.last_response = response_data
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/api_client.py in request(self, method, url, query_params, headers, post_params, body, _preload_content, _request_timeout)
384 _preload_content=_preload_content,
385 _request_timeout=_request_timeout,
--> 386 body=body)
387 elif method == "PUT":
388 return self.rest_client.PUT(url,
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/rest.py in POST(self, url, headers, query_params, post_params, body, _preload_content, _request_timeout)
274 _preload_content=_preload_content,
275 _request_timeout=_request_timeout,
--> 276 body=body)
277
278 def PUT(self, url, headers=None, query_params=None, post_params=None,
/opt/conda/lib/python3.6/site-packages/kfmd/openapi_client/rest.py in request(self, method, url, query_params, headers, body, post_params, _preload_content, _request_timeout)
166 preload_content=_preload_content,
167 timeout=timeout,
--> 168 headers=headers)
169 elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
170 r = self.pool_manager.request(
/opt/conda/lib/python3.6/site-packages/urllib3/request.py in request(self, method, url, fields, headers, **urlopen_kw)
70 return self.request_encode_body(method, url, fields=fields,
71 headers=headers,
---> 72 **urlopen_kw)
73
74 def request_encode_url(self, method, url, fields=None, headers=None,
/opt/conda/lib/python3.6/site-packages/urllib3/request.py in request_encode_body(self, method, url, fields, headers, encode_multipart, multipart_boundary, **urlopen_kw)
148 extra_kw.update(urlopen_kw)
149
--> 150 return self.urlopen(method, url, **extra_kw)
/opt/conda/lib/python3.6/site-packages/urllib3/poolmanager.py in urlopen(self, method, url, redirect, **kw)
321 response = conn.urlopen(method, url, **kw)
322 else:
--> 323 response = conn.urlopen(method, u.request_uri, **kw)
324
325 redirect_location = redirect and response.get_redirect_location()
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
636
637 retries = retries.increment(method, url, error=e, _pool=self,
--> 638 _stacktrace=sys.exc_info()[2])
639 retries.sleep()
640
/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
365 # Read retry?
366 if read is False or not self._is_method_retryable(method):
--> 367 raise six.reraise(type(error), error, _stacktrace)
368 elif read is not None:
369 read -= 1
/opt/conda/lib/python3.6/site-packages/urllib3/packages/six.py in reraise(tp, value, tb)
683 value = tp()
684 if value.__traceback__ is not tb:
--> 685 raise value.with_traceback(tb)
686 raise value
687
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
598 timeout=timeout_obj,
599 body=body, headers=headers,
--> 600 chunked=chunked)
601
602 # If we're going to release the connection in ``finally:``, then
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
382 # Remove the TypeError from the exception chain in Python 3;
383 # otherwise it looks like a programming error was the cause.
--> 384 six.raise_from(e, None)
385 except (SocketTimeout, BaseSSLError, SocketError) as e:
386 self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
/opt/conda/lib/python3.6/site-packages/urllib3/packages/six.py in raise_from(value, from_value)
/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
378 except TypeError: # Python 3
379 try:
--> 380 httplib_response = conn.getresponse()
381 except Exception as e:
382 # Remove the TypeError from the exception chain in Python 3;
/opt/conda/lib/python3.6/http/client.py in getresponse(self)
1329 try:
1330 try:
-> 1331 response.begin()
1332 except ConnectionError:
1333 self.close()
/opt/conda/lib/python3.6/http/client.py in begin(self)
295 # read until we get a non-100 response
296 while True:
--> 297 version, status, reason = self._read_status()
298 if status != CONTINUE:
299 break
/opt/conda/lib/python3.6/http/client.py in _read_status(self)
264 # Presumably, the server closed the connection before
265 # sending a valid response.
--> 266 raise RemoteDisconnected("Remote end closed connection without"
267 " response")
268 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment