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

    "Scheduled Date is in the Past" When Scheduling Jobs

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    1.9k
    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.
    • J
      Jamie Rozek
      last edited by

      Okay, maybe this is just me being stupid, but it seems to keep happening with different machines, so here we go:

      I’ve been testing the functionality of the scheduled jobs with Fog. (Using build 2031 on Ubuntu 13.10)

      They aren’t working.

      Yesterday, I scheduled a job to run after hours. Just scheduling it was a pain. I set it to go at 18:00 hours. I received a “Upload task failed to create for <machine name> with image <image name>. Scheduled date is in the past. Date: 2014/23/09 18:00”

      So I scheduled it for 19:00 hours, and this time it worked. I noticed that there was an 18:00 hour one scheduled on “Not active, delayed”. I deleted that.
      Came in this morning, the job never ran. Now that one was set to “Not active, delayed.”

      Deleted that.

      Now I decide this morning I need to test this feature to see if it will work.

      So, I prepare to upload an image. The machine is all prepped.

      I go to schedule the job for 5 minutes from now.

      I get the message again:

      “Upload task failed to create for <machine name> with image <image name>.
      Scheduled date is in the past. Date: 2014/24/09 09:50”

      I scheduled the job at 09:45.

      I checked the linux box system time. It’s correct.
      The date is correct.
      It’s the correct time zone.

      If I look at the Fog homepage, the “bandwidth-Transmit” graph appears to be showing the correct time.

      Now, I tried to schedule this for different times.

      It’s currently 9:58 AM.

      I tried scheduling for 10:05 - I get the same error.
      10:10 – same error.
      10:30 – same error.
      11:01 – same error.

      Tomorrow: It works.
      Today at 18:01 – It works.
      Today at 13:02 – error
      Today at 14:03 – It works.

      I’m confused.

      1 Reply Last reply Reply Quote 0
      • J
        Jamie Rozek
        last edited by

        Okay. Here’s some more information.

        I just uploaded the image in real time. The upload completed less than 5 minutes ago. It’s currently 11:06 AM.

        When I check the Image Management page, it states that the images was uploaded today at 3:04 PM.

        Something is screwy with the time somewhere.

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

          It’s likely your /etc/php5/apache2/php.ini AND/OR /etc/php5/cli/php.ini date.timezone settings.

          If they’re not set, it defaults the timezone to GMT/UTC which, sounds like you’re on EDT?

          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
          • J
            Jamie Rozek
            last edited by

            You’ve got to be kidding me.

            Two stupid mistakes.

            I edited the /etc/php5/apache2/php.ini file, never uncommented it.
            Didn’t do the /etc/php5/cli/php.ini file.

            Let’s see how this works…

            [quote=“Tom Elliott, post: 36977, member: 7271”]It’s likely your /etc/php5/apache2/php.ini AND/OR /etc/php5/cli/php.ini date.timezone settings.

            If they’re not set, it defaults the timezone to GMT/UTC which, sounds like you’re on EDT?[/quote]

            1 Reply Last reply Reply Quote 0
            • J
              Jamie Rozek
              last edited by

              Yup. That worked. Thanks, Tom!

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

              250

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project