• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. hj104
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    hj104

    @hj104

    0
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    hj104 Unfollow Follow

    Latest posts made by hj104

    • RE: Scheduled Tasks (Delayed / Cron-style) not working, but instant tasks are.

      @Sebastian-Roth @Tom-Elliott

      Hi,

      Both delayed and cron-style scheduled tasks are now working for me.

      After reading Sebastian’s reply, I ran the provided PHP code on the web server and the time was correct.

      I then double checked TZ INFO in FOG Configuration -> FOG Settings -> General Settings and it was indeed set to the correct time zone, but I pressed update anyway and then I ran systemctl restart FOGScheduler.

      As soon as I ran that command, my test computer turned on. Here is the log output from that time:

      [01-20-20 11:31:06 am] Interface Ready with IP Address: 127.0.0.1
      [01-20-20 11:31:06 am] Interface Ready with IP Address: 127.0.1.1
      [01-20-20 11:31:06 am] Interface Ready with IP Address: 192.168.20.17
      [01-20-20 11:31:06 am] Interface Ready with IP Address: localhost.localdomain
      [01-20-20 11:31:06 am]  * Starting TaskScheduler Service
      [01-20-20 11:31:06 am]  * Checking for new items every 60 seconds
      [01-20-20 11:31:06 am]  * Starting service loop
      [01-20-20 11:31:06 am]  * 3 tasks found.
      [01-20-20 11:31:06 am]  * Task run time: Fri, 17 Jan 2020 12:38:00 +1100
      [01-20-20 11:31:06 am]  * Found a task that should run.
      [01-20-20 11:31:06 am]           - Is a host based task.
      [01-20-20 11:31:06 am]           - Unicast task found!
      [01-20-20 11:31:06 am]           - Host cg1new
      [01-20-20 11:31:06 am]           - Tasks started for host cg1new!
      [01-20-20 11:31:06 am]  * Task run time: Thu, 16 Jan 2020 11:11:00 +1100
      

      The time in the log is also correct now. I’ve never ran systemctl restart FOGScheduler before but I have restarted my FOG server multiple times since setting TZ INFO.

      My only question now is whether restarting the server has the same effect on the FOGScheduler service as running systemctl restart FOGScheduler?

      Thanks for the assistance.

      posted in FOG Problems
      H
      hj104
    • RE: Scheduled Tasks (Delayed / Cron-style) not working, but instant tasks are.

      @Tom-Elliott

      I’m running 1.5.7.

      Here is the output of /opt/fog/log/fogscheduler.log

      [root@localhost log]# tail -n 10 fogscheduler.log
      [01-15-20 12:46:50 am]  * No tasks found!
      [01-15-20 12:47:50 am]  * No tasks found!
      [01-15-20 12:48:50 am]  * No tasks found!
      [01-15-20 12:49:50 am]  * No tasks found!
      [01-15-20 12:50:50 am]  * No tasks found!
      [01-15-20 12:51:50 am]  * No tasks found!
      [01-15-20 12:52:50 am]  * No tasks found!
      [01-15-20 12:53:50 am]  * No tasks found!
      [01-15-20 12:54:50 am]  * No tasks found!
      [01-15-20 12:55:50 am]  * No tasks found!
      

      At 12:36pm, prior to taking that output, I scheduled a delayed task for 12:38pm. As you can see, nothing appeared in the log.

      Note that those times around midnight are definitely incorrect, I was not working on it at that time and the server was off at that time as I shutdown my computer over night. Despite that, I would still expect that scheduling a cron-style task at * * * * * would work regardless of any time discrepancies right?

      Thanks

      posted in FOG Problems
      H
      hj104
    • RE: Scheduled Tasks (Delayed / Cron-style) not working, but instant tasks are.

      @Sebastian-Roth Hi, I sent an instant task.

      posted in FOG Problems
      H
      hj104
    • RE: Scheduled Tasks (Delayed / Cron-style) not working, but instant tasks are.

      Thanks for the suggestion but that didn’t work.

      I unplugged the device for 10 seconds, then sent an instant WOL, which booted, so I unplugged it again for 10 seconds, then scheduled one for 2 minutes later, and it didn’t boot, so it appears to be the same behaviour.

      posted in FOG Problems
      H
      hj104
    • Scheduled Tasks (Delayed / Cron-style) not working, but instant tasks are.

      Hi,

      I am unable to get a host to turn on using a wake-on lan scheduled task. It does not work with cron-style tasks, or with the single scheduled task option. Instant tasks work fine.

      Important Information:

      Edit: Scheduled deploys also do not work.

      The host does have an image associated with it.

      I have tried to schedule the task at the host level and at the group level to no avail.

      This host was originally being managed with another FOG server. It’s now being managed by a new FOG server. To achieve that, I created a new VM (the FOG server is a VM, the host isn’t), and installed CentOS and FOG from scratch, then captured the image from the host on the new server.

      I’ve set the correct timezone in the FOG GUI and in php.ini.

      I’ve tried a cron style task at * * * * * (doesn’t work either).

      I’ve run the database maintenance commands.

      The output of the bash date command is correct.

      The PHP time is correct I think, I tested it by creating a .php file that does “echo date(‘Format String’, time());”

      The database time is correct when I enter the query SELECT CURRENT_TIME();

      Thanks in advance for any help.

      posted in FOG Problems
      H
      hj104