Hi,
The Synology DSM integration has been running perfectly for four weeks on my Home Assistant Supervised system, but suddenly it became unavailable; the first time tonight at 03:00, and again this afternoon at 16:30
I cannot link it to any specific event at those moments.
The setup, including the Separate Admin User, is exactly like shown in the documentation:
The version of HA is 2021.8.6
The NAS itself is still online as normal on my network.
On my NAS I cannot find any traces that could relate to this problem, and I also cannot find any log entries in HA that might relate to this (except for the log entries stating that the NAS entities became unavailable).
A temporary solution is to restart HA, but does anybody have another idea what could be causing this?
I have similar problem lately - Synology entities oftne become unavailable, looking into integrations shows that integration is colored red as “it needs to be reconfigured”. That means removing and re-adding integration (or restarting HA, sure). I still didn’t find why, since it worked before. Ok, i recently updated to DSM7, but i kinda doubt that it’s the cause…
Thanks for your reply and confirmation.
I can confirm the integration to be shown in a red square when it has become unavailable.
This disappears again after a restart of HA.
My Synology NAS is too old to be able to upgrade it to DSM7, so mine is still at version 6.2.
So the upgrade to DSM7 probably is not the cause.
Up to now it has happened three times for me since August 12, but not anymore since the last time yesterday at 16:30
It happened again today at 17:07 (CET), and, because I changed the logging setting for HA, I now have been able to produce some logs:
2021-08-15 17:07:24 WARNING (MainThread) [homeassistant.components.synology_dsm] Connection error during update, fallback by reloading the entry
2021-08-15 17:07:26 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry NAS1 for synology_dsm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 432, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 329, in async_unload_entry
await entry_data[SYNO_API].async_unload()
File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 577, in async_unload
await self._hass.async_add_executor_job(self.dsm.logout)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 197, in logout
result = self.get(API_AUTH, "logout")
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 211, in get
return self._request("GET", api, method, params, **kwargs)
File "/usr/local/lib/python3.9/site-packages/synology_dsm/synology_dsm.py", line 262, 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 310, in _execute_request
+ response.url.replace(params["account"], "********").replace(
KeyError: 'account'
So apparently it is related to an “account” problem?
Does anybody have an idea about this?
I have the same troubles.
Removing the dsm integration.
Rebooting, it apparears has a new integration available.
I aad it, it works for few hours then turns unavailable.
I also have the same issue recurring in the past week perhaps. I am on 2024.10.2.
It was problematic some months back, it got fixed for some months and it has started to recur again. I only started noticing the significantly increased frequency lately, so cannot tell which update caused this uptick in ocurrence.
It goes unavailable every 1 or 2 hours, no fixed pattern.
I will collect logs and post once I get them.
Edit, from HA Core logs
Source: helpers/update_coordinator.py:386
integration: Synology DSM (documentation, issues)
First occurred: October 16, 2024 at 16:10:03 (18 occurrences)
Last logged: 20:36:20
Error fetching 192.168.x.x SynologyDSMCentralUpdateCoordinator data: Error communicating with API: {'api': 'SYNO.Core.System.Utilization', 'code': 1052, 'reason': 'Unknown', 'details': {'err_line': 194, 'err_msg': 'Transmition get failed Result.'}}