core: Unknown connection error in Plex integration setup

Home Assistant release with the issue: 0.101.2

Last working Home Assistant release (if known): 0.100.2

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io running as a VM on ESXi

Integration: plex https://www.home-assistant.io/integrations/plex/

Description of problem: Same as above Removed, re-added. No new devices show up. Plex and Hass.io are on different subnets but never had an issue. Plex is running on a QNap NAS.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

plex:
    host: !secret plex_host
    ssl: true
    verify_ssl: false

_Originally posted by @SPCulhane in https://github.com/home-assistant/home-assistant/issues/28485#issuecomment-549811293_

Originally I have Plex setup with Required secured connection with the above Plex integration config. This was working until the recent update. Now its showing Unknown and doesn’t show any plays.

If I change Plex to Preferred secured connection and change the Plex integration to ssl: false. It shows unknown until a show is played. It’s reporting what is playing and adding devices.

Thinking my issue is different. I will do some more digging later but having Plex setup with Required secured connection isn’t working right with the recently HA update. In the logs you’ll notice some 10.x IPs, those are because the QNap NAS has docker running on it. When using autodiscovery, Plex is found and I login but end up with a 500 server error.

2019-11-05 09:39:37 ERROR (Thread-21) [plexapi] http://192.168.0.10:32400: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2019-11-05 09:39:57 INFO (SyncWorker_3) [plexapi] Testing 8 resource connections..
2019-11-05 09:39:57 ERROR (Thread-29) [plexapi] http://192.168.0.10:32400: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2019-11-05 09:40:06 ERROR (MainThread) [homeassistant.components.plex] Unknown error connecting to Plex server: 
2019-11-05 09:40:07 ERROR (Thread-22) [plexapi] http://10.0.5.1:32400: HTTPConnectionPool(host='10.0.5.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4e3eb90>, 'Connection to 10.0.5.1 timed out. (connect timeout=30)'))
2019-11-05 09:40:07 ERROR (Thread-24) [plexapi] http://24.164.00.00:32400: HTTPConnectionPool(host='24.164.00.00', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b5115b10>, 'Connection to 24.164.00.00 timed out. (connect timeout=30)'))
2019-11-05 09:40:07 ERROR (Thread-23) [plexapi] http://10.0.3.1:32400: HTTPConnectionPool(host='10.0.3.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b522c150>, 'Connection to 10.0.3.1 timed out. (connect timeout=30)'))
2019-11-05 09:40:07 ERROR (Thread-18) [plexapi] https://10-0-5-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-5-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4e42250>, 'Connection to 10-0-5-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:07 ERROR (Thread-20) [plexapi] https://24-164-00-00.something.plex.direct:32400: HTTPSConnectionPool(host='24-164-00-00.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b52015d0>, 'Connection to 24-164-00-00.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:07 ERROR (Thread-19) [plexapi] https://10-0-3-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-3-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4ede0d0>, 'Connection to 10-0-3-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection OK (1s): https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): https://10-0-5-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): https://10-0-3-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): https://24-164-00-00.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (0s): http://192.168.0.10:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): http://10.0.5.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): http://10.0.3.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Resource connection ERR (30s): http://24.164.00.00:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:07 INFO (SyncWorker_8) [plexapi] Connecting to Resource: https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:08 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 286, in get
    flow_id=request.query["flow_id"], user_input=None
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 82, in async_configure
    raise UnknownFlow
homeassistant.data_entry_flow.UnknownFlow
2019-11-05 09:40:26 ERROR (MainThread) [homeassistant.components.plex] Unknown error connecting to Plex server: 
2019-11-05 09:40:26 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 154, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 78, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 89, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 162, in _async_handle_step
    self._progress.pop(flow.flow_id)
KeyError: 'cb6a84de01c44773a6fb8db44d6c2e19'
2019-11-05 09:40:27 ERROR (Thread-27) [plexapi] https://10-0-3-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-3-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4c90c10>, 'Connection to 10-0-3-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:27 ERROR (Thread-28) [plexapi] https://24-164-00-00.something.plex.direct:32400: HTTPSConnectionPool(host='24-164-00-00.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4c98cd0>, 'Connection to 24-164-00-00.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:27 ERROR (Thread-30) [plexapi] http://10.0.5.1:32400: HTTPConnectionPool(host='10.0.5.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b5094090>, 'Connection to 10.0.5.1 timed out. (connect timeout=30)'))
2019-11-05 09:40:27 ERROR (Thread-26) [plexapi] https://10-0-5-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-5-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4c90e90>, 'Connection to 10-0-5-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:40:27 ERROR (Thread-32) [plexapi] http://24.164.00.00:32400: HTTPConnectionPool(host='24.164.00.00', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4cab190>, 'Connection to 24.164.00.00 timed out. (connect timeout=30)'))
2019-11-05 09:40:27 ERROR (Thread-31) [plexapi] http://10.0.3.1:32400: HTTPConnectionPool(host='10.0.3.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4cabc90>, 'Connection to 10.0.3.1 timed out. (connect timeout=30)'))
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection OK (0s): https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): https://10-0-5-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): https://10-0-3-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): https://24-164-00-00.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (0s): http://192.168.0.10:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): http://10.0.5.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): http://10.0.3.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Resource connection ERR (30s): http://24.164.00.00:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:27 INFO (SyncWorker_3) [plexapi] Connecting to Resource: https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:40:48 INFO (MainThread) [homeassistant.components.ambient_station] Connected to websocket
2019-11-05 09:40:48 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ambient_station
2019-11-05 09:40:48 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ambient_station
2019-11-05 09:40:52 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140272372033424] Connection closed by client
2019-11-05 09:41:26 INFO (SyncWorker_9) [plexapi] Testing 8 resource connections..
2019-11-05 09:41:26 ERROR (Thread-37) [plexapi] http://192.168.0.10:32400: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2019-11-05 09:41:39 INFO (SyncWorker_0) [plexapi] Testing 8 resource connections..
2019-11-05 09:41:39 ERROR (Thread-45) [plexapi] http://192.168.0.10:32400: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2019-11-05 09:41:55 ERROR (MainThread) [homeassistant.components.plex] Unknown error connecting to Plex server: 
2019-11-05 09:41:56 ERROR (Thread-35) [plexapi] https://10-0-3-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-3-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4ca7510>, 'Connection to 10-0-3-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:41:56 ERROR (Thread-38) [plexapi] http://10.0.5.1:32400: HTTPConnectionPool(host='10.0.5.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4ca8150>, 'Connection to 10.0.5.1 timed out. (connect timeout=30)'))
2019-11-05 09:41:56 ERROR (Thread-36) [plexapi] https://24-164-00-00.something.plex.direct:32400: HTTPSConnectionPool(host='24-164-00-00.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4c53b90>, 'Connection to 24-164-00-00.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:41:56 ERROR (Thread-40) [plexapi] http://24.164.00.00:32400: HTTPConnectionPool(host='24.164.00.00', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4edc0d0>, 'Connection to 24.164.00.00 timed out. (connect timeout=30)'))
2019-11-05 09:41:56 ERROR (Thread-39) [plexapi] http://10.0.3.1:32400: HTTPConnectionPool(host='10.0.3.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4c6d0d0>, 'Connection to 10.0.3.1 timed out. (connect timeout=30)'))
2019-11-05 09:41:56 ERROR (Thread-34) [plexapi] https://10-0-5-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-5-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4bbce90>, 'Connection to 10-0-5-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection OK (0s): https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): https://10-0-5-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): https://10-0-3-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): https://24-164-00-00.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (0s): http://192.168.0.10:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): http://10.0.5.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): http://10.0.3.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Resource connection ERR (30s): http://24.164.00.00:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:56 INFO (SyncWorker_9) [plexapi] Connecting to Resource: https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:41:58 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 286, in get
    flow_id=request.query["flow_id"], user_input=None
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 82, in async_configure
    raise UnknownFlow
homeassistant.data_entry_flow.UnknownFlow
2019-11-05 09:42:08 ERROR (MainThread) [homeassistant.components.plex] Unknown error connecting to Plex server: 
2019-11-05 09:42:08 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 286, in get
    flow_id=request.query["flow_id"], user_input=None
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 89, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 162, in _async_handle_step
    self._progress.pop(flow.flow_id)
KeyError: '416b53dfd2e542ccacdc38f579a64432'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 286, in get
    flow_id=request.query["flow_id"], user_input=None
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 82, in async_configure
    raise UnknownFlow
homeassistant.data_entry_flow.UnknownFlow
2019-11-05 09:42:09 ERROR (Thread-42) [plexapi] https://10-0-5-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-5-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4cc2590>, 'Connection to 10-0-5-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:42:09 ERROR (Thread-43) [plexapi] https://10-0-3-1.something.plex.direct:32400: HTTPSConnectionPool(host='10-0-3-1.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4cc2790>, 'Connection to 10-0-3-1.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:42:09 ERROR (Thread-46) [plexapi] http://10.0.5.1:32400: HTTPConnectionPool(host='10.0.5.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4cc6490>, 'Connection to 10.0.5.1 timed out. (connect timeout=30)'))
2019-11-05 09:42:09 ERROR (Thread-44) [plexapi] https://24-164-00-00.something.plex.direct:32400: HTTPSConnectionPool(host='24-164-00-00.something.plex.direct', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f93b4cc3310>, 'Connection to 24-164-00-00.something.plex.direct timed out. (connect timeout=30)'))
2019-11-05 09:42:09 ERROR (Thread-47) [plexapi] http://10.0.3.1:32400: HTTPConnectionPool(host='10.0.3.1', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4ce0410>, 'Connection to 10.0.3.1 timed out. (connect timeout=30)'))
2019-11-05 09:42:09 ERROR (Thread-48) [plexapi] http://24.164.00.00:32400: HTTPConnectionPool(host='24.164.00.00', port=32400): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f93b4cd7790>, 'Connection to 24.164.00.00 timed out. (connect timeout=30)'))
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection OK (0s): https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): https://10-0-5-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): https://10-0-3-1.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): https://24-164-00-00.something.plex.direct:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (0s): http://192.168.0.10:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): http://10.0.5.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): http://10.0.3.1:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Resource connection ERR (30s): http://24.164.00.00:32400?X-Plex-Token=<hidden>
2019-11-05 09:42:09 INFO (SyncWorker_0) [plexapi] Connecting to Resource: https://192-168-0-10.something.plex.direct:32400?X-Plex-Token=<hidden>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments

At what point in the integration setup does it fail? Can you successfully authenticate at plex.tv? Does the redirect back to HA succeed?

It would fail when it would do the redirect back to HA. The first prompt “Connect Plex server :Continue to authorize at plex.tv.” works and then this pops up “This step requires you to visit an external website to be completed.”. I’m able to login then when it redirects back, i receive the 500 error (https://hassio.1234.net/auth/plex/callback?flow_id=123456)