36.0 aiohttp Update errors

Hello, I’m new to HA and am running the manual Pi config on a PI3. I just updated to v0.36.0 and received these errors? While I was having issues with certain components and SSL before, I was not having issues with what appear to be core components. Any advice? Do I need to update some dependencies?

17-01-16 09:49:20 aiohttp.server: Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 427, in handle
    result = yield from result
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 186, in get
    def state(self):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 221, in handle
    def get(self, request, entity_id):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 135, in handle_async_mjpeg_stream
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_reqrep.py", line 897, in write_eof
    yield from self._resp_impl.write_eof()
  File "/usr/lib/python3.4/asyncio/streams.py", line 299, in drain
    yield from self._protocol._drain_helper()
  File "/usr/lib/python3.4/asyncio/streams.py", line 190, in _drain_helper
    raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost
17-01-16 09:49:43 homeassistant.components.conversation: Unable to process:

Looks like an issue with conversation. What happens if you exclude conversation: from your configuration?

I still have errors after updating to 0.36.1:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 62, in static_middleware_handler
    resp = yield from handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_urldispatcher.py", line 486, in _handle
    ret = yield from self._file_sender.send(request, filepath)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/file_sender.py", line 201, in send
    yield from self._sendfile(request, resp, f, count)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 30, in sendfile
    yield from orig_sendfile(request, resp, fobj, count)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/file_sender.py", line 60, in _sendfile_system
    yield from self._sendfile_fallback(request, resp, fobj, count)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/file_sender.py", line 137, in _sendfile_fallback
    resp.set_tcp_nodelay(True)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_reqrep.py", line 737, in set_tcp_nodelay
    resp_impl.transport.set_tcp_nodelay(value)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/parsers.py", line 253, in set_tcp_nodelay
    self._socket.setsockopt(socket.IPPROTO_TCP, CORK, False)
OSError: [Errno 9] Bad file descriptor

No ‘conversation’ error though

Looks like there is a fix here: https://github.com/home-assistant/home-assistant/pull/4118/commits/50dcb1df4c4e0880f5f2b06f3c588d39e48b7a7b

I don’t have a clue how to implement it though, I can’t navigate to the /home/homeassistant/components folder (doesn’t exist). It also doesn’t exist in the .homeassistant folder

Disabling conversation didn’t seem to work. And I agree with Bob_NL…I don’t have the same paths below that line up with the fix he posted from a few months ago. I’ll keep searching!

What operating system do you use? It seems like you use an OS that does not support TCP Cork ?

http://aiohttp.readthedocs.io/en/stable/web.html#flow-control

Your error is benign and can be ignored. We’ll mute it in the next release.

Raspberry Pi 3 - I used the Raspberry Pi All-In-One installer

I’m using Raspian lite (or something similar) on a new Pi3

But what OS are you using ?

Might be relevant https://github.com/home-assistant/home-assistant/issues/5375

I’m running Raspian Jessie v8

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian

I’m running:

PRETTY_NAME=“Raspbian GNU/Linux 8 (jessie)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“8”
VERSION=“8 (jessie)”
ID=raspbian
ID_LIKE=debian

Keep getting various aiohttp errors.
v0.42.3:

17-04-12 18:19:56 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_protocol.py", line 429, in start
    yield from resp.prepare(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_fileresponse.py", line 232, in prepare
    return (yield from self._sendfile(request, fobj, count))
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 61, in sendfile
    yield from orig_sendfile(request, fobj, count)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_fileresponse.py", line 114, in _sendfile_system
    writer = yield from self._sendfile_fallback(request, fobj, count)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_fileresponse.py", line 142, in _sendfile_fallback
    yield from writer.write(chunk)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 294, in drain
    yield from self._stream.drain()
  File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 127, in drain
    yield from self._protocol._drain_helper()
  File "/usr/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
    yield from waiter
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
concurrent.futures._base.CancelledError

I’m getting a similar error, fresh AIO install, Errors seem to appear after setting up HTTPS (lets encrypt and duckdns)

17-05-02 07:10:33 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_protocol.py", line 430, in start
    yield from resp.write_eof()
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_response.py", line 574, in write_eof
    yield from super().write_eof(body)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_response.py", line 413, in write_eof
    yield from self._payload_writer.write_eof(data)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 281, in write_eof
    yield from self.drain(True)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 294, in drain
    yield from self._stream.drain()
  File "/home/homeassistant/.homeassistant/deps/aiohttp/http_writer.py", line 127, in drain
    yield from self._protocol._drain_helper()
  File "/usr/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
    yield from waiter
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
concurrent.futures._base.CancelledError

I’m also having exactly the same ones (43.2). Nothing seems broken eg not working so not sure what is causing this.

Any findings from the others?

Fix will be included in 0.44.3: https://github.com/home-assistant/home-assistant/pull/7590

It was related to a bug/unsupported feature in Python: http://bugs.python.org/issue29930