CRON WOL



  • 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



  • 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


  • Senior Developer

    Any Info?


  • Senior Developer

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


 

341
Online

41.4k
Users

11.8k
Topics

112.2k
Posts