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

    Schedule Multicast Tasks Issues

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    6 Posts 2 Posters 106 Views
    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.
    • D
      devle
      last edited by

      Hello,

      I am currently using the FOG REST API to develop a multicast solution for end users. Immediate multicast tasks are working as expected.

      However, I’m encountering an issue with scheduled tasks. When I create a scheduled multicast task, the task object is successfully registered. But once the scheduled time passes, the task does not execute and remains listed under Tasks → Scheduled Tasks.

      To rule out API-related issues, I also attempted to schedule a multicast task directly through the FOG Web UI, but experienced the same behavior.

      Additional details:

      Version: v1.6.0-beta.2277
      SCHEDULERGLOBALENABLED is enabled
      FogScheduler service is active

      Could you please advise what might be causing scheduled tasks not to execute, or suggest any additional checks or logs I should review?

      Thank you in advance for your help.

      D 1 Reply Last reply Reply Quote 1
      • D
        devle @devle
        last edited by

        Added some logs

        Fog Database:
        name@fog:/opt/fog/log$ sudo mariadb -e "
        USE fog;
        SELECT *
        FROM scheduledTasks\G
        "

        *************************** 1. row ***************************
        stID: 27
        stName: Multi-Cast Task
        stDesc:
        stType: S
        stTaskTypeID: 8
        stMinute:
        stHour:
        stDOM:
        stMonth:
        stDOW:
        stIsGroup: 1
        stGroupHostID: 41
        stImageID: 0
        stShutDown:
        stOther1:
        stOther2: -1
        stOther3: xy.xy
        stOther4: 1
        stOther5:
        stDateTime: 1773389439
        stActive: 1

        Crontask:

        *************************** 2. row ***************************
        stID: 28
        stName: Multi-Cast Task
        stDesc:
        stType: C
        stTaskTypeID: 8
        stMinute: 0
        stHour: *
        stDOM: *
        stMonth: *
        stDOW: *
        stIsGroup: 1
        stGroupHostID: 41
        stImageID: 0
        stShutDown:
        stOther1:
        stOther2: -1
        stOther3: xy.xy
        stOther4: 1
        stOther5:
        stDateTime: 0
        stActive: 1

        Fog Settings
        ±-----------------------±-----------------+
        | settingKey | settingValue |
        ±-----------------------±-----------------+
        | SCHEDULERDEVICEOUTPUT | /dev/tty4 |
        | SCHEDULERGLOBALENABLED | 1 |
        | SCHEDULERLOGFILENAME | fogscheduler.log |
        | SCHEDULERSLEEPTIME | 60 |
        ±-----------------------±-----------------+

        [03-06-26 12:26:18 pm] Interface Ready with IP Address: 127.0.0.1
        [03-06-26 12:26:18 pm] Interface Ready with IP Address: 127.0.1.1
        [03-06-26 12:26:18 pm] Interface Ready with IP Address: 172.28.1.80
        [03-06-26 12:26:18 pm] Interface Ready with IP Address: domain.name.xxx
        [03-06-26 12:26:18 pm] * Starting TaskScheduler Service
        [03-06-26 12:26:18 pm] * Checking for new items every 60 seconds
        [03-06-26 12:26:18 pm] * Starting service loop
        [03-06-26 12:26:18 pm] * 3 tasks found.
        [03-06-26 12:26:18 pm] * Checking for expired checked-in tasks…
        [03-06-26 12:26:18 pm] * Scheduled Task run time: Fri, 01 Jan 2027 00:00:00 +0200
        [03-06-26 12:26:18 pm] * This is a cron style task that should not run now.

        The time zone:
        name@fog:/opt/fog/log$ date
        Fri Mar 13 10:38:46 EET 2026
        name@fog:/opt/fog/log$ sudo mariadb -e “SELECT NOW();”
        ±--------------------+
        | NOW() |
        ±--------------------+
        | 2026-03-13 10:39:22 |
        ±--------------------+

        Tom ElliottT 2 Replies Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @devle
          last edited by

          @devle So I’m unable to replicate this:

          [03-26-26 11:46:47 am]  * 1 task found.
          [03-26-26 11:46:47 am]  * Checking for expired checked-in tasks...
          [03-26-26 11:46:47 am]  * Scheduled Task run time: Thu, 26 Mar 2026 12:00:00 +0000
          [03-26-26 11:46:47 am]  * This is a cron style task that should not run now. 
          ^C
          telliott@7550precision:~/fogproject$ date -u
          Thu Mar 26 11:46:57 AM UTC 2026
          telliott@7550precision:~/fogproject$
          

          The item I have:

          MariaDB [fog]> select * from scheduledTasks\G
          *************************** 1. row ***************************
                   stID: 2
                 stName: Multi-Cast Task
                 stDesc: 
                 stType: C
           stTaskTypeID: 8
               stMinute: 0
                 stHour: *
                  stDOM: *
                stMonth: *
                  stDOW: *
              stIsGroup: 1
          stGroupHostID: 1
              stImageID: 0
             stShutDown: 
               stOther1: 
               stOther2: -1
               stOther3: fog
               stOther4: 1
               stOther5: 
             stDateTime: 0
               stActive: 1
          1 row in set (0.000 sec)
          

          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 @devle
            last edited by

            It does seem, maybe, your FOGScheduler service may need a good kick though?

            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

            D 1 Reply Last reply Reply Quote 0
            • D
              devle @Tom Elliott
              last edited by

              @Tom-Elliott Hi Tom, thanks for your reply.

              I restarted the FogScheduler. Half an hour has past since I created 1 tasks via API and 1 through Fog Web. They stayed in the Scheduled Tasks and did not get executed.

              scheduled_multicast.png

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

                @devle The first one appears to be set to run at 15:00

                I don’t know what timezone you’re in, but I suspect your server’s timezone is showing UTC.

                It’s interesting but it shows you should be seeing them trigger at 2026-03-26 15:00 (~ 1.5 hrs from right now, and 1.75 hrs from right now)

                So it does appear scheduled tasks are working appropriately since restarting the service at least?

                Also, i might suggest updating the latest working-1.6 as that will kick the tires around other services as well.

                You are able to set the UI datetime FOG Configuration -> FOG Settings -> look for TZ_INFO and update to your relevant Timezone.

                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
                • 1 / 1
                • First post
                  Last post

                182

                Online

                12.6k

                Users

                17.5k

                Topics

                156.4k

                Posts
                Copyright © 2012-2026 FOG Project