-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Synology Integration does not work reliable for DS413J, is often unavailable #119099
Comments
Hey there @hacf-fr, @Quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) synology_dsm documentation |
I believe thats one of the ones with the old slower Marvell chips. Maybe 30s is even too low for it when its under load. Synology's API internals are very poorly optimized. We ended up bumping up the timeout a bit ago, but maybe its not enough. Maybe we need to go to 40s |
What does the startup time look like ? System -> Settings -> Repairs -> 3 dots in the upper right -> Integration startup time |
We increased it to 30 in #116836 I'm hesitant to increase it more without splitting the timeout in the library so we have a lower connect timeout and a higher read timeout as we might get into a predicament where we block startup for too long if we increase it anymore |
I think we could set the connect timeout to 15 and the read/write timeout to 40s and be ok But we would need a change in the library to be able to pass both |
Right now its implemented as a total timeout https://github.com/mib1185/py-synologydsm-api/blob/b6166f77504f9d705b6b77cd458e39e21e44d892/src/synology_dsm/synology_dsm.py#L77 |
Since the lib already knows about aiohttp sessions, I think it would be ok to accept a |
I'm not the codeowner here so above it just my suggestion. Let's wait for one of the codeowners to respond before proceeding |
Hi @bdraco |
i found some spare time in between preparing for the business trip 🙈 |
Feedback: Seems to work 100% now (HA 2024.6.2). Thank you very much! |
The problem
Since HA 2024.6, one of my Synology NAS is often unavailable.
It has worked fine for years up until now, and nothing is changed on the NAS.
I have two NAS, one still works great with HA (NAS02 / DS213j) while the other one (NAS01 / DS413j) keeps showing all entities as unavailable for a period of time, then they work for a while and then it starts over.
One thing that differs between the two is the DSM version.
NAS01 (problem)
DS413j
DSM 6.2.4-25556 Update 7 (no updates available)
NAS02 (ok)
DS213j
DSM 7.1.1-42962 Update 6 (no updates available)
The "connectivity" looks like this since HA 2024.6:
It looks a bit like #115062, but that one seems to be solved.
What version of Home Assistant Core has the issue?
core-2024.6.0
What was the last working version of Home Assistant Core?
core-2024.5.x
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Synology DSM
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?
Additional information
No response
The text was updated successfully, but these errors were encountered: