AlexGustafsson / homebridge-wol

A Wake on Lan plugin for Homebridge
MIT License
296 stars 30 forks source link

Unraid: setcap cap_net_raw=pe /path/to/bin/node #252

Closed shimi269 closed 8 months ago

shimi269 commented 10 months ago

Backstory

No response

Issue

When I try to use the shutdown command, I get the following error:

Error: Command failed: net rpc shutdown --ipaddress 192.168.1.XXX --user username%password /bin/sh: 1: net: not found

I have been able to run the command when using the terminal in Unraid itself, so I know that the command can work, it's just in the docker for Homebridge that I get this error, and not sure how to fix it.

Environment

- os and os version: Unraid
- node version:
- homebridge version: latest
- homebridge-wol version: latest

Configuration

No response

Logs

When I follow these steps:
1. Make sure `logLevel` is set to `Debug` on all `NetworkDevice` accessories
2. Run `homebridge`
3. Let it run for a couple of minutes
4. Try to turn a device on or off using the plugin
5. Wait one minute
6. Repeat step 4

I get the following log:

Please paste your log here


### Notes

_No response_