Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1.  
  2. 2019-03-23 10:30:06 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2951742416] Error handling message: {'type': 'camera_thumbnail', 'entity_id': 'camera.eingang', 'id': 271}
  3.  
  4.  
  5. Traceback (most recent call last):
  6.  
  7.  
  8. File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 70, in create_connection
  9.  
  10.  
  11. sock.connect(sa)
  12.  
  13.  
  14. OSError: [Errno 9] Bad file descriptor
  15.  
  16.  
  17.  
  18.  
  19. During handling of the above exception, another exception occurred:
  20.  
  21.  
  22.  
  23.  
  24. Traceback (most recent call last):
  25.  
  26.  
  27. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
  28.  
  29.  
  30. (self._dns_host, self.port), self.timeout, **extra_kw)
  31.  
  32.  
  33. File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 76, in create_connection
  34.  
  35.  
  36. sock.close()
  37.  
  38.  
  39. File "/usr/local/lib/python3.7/socket.py", line 420, in close
  40.  
  41.  
  42. self._real_close()
  43.  
  44.  
  45. File "/usr/local/lib/python3.7/socket.py", line 414, in _real_close
  46.  
  47.  
  48. _ss.close(self)
  49.  
  50.  
  51. OSError: [Errno 9] Bad file descriptor
  52.  
  53.  
  54.  
  55.  
  56. During handling of the above exception, another exception occurred:
  57.  
  58.  
  59.  
  60.  
  61. Traceback (most recent call last):
  62.  
  63.  
  64. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
  65.  
  66.  
  67. chunked=chunked)
  68.  
  69.  
  70. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 354, in _make_request
  71.  
  72.  
  73. conn.request(method, url, **httplib_request_kw)
  74.  
  75.  
  76. File "/usr/local/lib/python3.7/http/client.py", line 1229, in request
  77.  
  78.  
  79. self._send_request(method, url, body, headers, encode_chunked)
  80.  
  81.  
  82. File "/usr/local/lib/python3.7/http/client.py", line 1275, in _send_request
  83.  
  84.  
  85. self.endheaders(body, encode_chunked=encode_chunked)
  86.  
  87.  
  88. File "/usr/local/lib/python3.7/http/client.py", line 1224, in endheaders
  89.  
  90.  
  91. self._send_output(message_body, encode_chunked=encode_chunked)
  92.  
  93.  
  94. File "/usr/local/lib/python3.7/http/client.py", line 1016, in _send_output
  95.  
  96.  
  97. self.send(msg)
  98.  
  99.  
  100. File "/usr/local/lib/python3.7/http/client.py", line 956, in send
  101.  
  102.  
  103. self.connect()
  104.  
  105.  
  106. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 181, in connect
  107.  
  108.  
  109. conn = self._new_conn()
  110.  
  111.  
  112. File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 168, in _new_conn
  113.  
  114.  
  115. self, "Failed to establish a new connection: %s" % e)
  116.  
  117.  
  118. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xaf5f8650>: Failed to establish a new connection: [Errno 9] Bad file descriptor
  119.  
  120.  
  121.  
  122.  
  123. During handling of the above exception, another exception occurred:
  124.  
  125.  
  126.  
  127.  
  128. Traceback (most recent call last):
  129.  
  130.  
  131. File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
  132.  
  133.  
  134. timeout=timeout
  135.  
  136.  
  137. File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
  138.  
  139.  
  140. _stacktrace=sys.exc_info()[2])
  141.  
  142.  
  143. File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
  144.  
  145.  
  146. raise MaxRetryError(_pool, url, error or ResponseError(cause))
  147.  
  148.  
  149. urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.57.18', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xaf5f8650>: Failed to establish a new connection: [Errno 9] Bad file descriptor'))
  150.  
  151.  
  152.  
  153.  
  154. During handling of the above exception, another exception occurred:
  155.  
  156.  
  157.  
  158.  
  159. Traceback (most recent call last):
  160.  
  161.  
  162. File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
  163.  
  164.  
  165. await func(hass, connection, msg)
  166.  
  167.  
  168. File "/usr/local/lib/python3.7/site-packages/homeassistant/components/camera/__init__.py", line 464, in websocket_camera_thumbnail
  169.  
  170.  
  171. image = await async_get_image(hass, msg['entity_id'])
  172.  
  173.  
  174. File "/usr/local/lib/python3.7/site-packages/homeassistant/components/camera/__init__.py", line 94, in async_get_image
  175.  
  176.  
  177. image = await camera.async_camera_image()
  178.  
  179.  
  180. File "/usr/local/lib/python3.7/site-packages/homeassistant/components/camera/mjpeg.py", line 112, in async_camera_image
  181.  
  182.  
  183. self.camera_image)
  184.  
  185.  
  186. File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
  187.  
  188.  
  189. result = self.fn(*self.args, **self.kwargs)
  190.  
  191.  
  192. File "/usr/local/lib/python3.7/site-packages/homeassistant/components/camera/mjpeg.py", line 148, in camera_image
  193.  
  194.  
  195. req = requests.get(self._mjpeg_url, stream=True, timeout=10)
  196.  
  197.  
  198. File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
  199.  
  200.  
  201. return request('get', url, params=params, **kwargs)
  202.  
  203.  
  204. File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
  205.  
  206.  
  207. return session.request(method=method, url=url, **kwargs)
  208.  
  209.  
  210. File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
  211.  
  212.  
  213. resp = self.send(prep, **send_kwargs)
  214.  
  215.  
  216. File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
  217.  
  218.  
  219. r = adapter.send(request, **kwargs)
  220.  
  221.  
  222. File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
  223.  
  224.  
  225. raise ConnectionError(e, request=request)
  226.  
  227.  
  228. requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.57.18', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xaf5f8650>: Failed to establish a new connection: [Errno 9] Bad file descriptor'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement