-
Notifications
You must be signed in to change notification settings - Fork 16
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
Device is not online #86
Comments
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. |
Hello there 👋🏻. Unfortunately this leads to another error/bug when the synology diskstation is off #89 It constantly restarting the whole Homebridge. |
Hi. Thanks for reporting. Missed the error-handling part. Fixed with 1e59af8 (0.5.2) |
Hi. You are welcome. Thanks for fixing! 🙂 |
(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.The text was updated successfully, but these errors were encountered: