WOL RC7 Not working
-
Server
- FOG Version: 1.4.0-RC-7
- OS: Ubuntu 16.04
Client
- Service Version:
- OS:
Description
Since updating to RC 7 WOL is not working. Tested Group, WOL from Deploy and Wake Up task. Note we did update to RC 7 to enable the Location Plug in.
[Mon Apr 24 08:23:56.341154 2017] [php7:warn] [pid 12615] [client 10.130.66.31:48176] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:00.387579 2017] [php7:warn] [pid 13414] [client 10.130.66.31:48512] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:07.300733 2017] [php7:warn] [pid 13398] [client 10.130.66.31:49016] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:11.243049 2017] [php7:warn] [pid 13590] [client 10.130.66.31:49274] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:18.307111 2017] [php7:warn] [pid 13708] [client 10.130.66.31:49810] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:22.245065 2017] [php7:warn] [pid 13156] [client 10.130.66.31:50158] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:29.250662 2017] [php7:warn] [pid 13875] [client 10.130.66.31:50808] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:33.469299 2017] [php7:warn] [pid 13911] [client 10.130.66.31:51240] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:40.437753 2017] [php7:warn] [pid 13892] [client 10.130.66.31:52052] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:44.286594 2017] [php7:warn] [pid 13891] [client 10.130.66.31:52396] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:51.237667 2017] [php7:warn] [pid 13639] [client 10.130.66.31:52906] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:24:55.283589 2017] [php7:warn] [pid 13112] [client 10.130.66.31:53200] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:02.227283 2017] [php7:warn] [pid 13408] [client 10.130.66.31:53842] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:06.223783 2017] [php7:warn] [pid 13875] [client 10.130.66.31:54148] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:13.247851 2017] [php7:warn] [pid 13868] [client 10.130.66.31:54436] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:17.291834 2017] [php7:warn] [pid 13891] [client 10.130.66.31:54752] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:24.378987 2017] [php7:warn] [pid 13067] [client 10.130.66.31:55350] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:28.227140 2017] [php7:warn] [pid 13401] [client 10.130.66.31:55598] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:35.245304 2017] [php7:warn] [pid 13114] [client 10.130.66.31:56256] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:39.229292 2017] [php7:warn] [pid 13394] [client 10.130.66.31:56618] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:46.273734 2017] [php7:warn] [pid 14151] [client 10.130.66.31:57172] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:52.410456 2017] [php7:warn] [pid 13868] [client 10.130.66.31:57526] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:25:58.274336 2017] [php7:warn] [pid 13709] [client 10.130.66.31:57952] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:03.230790 2017] [php7:warn] [pid 14209] [client 10.130.66.31:58504] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:09.269412 2017] [php7:warn] [pid 14122] [client 10.130.66.31:58930] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:14.249663 2017] [php7:warn] [pid 14215] [client 10.130.66.31:59166] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:20.348085 2017] [php7:warn] [pid 14150] [client 10.130.66.31:59702] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:25.297281 2017] [php7:warn] [pid 13870] [client 10.130.66.31:60144] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:33.657713 2017] [php7:warn] [pid 13877] [client 10.130.66.31:60462] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:36.478934 2017] [php7:warn] [pid 14215] [client 10.130.66.31:60844] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:44.233043 2017] [php7:warn] [pid 13112] [client 10.130.66.31:33304] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:47.310223 2017] [php7:warn] [pid 14205] [client 10.130.66.31:33604] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:55.292194 2017] [php7:warn] [pid 13877] [client 10.130.66.31:34210] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:26:58.269239 2017] [php7:warn] [pid 14376] [client 10.130.66.31:34454] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:06.425705 2017] [php7:warn] [pid 13900] [client 10.130.66.31:35126] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:09.230026 2017] [php7:warn] [pid 14148] [client 10.130.66.31:35438] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:17.235842 2017] [php7:warn] [pid 13112] [client 10.130.66.31:36048] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:20.452893 2017] [php7:warn] [pid 14208] [client 10.130.66.31:36286] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:28.226517 2017] [php7:warn] [pid 13600] [client 10.130.66.31:37016] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:31.244466 2017] [php7:warn] [pid 14376] [client 10.130.66.31:37240] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:39.289686 2017] [php7:warn] [pid 13870] [client 10.130.66.31:37920] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:42.267704 2017] [php7:warn] [pid 14384] [client 10.130.66.31:38134] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:50.237509 2017] [php7:warn] [pid 13709] [client 10.130.66.31:38766] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:27:53.236959 2017] [php7:warn] [pid 14536] [client 10.130.66.31:38968] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:01.240553 2017] [php7:warn] [pid 14073] [client 10.130.66.31:39684] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:04.233821 2017] [php7:warn] [pid 14206] [client 10.130.66.31:39960] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:12.273827 2017] [php7:warn] [pid 14634] [client 10.130.66.31:40670] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:15.231618 2017] [php7:warn] [pid 14647] [client 10.130.66.31:40862] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:23.231175 2017] [php7:warn] [pid 14075] [client 10.130.66.31:41540] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:26.251828 2017] [php7:warn] [pid 14536] [client 10.130.66.31:41770] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:34.228405 2017] [php7:warn] [pid 14632] [client 10.130.66.31:42402] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:37.292837 2017] [php7:warn] [pid 13394] [client 10.130.66.31:42722] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:45.366523 2017] [php7:warn] [pid 13890] [client 10.130.66.31:43254] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:48.545932 2017] [php7:warn] [pid 14994] [client 10.130.66.31:43568] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:56.305770 2017] [php7:warn] [pid 14148] [client 10.130.66.31:44286] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:28:59.354617 2017] [php7:warn] [pid 15080] [client 10.130.66.31:44650] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:29:07.293014 2017] [php7:warn] [pid 14815] [client 10.130.66.31:45402] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86 [Mon Apr 24 08:29:10.313048 2017] [php7:warn] [pid 15084] [client 10.130.66.31:45564] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86```
-
These messages have no bearing in regards to WOL. Nothing has changed for WOL since March 8, which 1.4.0-RC-1 was released and proven to have been working (was released 24-MAR-2017).
-
To fix the streaming issue,
run
chown -R fog:www-data /var/log/apache2; chmod -R 755 /var/log/apache2
and you should have your logs available until the next time logrotate runs. -
sudo chown -R fog:www-root /var/log/apache2; chmod -R 755 /var/log/apache2
chown: invalid group: ‘fog:www-root’Also where can I look to see why WOL stopped working?
-
Typo’d sorry. Updated the command to use the proper thing. I don’t know. No changes. Maybe you might be able to install RC-6 see if it worked, if so i can mroe direclty figure out where a problem was introduced.
-
We have the same problem, that WOL is not working
Indeed the problems do not reflect a WOL problem.
We updated from fog 0.32 to 1.3.5 . After that WOL is not working. Same with 1.4.0-RC-8.
I monitored the output on the network card with tcpdump with the result that no packets are generated. With the wakeonlan command, the packet is generated and the client wakes up… -
@alexandh As I asked, can you install RC-6 and see if all works?
Mind trying:
http://fogserver/fog/index.php?sub=wakeEmUp&mac=<macofhost>
I don’t think it’s the code sending the wake on lan, rather it is missing when to send it.
Is this ALL tasks or once again ONLY the wake task?
-
@Tom-Elliott
This does not work neither does any wake task or wake tasks with deploy or upload…I tested a script imitating the code with creating the socket and that works:
<?php $msg=sprintf( '%s%s', str_repeat(chr(255), 6), str_repeat("901B0ECA8977", 16) ); /** * Assume return will be true for now. */ /** * Create our socket resource */ $sock = @socket_create( AF_INET, SOCK_DGRAM, SOL_UDP ); /** * If failed, immediately return. */ if ($sock == false) { return false; } /** * Set our coket options */ $set_opt = @socket_set_option( $sock, SOL_SOCKET, SO_BROADCAST, true ); /** * If invalid close socket and return immediately. */ if ($set_opt < 0) { @socket_close($sock); return false; } /** * Send our wake up packet. */ $sendto = @socket_sendto( $sock, $msg, strlen($msg), 0, "255.255.255.255", 9 ); /** * If failed set return to false; */ if (!$sendto) { $ret = false; } /** * Close the socket. */ @socket_close($sock); /** * Return value */ ?>
tcpdump says then:
IP xxx.xxx.xxx.xxx.45962 > 255.255.255.255.9: UDP, length 198
-
@alexandh
This means the problem should be in the _msg code or at creating $ip… -
Just tested:
These are the “dumps” I’m seeing:
tcpdump: listening on ens32, link-type EN10MB (Ethernet), capture size 262144 bytes 2017-04-24 12:15:28.199847 IP (tos 0x0, ttl 64, id 39138, offset 0, flags [DF], proto UDP (17), length 130) 10.2.1.5.59289 > 255.255.255.255.discard: [udp sum ok] UDP, length 102 2017-04-24 12:15:28.200018 IP (tos 0x0, ttl 64, id 56882, offset 0, flags [DF], proto UDP (17), length 130) 10.2.1.5.38950 > 10.255.255.255.discard: [udp sum ok] UDP, length 102 2017-04-24 12:15:28.200304 IP (tos 0x0, ttl 64, id 39139, offset 0, flags [DF], proto UDP (17), length 130) 10.2.1.5.55483 > 255.255.255.255.discard: [udp sum ok] UDP, length 102 2017-04-24 12:15:28.200370 IP (tos 0x0, ttl 64, id 56883, offset 0, flags [DF], proto UDP (17), length 130) 10.2.1.5.53237 > 10.255.255.255.discard: [udp sum ok] UDP, length 102 2017-04-24 12:15:28.379735 IP (tos 0x0, ttl 64, id 20606, offset 0, flags [DF], proto UDP (17), length 130) 10.0.7.1.37662 > 255.255.255.255.discard: [bad udp cksum 0x1180 -> 0x92a8!] UDP, length 102 2017-04-24 12:15:28.379785 IP (tos 0x0, ttl 64, id 56505, offset 0, flags [DF], proto UDP (17), length 130) 10.0.7.1.46809 > 10.255.255.255.discard: [bad udp cksum 0x1c7f -> 0x63ee!] UDP, length 102 2017-04-24 12:15:28.379820 IP (tos 0x0, ttl 64, id 20607, offset 0, flags [DF], proto UDP (17), length 130) 10.0.7.1.53579 > 255.255.255.255.discard: [bad udp cksum 0x1180 -> 0x53db!] UDP, length 102 2017-04-24 12:15:28.379848 IP (tos 0x0, ttl 64, id 56506, offset 0, flags [DF], proto UDP (17), length 130) 10.0.7.1.44467 > 10.255.255.255.discard: [bad udp cksum 0x1c7f -> 0x6c74!] UDP, length 102
-
So based on the information I’m seeing, there is indeed no changes to code. As to why your’s isn’t working I don’t know.
My comand for
tcpdump
is:tcpdump -i ens32 -ttttvvvvnS port 9
All I’m doing is a Wake Up Task.
For what it’s worth Testing with capture and deploy to the same host (for testing purposes) appears to be working as expected as well. I’ve tested with multiple nics on one host and single nic on another host and all packets required to be sent appear to be sending.
-
So to further drive home all of this. I ran through RC’s 1 through 8 and tested. I have one laptop that i had not had connected to FOG at all, so I decided to make a host entry.
I also tested working branch just to ensure things were still operational in current code base.
I tested Deploy WOL, Capture WOL, and plain-jane WOL Task types. All RC’s worked from this point forward.
Just to ensure things in the automated realm were still operational I also tested Deploy/capture using FOG Scheduler to start the host as needed. Things worked properly using the current code base.
-
@Tom-Elliott said in WOL RC7 Not working:
tcpdump -i ens32 -ttttvvvvnS port 9
Had to fix an issue with RC-2+ because boot.php fatal error and now fully working on 1.4.0-RC-8 : https://forums.fogproject.org/topic/9864/could-not-boot
UDP packets are now emitted! 2017-04-25 09:49:44.255319 IP (tos 0x0, ttl 64, id 49724, offset 0, flags [DF], proto UDP (17), length 130) xxx.xxx.xxx.xxx.49978 > 255.255.255.255.9: [bad udp cksum 0x46e7 -> 0x4499!] UDP, length 102 2017-04-25 09:49:44.255528 IP (tos 0x0, ttl 64, id 2545, offset 0, flags [DF], proto UDP (17), length 130) xxx.xxx.xxx.xxx.39928 > xxx.xxx.xxx.255.9: [bad udp cksum 0x8de9 -> 0x24d9!] UDP, length 102
Some clients work now.
Looks good. -
@alexandh If I had to guess as to the problem of some clients working vs some clients not working, it’s related to VLAN?
-
I am lost. What needed to be fixed or what should I do to see what’s going on our end?
-
Issue is resolved or us
Looks like our WOL Broadcast Management settings were all wiped. Adding our Broadcast IP back and it worked.