Page 1 of 1

[SOLVED] WakeOnLan: permission denied

Published: February 22, 2023 - 5:19 PM
by corriou
Good morning,

When I try to launch WakeOnLan (WOL) from the console, I get the following message:
Error on server:
PermissionError(1, 'Operation not permitted')
and on the server side, in the logs:
[waptserver ] CRITICAL trigger_wakeonlan failed PermissionError(1, 'Operation not permitted')
I am currently using the following versions:
WAPT Server version: 2.2.3
WAPT Agent version: 2.2.3.12485
WAPT Setup version: 2.2.3.12485
WAPT Deploy version: 2.2.3.12485
Database status: OK (2.2.6.2)
The server is running on Debian 11, and the wakeonlan package is installed. The message is brief and doesn't specify which file is inaccessible.
The files that appear to be related to wakeonlan are as follows:
drwxr-xr-x 2 root root 9 Dec 16 16:33 .
drwxr-xr-x 171 root root 202 Feb 22 17:03 ..
-rw-r--r-- 1 root root 44 Dec 16 11:37 entry_points.txt
-rw-r--r-- 1 root root 4 Dec 16 11:37 INSTALL
-rw-r--r-- 1 root root 1095 Dec 16 11:37 LICENSE
-rw-r--r-- 1 root root 3556 Dec 16 11:37 METADATA
-rw-r--r-- 1 root root 773 Dec 16 11:37 RECORD
-rw-r--r-- 1 root root 0 Dec 16 11:37 REQUESTED
-rw-r--r-- 1 root root 83 Dec 16 11:37 WHEEL
-rw-r--r-- 1 root root 4 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/INSTALLER
-rw-r--r-- 1 root root 1095 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/LICENSE
-rw-r--r-- 1 root root 3556 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/METADATA
-rw-r--r-- 1 root root 773 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/RECORD
-rw-r--r-- 1 root root 0 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/REQUESTED
-rw-r--r-- 1 root root 83 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/WHEEL
-rw-r--r-- 1 root root 44 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan-2.0.1.dist-info/entry_points.txt
-rw-r--r-- 1 root root 2554 Dec 16 11:37 /opt/wapt/lib/python3.8/site-packages/wakeonlan.py
Do you have any idea what might be causing the blockage here?

Best regards,

Re: WakeOnLan: permission denied

Published: February 24, 2023 - 09:37
by dcardon
Hello Alain,

are you using the Enterprise version or not? What operating system are you using? Is SELinux enabled or not? Does sending a wakeonlan packet from the command line work from the WAPT server? Are there any firewall rules for outgoing packets?

Regards,

Denis

Re: WakeOnLan: permission denied

Published: March 3, 2023 - 3:40 PM
by corriou
Hello,

Sorry: installing version 2.3.0.13516 fixed the problem. It was version 2.2 in Discovery on a Debian 11 system.

Regards,

Re: [SOLVED] WakeOnLan: permission denied

Published: March 6, 2023 - 2:59 PM
by dcardon
Okay, thanks for the feedback, :-)
Denis