Closed dgtal1 closed 3 months ago
Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
synology_dsm documentation synology_dsm source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
That's still not solved. I'm still loosing video stream from my Synology camera even in the newest HA version.
I have the same problem, if I activate "Preload Stream" it works bit without this beeing enabled, the stream stops after some time.
Same issue here. HA claims that my entity is no longer being provided but if I reload the integration it works for a few hours.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
For many months now I have a problem with my Synology cameras preview in Home Assistant. It used to work super stable for years, but for over a year there's the same issue happening: after the last HA restart I keep losing video. Sometimes it's hours, sometimes days, but eventually it's gone and I need to reload thy Synology integration to have it working again.
I opened an issue for this a year ago: https://github.com/home-assistant/core/issues/72242. It looked like it helped (I was using the custom_component version of the fix provided in there), but HA version 2023.5 broke the compatibility with the custom fix, so I rolled back to the HA version to have the video working again. This time however the situation got worse. While the custom fix helped me to maintain video for days - now it's failing after several hours, sometimes below 1 hoour :(
What wonders me is that I've got 2 DSM cameras integrated with HA, but only 1 is configured to keep the stream running: HA entity:
camera.synology_podjazd
And this one never fails!The one which fails (HA entity
camera.synology_dach
) with this error I described has the setting disabled:I think it is relevant to highlight this. I don't want both cameras to have stream preloading as this consumes CPU on my HA server, which I want to be as little energy consuming and as fast as possible.
What version of Home Assistant Core has the issue?
core-2023.8.1
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
synology_dsm
Link to integration documentation on our website
https://www.home-assistant.io/integrations/synology_dsm
Diagnostics information
config_entry-synology_dsm-4e2b48aaaf05e4597d49bc2eb475af28.json (8).txt
I had to compress the log file and upload to GDrive as the debug log generated 90 MB of data in about 1 hour. Here's the debug log: https://drive.google.com/file/d/153txsGAcbQ5dFwjiwTqp8d3EpwzeWqNp/view?usp=drive_link
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Looks like it's related to stream preloading. Apparently when not retrieving video data from Synology for some time - the integration looses some access token, which probably needs to be refreshed every once and a while. Since integration reload solves this issue and this is the workaround I use to avoid restarting the whole HA server - this must be some buffering or token validity issue in my opinion.
I enabled debug logging for Synology DSM integration and downloaded it once the error occurred. The log is huge as it has all entries since the last HA bootup which is 10 days, but I saw it shows the DEBUG log entries right after I enabled it in settings. I think everything may be relevant and hoping you are able to filter out the irrelevant log entries.
Keeping fingers crossed that this time you'll be able to pinpoint the issue and solve it once and forever 🤞