Skip to content

Instantly share code, notes, and snippets.

@f4rx
Created March 3, 2018 19:42
Show Gist options
  • Select an option

  • Save f4rx/8d7c9ef86747c79898db006e09f7d319 to your computer and use it in GitHub Desktop.

Select an option

Save f4rx/8d7c9ef86747c79898db006e09f7d319 to your computer and use it in GitHub Desktop.
DevOps Otus HW 25
Traceback (most recent call last):
File \"/usr/local/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File \"/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py\", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File \"/usr/local/lib/python3.6/socket.py\", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 601, in urlopen
chunked=chunked)
File \"/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File \"/usr/local/lib/python3.6/http/client.py\", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File \"/usr/local/lib/python3.6/http/client.py\", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File \"/usr/local/lib/python3.6/http/client.py\", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File \"/usr/local/lib/python3.6/http/client.py\", line 1026, in _send_output
self.send(msg)
File \"/usr/local/lib/python3.6/http/client.py\", line 964, in send
self.connect()
File \"/usr/local/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect
conn = self._new_conn()
File \"/usr/local/lib/python3.6/site-packages/urllib3/connection.py\", line 150, in _new_conn
self, \"Failed to establish a new connection: %s\" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fca0663f358>: Failed to establish a new connection: [Errno -2] Name does not resolve
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/usr/local/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send
timeout=timeout
File \"/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File \"/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py\", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='zipkin', port=9411): Max retries exceeded with url: /api/v1/spans (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fca0663f358>: Failed to establish a new connection: [Errno -2] Name does not resolve',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File \"/usr/local/lib/python3.6/site-packages/flask/app.py\", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File \"post_app.py\", line 96, in posts
posts = find_posts()
File \"/usr/local/lib/python3.6/site-packages/py_zipkin/zipkin.py\", line 296, in __exit__
self.stop(_exc_type, _exc_value, _exc_traceback)
File \"/usr/local/lib/python3.6/site-packages/py_zipkin/zipkin.py\", line 314, in stop
self.logging_context.stop()
File \"/usr/local/lib/python3.6/site-packages/py_zipkin/logging_helper.py\", line 76, in stop
self.log_spans()
File \"/usr/local/lib/python3.6/site-packages/py_zipkin/logging_helper.py\", line 185, in log_spans
transport_handler=self.transport_handler,
File \"/usr/local/lib/python3.6/site-packages/py_zipkin/logging_helper.py\", line 325, in log_span
transport_handler(message)
File \"post_app.py\", line 55, in http_transport
headers={'Content-Type': 'application/x-thrift'})
File \"/usr/local/lib/python3.6/site-packages/requests/api.py\", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File \"/usr/local/lib/python3.6/site-packages/requests/api.py\", line 58, in request
return session.request(method=method, url=url, **kwargs)
File \"/usr/local/lib/python3.6/site-packages/requests/sessions.py\", line 508, in request
resp = self.send(prep, **send_kwargs)
File \"/usr/local/lib/python3.6/site-packages/requests/sessions.py\", line 618, in send
r = adapter.send(request, **kwargs)
File \"/usr/local/lib/python3.6/site-packages/requests/adapters.py\", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='zipkin', port=9411): Max retries exceeded with url: /api/v1/spans (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fca0663f358>: Failed to establish a new connection: [Errno -2] Name does not resolve',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment