• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    WOL RC7 Not working

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    16
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alexandh
      last edited by

      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…

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @alexandh
        last edited by

        @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?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        A 1 Reply Last reply Reply Quote 0
        • A
          alexandh @Tom Elliott
          last edited by Joe Schmitt

          @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

          A 1 Reply Last reply Reply Quote 0
          • A
            alexandh @alexandh
            last edited by

            @alexandh
            This means the problem should be in the _msg code or at creating $ip…

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              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
              

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                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.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by Tom Elliott

                  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.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • A
                    alexandh
                    last edited by

                    @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.

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @alexandh
                      last edited by

                      @alexandh If I had to guess as to the problem of some clients working vs some clients not working, it’s related to VLAN?

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      UWPVIOLATORU 1 Reply Last reply Reply Quote 0
                      • UWPVIOLATORU
                        UWPVIOLATOR @Tom Elliott
                        last edited by

                        @Tom-Elliott @alexandh

                        I am lost. What needed to be fixed or what should I do to see what’s going on our end?

                        1 Reply Last reply Reply Quote 0
                        • UWPVIOLATORU
                          UWPVIOLATOR
                          last edited by

                          Issue is resolved or us

                          Looks like our WOL Broadcast Management settings were all wiped. Adding our Broadcast IP back and it worked.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post

                          147

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project