[SOLVED] WakeOnLan: permission denied

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
corriou
Messages: 26
Registration: May 16, 2019 - 09:59

February 22, 2023 - 5:19 PM

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,
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 24, 2023 - 09:37

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
corriou
Messages: 26
Registration: May 16, 2019 - 09:59

March 3, 2023 - 3:40 PM

Hello,

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

Regards,
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 6, 2023 - 2:59 PM

Okay, thanks for the feedback, :-)
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked