FHEM Forum

FHEM => English Corner => Thema gestartet von: Lectere am 17 Februar 2014, 14:43:00

Titel: WOL stoped working since last update (
Beitrag von: Lectere am 17 Februar 2014, 14:43:00
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
Titel: Antw:WOL stoped working since last update (
Beitrag von: Wernieman am 17 Februar 2014, 14:49:31
Du you update you FHEM or your RasPi?

And please use
apt-get --reinstall install etherwake
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 17 Februar 2014, 16:23:50
Hi,

try this

attr WOLDEVICE sysCmd /usr/sbin/etherwake
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 17 Februar 2014, 20:06:26
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... :(
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 18 Februar 2014, 08:11:18
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.
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 18 Februar 2014, 08:31:23
I've checked the permissions, everyone can at least read and execute...
Titel: Antw:WOL stoped working since last update (
Beitrag von: Wernieman am 18 Februar 2014, 08:37:13
Do you check the "sticky bit"?
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 18 Februar 2014, 13:24:10
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?
Titel: Antw:WOL stoped working since last update (
Beitrag von: Wernieman am 18 Februar 2014, 13:55:35
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 ....
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 19 Februar 2014, 08:20:33
I've set the sticky bit, and tried again; no luck

If I ether-wake from the command line, it works...
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 19 Februar 2014, 09:26:38
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. :)
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 19 Februar 2014, 10:02:53
Thanks Siggi, can you please paste the link here?  8)
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 19 Februar 2014, 10:57:13
When the developer is ready an "update" will be enough. If not i will paste it here. :)
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 07 April 2014, 10:44:02
Any news jet?
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 07 April 2014, 11:31:50
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.
Titel: Antw:WOL stoped working since last update (
Beitrag von: Lectere am 09 April 2014, 13:39:42
Still don't work. In the log it says that i need to run etherwake as root.

I've tried this
http://forum.fhem.de/index.php?topic=17112.0

Copy to /usr/local/bin, set rights. Change the WOL command to /usr/local/bin/etherwake, rereadcfg.

Still the same; etherwake: this program must be run as root
Titel: Antw:WOL stoped working since last update (
Beitrag von: siggi85 am 10 April 2014, 08:39:45
Zitat von: Lectere am 09 April 2014, 13:39:42
etherwake: this program must be run as root

I think this does not mean, that you need the root permission to excute the command. The command need the root permission to work properly. Do you tried this?

Zitat von: siggi85 am 18 Februar 2014, 08:11:18
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.