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

Ping adapter only ever outputs false #127

Open
Mitch187 opened this issue Nov 21, 2023 · 7 comments
Open

Ping adapter only ever outputs false #127

Mitch187 opened this issue Nov 21, 2023 · 7 comments

Comments

@Mitch187
Copy link

Unfortunately I can't get the ping adapter to work. I have installed the IoBroker on an LXC-Debian which can also ping (normally with the call ping 192.168.15.1)

But it always shows false.

root@iobroker:~# ping 192.168.15.1
PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data.
64 bytes from 192.168.15.1: icmp_seq=1 ttl=64 time=1.45 ms
64 bytes from 192.168.15.1: icmp_seq=2 ttl=64 time=0.380 ms

2023-11-21 20_35_51-objects - mm-iobroker

@Apollon77
Copy link
Contributor

Yey This seems to be something because of LXC ... we did not found the reason so far :-(

@Mitch187
Copy link
Author

This console-commandos brings the solution:

chmod 4755 /bin/ping
reboot

@Apollon77 Apollon77 reopened this Nov 21, 2023
@Apollon77
Copy link
Contributor

I would reopen it becuas question is if we can fix that somehow automatically

@Mitch187
Copy link
Author

Nice, thank you!

@mcm1957
Copy link
Collaborator

mcm1957 commented Jan 20, 2024

@Apollon77
I suggest to label as enhancement

@mcm1957
Copy link
Collaborator

mcm1957 commented May 5, 2024

4755 sets the SUID bit.
ping requires root rights, either by SUID bit or by setting cap_net_raw

@mcm1957
Copy link
Collaborator

mcm1957 commented Aug 17, 2024

eventually fixed with 1.6.4
https://github.com/ioBroker/ioBroker.ping#164-2024-07-17

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

No branches or pull requests

3 participants