AlexGustafsson / homebridge-wol

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

Turning on the PC works well, but an error occurs when shutting down. #168

Closed yksoon closed 3 years ago

yksoon commented 3 years ago

I don't use raspberry pi, I use synology nas. Turning on the PC works well, but an error occurs when shutting down. I can't use apt-get or yum because I'm using synology. What should I do? I've seen you install sudo apt-get install samba-common-bin before.

[8/20/2021, 12:36:05 AM] [My PC] An error occured while trying to shut down "My PC" (192.168.0.7): Error: Command failed: net rpc shutdown --ipaddress 192.168.0.7 --user username%password
/bin/sh: net: not found

    at ChildProcess.exithandler (child_process.js:390:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1055:16)
    at Socket.<anonymous> (internal/child_process.js:441:11)
    at Socket.emit (events.js:400:28)
    at Pipe.<anonymous> (net.js:675:12) {
  killed: false,
  code: 127,
  signal: null,
  cmd: 'net rpc shutdown --ipaddress 192.168.0.7 --user username%password',
  stdout: '',
  stderr: '/bin/sh: net: not found\n'
}