WOL stoped working since last update (

Begonnen von Lectere, 17 Februar 2014, 14:43:00

Vorheriges Thema - Nächstes Thema

Lectere

Since the last update WOL stopped working on my Raspi;

I get this error message;



2014.02.17 14:34:27 1: [destcomp] system command '/usr/bin/ether-wake' not found



So I checked if Etherwake as installed; when I try to reinstall etherwake I get;



root@fhem:~# apt-get install etherwake
Reading package lists... Done
Building dependency tree
Reading state information... Done
etherwake is already the newest version.





This is my version information;



# $Id: fhem.pl 4663 2014-01-16 09:45:15Z rudolfkoenig $
# $Id: 00_CUL.pm 4530 2014-01-02 13:56:09Z rudolfkoenig $
# $Id: 09_CUL_FHTTK.pm 4229 2013-11-15 17:29:55Z rudolfkoenig $
# $Id: 01_FHEMWEB.pm 4648 2014-01-14 19:23:34Z rudolfkoenig $
# $Id: 11_FHT.pm 4538 2014-01-03 08:42:39Z rudolfkoenig $
# $Id: 10_FS20.pm 3764 2013-08-22 07:09:38Z rudolfkoenig $
# $Id: 92_FileLog.pm 4664 2014-01-16 09:45:47Z rudolfkoenig $
# $Id: 75_MSG.pm 2012-06-20 18:29:00 rbente
# $Id: 76_MSGFile.pm 2012-06-20 18:29:00 rbente
# $Id: 99_SUNRISE_EL.pm 4537 2014-01-03 08:28:59Z rudolfkoenig $
# $Id: 98_SVG.pm 4606 2014-01-10 14:59:39Z rudolfkoenig $
# $Id: 59_Twilight.pm 4568 2014-01-05 23:10:13Z dietmar63 $
# $Id: 99_Utils.pm 3595 2013-08-05 05:38:48Z tobiasfaust $
# $Id: 98_WOL.pm 4568 2014-01-05 23:10:13Z dietmar63 $
# $Id: 90_at.pm 4246 2013-11-18 20:35:20Z rudolfkoenig $
# $Id: 98_autocreate.pm 4648 2014-01-14 19:23:34Z rudolfkoenig $
# $Id: 98_dummy.pm 3738 2013-08-18 14:13:59Z rudolfkoenig $
# $Id: 91_notify.pm 4664 2014-01-16 09:45:47Z rudolfkoenig $
# $Id: 98_structure.pm 4557 2014-01-04 11:05:16Z rudolfkoenig $
# $Id: 98_telnet.pm 3738 2013-08-18 14:13:59Z rudolfkoenig $



I can WOL the machine from the command line, but not from FHEM. This file does not exists; /usr/bin/ether-wake. I do have /usr/sbin/etherwake
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

Wernieman

Du you update you FHEM or your RasPi?

And please use
apt-get --reinstall install etherwake
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

siggi85

Hi,

try this

attr WOLDEVICE sysCmd /usr/sbin/etherwake

Lectere

Thanks for your help;

-I've updated FHEM
-Tried to reinstall etherwake ; no luck
-did the atribute to point to the correct cmd ; no luck... :(
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

siggi85

I have some problems with WOL too at the moment. If it is a permission problem you could try
chmod u+s /usr/sbin/etherwake

After that etherwake is always running as root regardless with user start the command etherwake.

Lectere

I've checked the permissions, everyone can at least read and execute...
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

Wernieman

- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Lectere

Zitat von: Wernieman am 18 Februar 2014, 08:37:13
Do you check the "sticky bit"?

Sticky bit?, I've googled it, but what do you mean?
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

Wernieman

chmod u+s /usr/sbin/etherwake
This set the "sticky Bit", it mean, when a User start the programm, the Programm runs under root, with root permissions ....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Lectere

I've set the sticky bit, and tried again; no luck

If I ether-wake from the command line, it works...
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

siggi85

In another thread they figured out that it might be an error in the module. The developer seems to work on it.
Just for information. :)

Lectere

Thanks Siggi, can you please paste the link here?  8)
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

siggi85

When the developer is ready an "update" will be enough. If not i will paste it here. :)

Lectere

SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

siggi85

Isn't it working at the moment? I think the WOL module should work at the moment.
It is some days ago but i think my problem was it to change the STATE variable via "stateFormat". The WOL Device ist just working when the module STATE is "on". It does not describe the state of the hardware device but the state of the defined WOL module.