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

webostv media_player took longer than scheduled update Interval #6542

Closed
pascalmtts opened this issue Mar 12, 2017 · 5 comments
Closed

webostv media_player took longer than scheduled update Interval #6542

pascalmtts opened this issue Mar 12, 2017 · 5 comments

Comments

@pascalmtts
Copy link

pascalmtts commented Mar 12, 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.40

Python release (python3 --version):
Python 3.4.2

Component/platform:
webostv media_player

Description of problem:
When the TV is off, the following will be spammed in the Error Log:

17-03-12 11:07:27 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-03-12 11:07:38 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-03-12 11:07:49 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-03-12 11:08:00 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-03-12 11:08:11 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-03-12 11:08:22 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10

Expected:
Same behavior as when tv is on. (No Warnings in Log)

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

Traceback (if applicable):

Additional info:

@balloob
Copy link
Member

balloob commented Mar 12, 2017

The problem is in the timeout that the dependency pylgtv uses to connect to the TV. It should timeout earlier.

CC @TheRealLink

@gieljnssns
Copy link
Contributor

@balloob
I have the same problem with The pioneer avr

17-04-01 08:42:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.vsx921 is taking over 10 seconds.
17-04-01 08:42:48 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:42:59 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:43:10 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:43:25 WARNING (MainThread) [homeassistant.helpers.entity] Update for media_player.vsx921 is already in progress
17-04-01 08:43:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.vsx921 is taking over 10 seconds.
17-04-01 08:43:32 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:43:43 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:43:54 WARNING (MainThread) [homeassistant.components.media_player] Updating pioneer media_player took longer than the scheduled update interval 0:00:10
17-04-01 08:44:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.vsx921 is taking over 10 seconds.

@HVPereira
Copy link

HVPereira commented Apr 11, 2017

Home Assistant release (hass --version):
0.41

Python release (python3 --version):
Python 3.4.2

Component/platform:
webostv media_player

Description of problem:
When the TV is off, the following will be spammed in the Error Log:

How can we sort out this issue? I have exactly the same problem with WebOS

### `7-04-11 10:25:25 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:25:36 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:25:47 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:25:58 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:26:09 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:26:20 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:26:30 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 686, in _create_direct_connection
    local_addr=self._local_addr)
  File "/usr/lib/python3.4/asyncio/base_events.py", line 570, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.4/asyncio/base_events.py", line 557, in create_connection
    yield from self.sock_connect(sock, address)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 382, in _sock_connect_cb
    raise OSError(err, 'Connect call failed %s' % (address,))
OSError: [Errno 113] Connect call failed ('192.168.1.68', 3000)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 370, in connect
    yield from self._create_connection(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 663, in _create_connection
    transport, proto = yield from self._create_direct_connection(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 709, in _create_direct_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 113] Can not connect to 192.168.1.68:3000 [Connect call failed ('192.168.1.68', 3000)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 62, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 270, in _handle
    resp = yield from handler(request)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware_handler
    return (yield from handler(request))
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 417, in handle
    result = yield from result
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 924, in get
    data, content_type = yield from player.async_get_media_image()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 470, in async_get_media_image
    return (yield from _async_fetch_image(self.hass, url))
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 870, in _async_fetch_image
    response = yield from websession.get(url)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 585, in __iter__
    resp = yield from self._coro
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 217, in _request
    conn = yield from self._connector.connect(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 380, in connect
    .format(key, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 113] Cannot connect to host 192.168.1.68:3000 ssl:False [Can not connect to 192.168.1.68:3000 [Connect call failed ('192.168.1.68', 3000)]]
17-04-11 10:26:31 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:26:33 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 686, in _create_direct_connection
    local_addr=self._local_addr)
  File "/usr/lib/python3.4/asyncio/base_events.py", line 570, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.4/asyncio/base_events.py", line 557, in create_connection
    yield from self.sock_connect(sock, address)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/asyncio/selector_events.py", line 382, in _sock_connect_cb
    raise OSError(err, 'Connect call failed %s' % (address,))
OSError: [Errno 113] Connect call failed ('192.168.1.68', 3000)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 370, in connect
    yield from self._create_connection(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 663, in _create_connection
    transport, proto = yield from self._create_direct_connection(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 709, in _create_direct_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 113] Can not connect to 192.168.1.68:3000 [Connect call failed ('192.168.1.68', 3000)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 62, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 270, in _handle
    resp = yield from handler(request)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware_handler
    return (yield from handler(request))
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 417, in handle
    result = yield from result
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 924, in get
    data, content_type = yield from player.async_get_media_image()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 470, in async_get_media_image
    return (yield from _async_fetch_image(self.hass, url))
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 870, in _async_fetch_image
    response = yield from websession.get(url)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 585, in __iter__
    resp = yield from self._coro
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 217, in _request
    conn = yield from self._connector.connect(req)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/connector.py", line 380, in connect
    .format(key, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 113] Cannot connect to host 192.168.1.68:3000 ssl:False [Can not connect to 192.168.1.68:3000 [Connect call failed ('192.168.1.68', 3000)]]
17-04-11 10:26:42 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
17-04-11 10:26:53 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10`

Can someone tell me what should i do?

@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 Oct 20, 2017
This issue was closed.
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