Closed nh13 closed 1 year ago
I think a more permanent solution is needed without the user having to manually ssh into the disk station. Thoughts?
Thanks for figuring this out. The older version of this plugin did just call the diskstations webinterface to detect the online state. Reverting this back should solve this issue. What do you think?
@stfnhmplr that works for me!
I finally found some time to fix this. Instead of ping, an HTTP request is sent to the web interface to determine the online state.
I finally found some time to fix this. Instead of ping, an HTTP request is sent to the web interface to determine the online state.
Hello there 👋🏻. Unfortunately this leads to another error/bug when the synology diskstation is off https://github.com/stfnhmplr/homebridge-synology/issues/89
It constantly restarting the whole Homebridge.
Hi. Thanks for reporting. Missed the error-handling part. Fixed with 1e59af8 (0.5.2)
(copied from here)
Error messages like:
The
ping
module used by this plugin routes its request to the underlyingping
command line utility (see here). Runningping <ip address>
in the terminal gives me the error:ping: socket: Operation not permitted
. This lead me to looking here.The solution was to separately log into the DiskStation via ssh and execute
sudo setcap 'cap_net_raw+ep' "$(which ping)"
. Then restart HomeBridge and voila, it can now ping the DiskStation and operate normally. Note: I also updated thehomebridge
dependency to 1.6 just in case the API changed.