core: SynologyDSM , after reboot of Synology, HA doesnt reconnect properly (camera + homemode)
The problem
Hi,
I intergrated my SynologyDSM, but when i restart my synology, HA doesnt reconnect properly, i always need to restart HA again… I loose functions to HomeMode, and all my camera streams are gone
After restart, its OK again
Running synology DSM 6.1
i copy pasted a log below, the log starts when i initiate a restart of synology
What version of Home Assistant Core has the issue?
core-2022.4.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
synologydsm
Link to integration documentation on our website
https://www.home-assistant.io/integrations/synology_dsm/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.wasplaats] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.boven] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hidvcam] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eetkamer] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.living] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.buiten] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.bureau] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:53 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.deurbel] Error from stream worker: Stream ended; no additional packets
2022-04-27 21:46:57 ERROR (MainThread) [plexwebsocket] Websocket connection failed, retrying in 15s: Cannot connect to host 192.168.0.14:32400 ssl:default [Connect call failed ('192.168.0.14', 32400)]
2022-04-27 21:47:02 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_cameras data: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'ConnectionError = <urllib3.connection.HTTPSConnection object at 0x7fdc2fb05700>: Failed to establish a new connection: [Errno 111] Connection refused'}
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fdc2fb05700>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=7&method=List&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc2fb05700>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 294, in _execute_request
response = self._session.get(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=7&method=List&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc2fb05700>: Failed to establish a new connection: [Errno 111] Connection refused'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 143, in async_coordinator_update_data_cameras
await hass.async_add_executor_job(surveillance_station.update)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 26, in update
list_data = self._dsm.get(self.CAMERA_API_KEY, "List", max_version=7)["data"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 266, in _request
response = self._execute_request(request_method, url, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 336, in _execute_request
raise SynologyDSMRequestException(exp) from exp
synology_dsm.exceptions.SynologyDSMRequestException: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'ConnectionError = <urllib3.connection.HTTPSConnection object at 0x7fdc2fb05700>: Failed to establish a new connection: [Errno 111] Connection refused'}
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.wasplaats] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=19.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.boven] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=16.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hidvcam] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=25.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eetkamer] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=17.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.living] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=15.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.bureau] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=20.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.deurbel] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=24.unicast
2022-04-27 21:47:03 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.buiten] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=18.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.wasplaats] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=19.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.boven] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=16.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hidvcam] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=25.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.bureau] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=20.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eetkamer] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=17.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.living] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=15.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.deurbel] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=24.unicast
2022-04-27 21:47:28 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.buiten] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.0.14:554/Sms=18.unicast
2022-04-27 21:47:37 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_switches data: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': "ConnectTimeout = (<urllib3.connection.HTTPSConnection object at 0x7fdc1fa2b850>, 'Connection to 192.168.0.14 timed out. (connect timeout=30)')"}
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, 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.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fdc1fa2b850>, 'Connection to 192.168.0.14 timed out. (connect timeout=30)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.HomeMode&version=1&method=GetInfo&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fdc1fa2b850>, 'Connection to 192.168.0.14 timed out. (connect timeout=30)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 294, in _execute_request
response = self._session.get(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.HomeMode&version=1&method=GetInfo&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fdc1fa2b850>, 'Connection to 192.168.0.14 timed out. (connect timeout=30)'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 174, in async_coordinator_update_data_switches
"home_mode": await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 152, in get_home_mode_status
return self._dsm.get(self.HOME_MODE_API_KEY, "GetInfo")["data"]["on"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 266, in _request
response = self._execute_request(request_method, url, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 336, in _execute_request
raise SynologyDSMRequestException(exp) from exp
synology_dsm.exceptions.SynologyDSMRequestException: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': "ConnectTimeout = (<urllib3.connection.HTTPSConnection object at 0x7fdc1fa2b850>, 'Connection to 192.168.0.14 timed out. (connect timeout=30)')"}
2022-04-27 21:47:47 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_cameras data: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'ConnectionError = <urllib3.connection.HTTPSConnection object at 0x7fdc194f07f0>: Failed to establish a new connection: [Errno 111] Connection refused'}
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fdc194f07f0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=7&method=List&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc194f07f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 294, in _execute_request
response = self._session.get(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.0.14', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&version=7&method=List&_sid=RGuZW4u.6bu.gC7LWN09761 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc194f07f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 143, in async_coordinator_update_data_cameras
await hass.async_add_executor_job(surveillance_station.update)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 26, in update
list_data = self._dsm.get(self.CAMERA_API_KEY, "List", max_version=7)["data"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 266, in _request
response = self._execute_request(request_method, url, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 336, in _execute_request
raise SynologyDSMRequestException(exp) from exp
synology_dsm.exceptions.SynologyDSMRequestException: {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'ConnectionError = <urllib3.connection.HTTPSConnection object at 0x7fdc194f07f0>: Failed to establish a new connection: [Errno 111] Connection refused'}
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.wasplaats] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=19.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.boven] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=16.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hidvcam] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=25.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.bureau] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=20.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eetkamer] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=17.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.deurbel] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=24.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.buiten] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=18.unicast
2022-04-27 21:47:58 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.living] Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@192.168.0.14:554/Sms=15.unicast
2022-04-27 21:48:07 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_switches data: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 174, in async_coordinator_update_data_switches
"home_mode": await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 152, in get_home_mode_status
return self._dsm.get(self.HOME_MODE_API_KEY, "GetInfo")["data"]["on"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 280, in _request
raise SynologyDSMAPIErrorException(
synology_dsm.exceptions.SynologyDSMAPIErrorException: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
2022-04-27 21:48:37 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_switches data: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 174, in async_coordinator_update_data_switches
"home_mode": await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 152, in get_home_mode_status
return self._dsm.get(self.HOME_MODE_API_KEY, "GetInfo")["data"]["on"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 280, in _request
raise SynologyDSMAPIErrorException(
synology_dsm.exceptions.SynologyDSMAPIErrorException: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.buiten] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=18.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.deurbel] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=24.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eetkamer] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=17.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.hidvcam] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=25.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.bureau] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=20.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.wasplaats] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=19.unicast
2022-04-27 21:48:39 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.living] Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.0.14:554/Sms=15.unicast
2022-04-27 21:49:07 ERROR (MainThread) [homeassistant.components.synology_dsm] Unexpected error fetching C7LWN09761_switches data: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 174, in async_coordinator_update_data_switches
"home_mode": await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/api/surveillance_station/__init__.py", line 152, in get_home_mode_status
return self._dsm.get(self.HOME_MODE_API_KEY, "GetInfo")["data"]["on"]
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 213, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 280, in _request
raise SynologyDSMAPIErrorException(
synology_dsm.exceptions.SynologyDSMAPIErrorException: {'api': 'SYNO.SurveillanceStation.HomeMode', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24 (7 by maintainers)
I just ran into this issue as well. I’ve enabled logging and will provide my diagnostics the next time I can make the error occur.
Ahh, so that means, if I wait long enough , eventually cameras are back?