kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
304 stars 96 forks source link

Weird ping.probe error #557

Closed dyanakiev closed 1 year ago

dyanakiev commented 1 year ago

Im using child bridge latest versions for everything

[1/17/2023, 5:46:55 PM] [BroadlinkRM] Error pinging Broadlink RM device at 192.168.1.15 (a0:43:b0:31:a1:cc): Error: ping.probe: there was an error while executing the ping program. . Check the path or permissions...

/var/lib/homebridge/node_modules/homebridge-broadlink-rm-pro/node_modules/ping/lib/ping-promise.js:61
        var err = new Error(
                  ^
Error: ping.probe: there was an error while executing the ping program. . Check the path or permissions...
    at ChildProcess.<anonymous> (/var/lib/homebridge/node_modules/homebridge-broadlink-rm-pro/node_modules/ping/lib/ping-promise.js:61:19)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:513:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[1/17/2023, 5:46:56 PM] [BroadlinkRM] Child bridge process ended
[1/17/2023, 5:46:56 PM] [BroadlinkRM] Process Ended. Code: 1, Signal: null
dyanakiev commented 1 year ago

I already tried

sudo setcap cap_net_raw+ep /opt/homebridge/bin/node
dyanakiev commented 1 year ago

Oh well... i had ubuntu 22.04 minimal install and it didnt have ping installed..

Solution is to run apt install iputils-ping