Since the last update my plex player goes to “Play” status once I start play a movie (which is expected) and stuck there, never goes back to “idle” or “paused” status. I got the following error message. Does anyone else experience this?
Any idea how to fix? Thanks in advance!
I am getting the following error message:
> 2017-06-24 22:30:42 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connection.py”, line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/util/connection.py”, line 83, in create_connection
raise err
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/util/connection.py”, line 73, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py”, line 356, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python3.5/http/client.py”, line 1107, in request
self._send_request(method, url, body, headers)
File “/usr/lib/python3.5/http/client.py”, line 1152, in _send_request
self.endheaders(body)
File “/usr/lib/python3.5/http/client.py”, line 1103, in endheaders
self._send_output(message_body)
File “/usr/lib/python3.5/http/client.py”, line 934, in _send_output
self.send(msg)
File “/usr/lib/python3.5/http/client.py”, line 877, in send
self.connect()
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connection.py”, line 166, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connection.py”, line 146, in _new_conn
(self.host, self.timeout))
requests.packages.urllib3.exceptions.ConnectTimeoutError: (<requests.packages.urllib3.connection.HTTPConnection object at 0x7fe99a6d70f0>, ‘Connection to 192.168.0.XXX timed out. (connect timeout=30)’)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/requests/adapters.py”, line 438, in send
timeout=timeout
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py”, line 649, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/util/retry.py”, line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘192.168.0.XXX’, port=XXXX): Max retries exceeded with url: /player/playback/pause?commandID=1&type=video (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7fe99a6d70f0>, ‘Connection to 192.168.0.XXX timed out. (connect timeout=30)’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/core.py”, line 1021, in _event_to_service_call
yield from service_handler.func(service_call)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/init.py”, line 389, in async_service_handler
yield from getattr(player, method[‘method’])(**params)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/plex.py”, line 731, in media_pause
self.device.pause(self._active_media_plexapi_type)
File “/home/tiszavolgyi/.homeassistant/deps/plexapi/client.py”, line 126, in pause
def pause(self, mtype): self.sendCommand(‘playback/pause’, type=mtype)
File “/home/tiszavolgyi/.homeassistant/deps/plexapi/client.py”, line 85, in sendCommand
return self.query(path, headers=headers)
File “/home/tiszavolgyi/.homeassistant/deps/plexapi/client.py”, line 66, in query
response = method(url, headers=headers, timeout=TIMEOUT, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 531, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 518, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 639, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/requests/adapters.py”, line 494, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host=‘192.168.0.XXX’, port=XXXX): Max retries exceeded with url: /player/playback/pause?commandID=1&type=video (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7fe99a6d70f0>, ‘Connection to 192.168.0.XXX timed out. (connect timeout=30)’))