Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aiohttp error #10194

Closed
olskar opened this issue Oct 28, 2017 · 7 comments
Closed

aiohttp error #10194

olskar opened this issue Oct 28, 2017 · 7 comments

Comments

@olskar
Copy link
Contributor

olskar commented Oct 28, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.56.2

Python release (python3 --version):
Python 3.5.3

Component/platform:
aiohttp

Description of problem:

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):

2017-10-28 20:43:54 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 434, in start
    yield from resp.prepare(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 240, in prepare
    return (yield from self._sendfile(request, fobj, count))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 61, in sendfile
    yield from orig_sendfile(request, fobj, count)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 121, in _sendfile_system
    writer = yield from self._sendfile_fallback(request, fobj, count)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 149, in _sendfile_fallback
    yield from writer.write(chunk)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/http_writer.py", line 295, in drain
    yield from self._stream.drain()
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/http_writer.py", line 128, in drain
    yield from self._protocol._drain_helper()
  File "/usr/lib/python3.5/asyncio/streams.py", line 211, in _drain_helper
    yield from waiter
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
concurrent.futures._base.CancelledError

Additional info:

@ferdydek
Copy link

This looks like python version issue. Are you able to pin pint what component triggers it? or at which stage of startup this error shows up?
Do you notice something not updating or failing (too) fast (I guess the issue is related with .sleep(n) and just does not wait)?

@Danielhiversen
Copy link
Member

So how do you start HA?
Try to start it by entering hass in a terminal.

@olskar
Copy link
Contributor Author

olskar commented Oct 30, 2017

I get it very early, about 15 seconds into the start of hass. No matter if I use it or not. I run hassbian so I Think it starts with /srv/homeassistant/bin/hass?

@atomicpapa
Copy link

I am getting this same error running AIO .56.2 on Raspbian Stretch

@ferdydek
Copy link

vaguely related to aio-libs/aiohttp#2098
but I think without complete run logs we will not go further with this error.

@balloobbot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

@balloobbot
Copy link

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants