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

    CRON WOL

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    4
    1.2k
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by Wayne Workman

      Running r7180 currently, on Fedora 21 fully updated.

      @Tom-Elliott is already aware of this issue, but I thought it deserved a more formal report.

      When scheduling a CRON WOL event for a group for monday through friday, I used for DOW this: 1,2,3,4,5 which apparently broke the scheduling mechanism. However 1-5 seems to work. Some patches have been made to attempt to support the 1,2,3,4,5 format but the task didn’t execute right this morning.

      I have 4 computer labs all scheduled to wake up Monday through Friday at 7:30 AM.

      Here are this morning’s logs:

      /opt/fog/log/fogscheduler.log

      [04-15-16 7:28:50 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:28:50 am]  * 4 tasks found.
      [04-15-16 7:28:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:28:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:28:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:28:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:29:50 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:29:50 am]  * 4 tasks found.
      [04-15-16 7:29:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:29:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:29:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:29:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:30:50 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:30:50 am]  * 4 tasks found.
      [04-15-16 7:30:50 am]  * Task run time: Fri, 15 Apr 2016 07:30:50 -0500
      [04-15-16 7:30:50 am]  * Found a task that should run...
      [04-15-16 7:30:50 am]            - Is a group based task.
      [04-15-16 7:30:50 am]            - Unicast task found!
      [04-15-16 7:30:50 am]            - Group Lab 1025
      [04-15-16 7:30:55 am]            - Tasks started for group Lab 1025!
      [04-15-16 7:30:55 am]  * Task run time: Fri, 15 Apr 2016 07:30:55 -0500
      [04-15-16 7:30:55 am]  * Found a task that should run...
      [04-15-16 7:30:55 am]            - Is a group based task.
      [04-15-16 7:30:55 am]            - Unicast task found!
      [04-15-16 7:30:55 am]            - Group Lab 2060
      [04-15-16 7:31:00 am]            - Tasks started for group Lab 2060!
      [04-15-16 7:31:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:31:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:32:00 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:32:00 am]  * 4 tasks found.
      [04-15-16 7:32:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:32:00 am]  * Task run time: Mon, 18 Apr 2016 07:30:00 -0500
      [04-15-16 7:32:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:32:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:33:00 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:33:00 am]  * 4 tasks found.
      [04-15-16 7:33:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:33:00 am]  * Task run time: Mon, 18 Apr 2016 07:30:00 -0500
      [04-15-16 7:33:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:33:00 am]  * Task run time: Sat, 16 Apr 2016 07:30:00 -0500
      [04-15-16 7:34:00 am]  * 0 active tasks waiting to wake up.
      [04-15-16 7:34:00 am]  * 4 tasks found.
      

      Here are the DB entries for those tasks:

      select * from scheduledTasks\G;

      *************************** 1. row ***************************
               stID: 18
             stName: Wake-Up Task
             stDesc:
             stType: C
       stTaskTypeID: 14
           stMinute: 30
             stHour: 7
              stDOM: *
            stMonth: *
              stDOW: 1-5
          stIsGroup: 1
      stGroupHostID: 4
          stImageID: 0
         stShutDown:
           stOther1:
           stOther2: -1
           stOther3: tech
           stOther4: 1
           stOther5:
         stDateTime: 0
           stActive: 1
      *************************** 2. row ***************************
               stID: 23
             stName: Wake-Up Task
             stDesc:
             stType: C
       stTaskTypeID: 14
           stMinute: 30
             stHour: 7
              stDOM: *
            stMonth: *
              stDOW: 1,2,3,4,5
          stIsGroup: 1
      stGroupHostID: 3
          stImageID: 0
         stShutDown:
           stOther1:
           stOther2: -1
           stOther3: tech
           stOther4: 1
           stOther5:
         stDateTime: 0
           stActive: 1
      *************************** 3. row ***************************
               stID: 15
             stName: Wake-Up Task
             stDesc:
             stType: C
       stTaskTypeID: 14
           stMinute: 30
             stHour: 7
              stDOM: *
            stMonth: *
              stDOW: 1-5
          stIsGroup: 1
      stGroupHostID: 5
          stImageID: 0
         stShutDown:
           stOther1:
           stOther2: -1
           stOther3: tech
           stOther4: 1
           stOther5:
         stDateTime: 0
           stActive: 1
      *************************** 4. row ***************************
               stID: 16
             stName: Wake-Up Task
             stDesc:
             stType: C
       stTaskTypeID: 14
           stMinute: 30
             stHour: 7
              stDOM: *
            stMonth: *
              stDOW: 1-5
          stIsGroup: 1
      stGroupHostID: 6
          stImageID: 0
         stShutDown:
           stOther1:
           stOther2: -1
           stOther3: tech
           stOther4: 1
           stOther5:
         stDateTime: 0
           stActive: 1
      4 rows in set (0.00 sec)
      
      ERROR: No query specified
      

      Here’s a screenshot of the tasks:

      0_1460726820724_upload-32791fa4-368c-4c36-a791-d6ee203b6109

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

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

        Pretty sure this is working now, but could use confirmation.

        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

          Any Info?

          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
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            It was working for a little while and then recently stopped again. I have been monitoring this thread: https://forums.fogproject.org/topic/7271/scheduled-cron-tasks-don-t-start/17

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

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

            185

            Online

            12.1k

            Users

            17.3k

            Topics

            155.4k

            Posts
            Copyright © 2012-2024 FOG Project