Skip to content
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

Closed
nh13 opened this issue Jan 30, 2023 · 7 comments
Closed

Device is not online #86

nh13 opened this issue Jan 30, 2023 · 7 comments
Labels

Comments

@nh13
Copy link

nh13 commented Jan 30, 2023

(copied from here)

Error messages like:

[9/29/2022, 11:36:18 AM] [DiskStation] Device is not online; Polling temperature disabled.
[9/29/2022, 11:36:18 AM] [DiskStation] Device is not online; Polling disk temperature disabled.

The ping module used by this plugin routes its request to the underlying ping command line utility (see here). Running ping <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 the homebridge dependency to 1.6 just in case the API changed.

@nh13 nh13 added the bug label Jan 30, 2023
@nh13
Copy link
Author

nh13 commented Jan 30, 2023

I think a more permanent solution is needed without the user having to manually ssh into the disk station. Thoughts?

@stfnhmplr
Copy link
Owner

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?

@nh13
Copy link
Author

nh13 commented Jan 31, 2023

@stfnhmplr that works for me!

stfnhmplr added a commit that referenced this issue Mar 3, 2023
@stfnhmplr
Copy link
Owner

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.

@kolorfilm
Copy link

kolorfilm commented Mar 4, 2023

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.

@stfnhmplr
Copy link
Owner

Hi. Thanks for reporting. Missed the error-handling part. Fixed with 1e59af8 (0.5.2)

@kolorfilm
Copy link

Hi. Thanks for reporting. Missed the error-handling part. Fixed with 1e59af8 (0.5.2)

Hi. You are welcome. Thanks for fixing! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants