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

    Scheduled Tasks not Working

    Scheduled Pinned Locked Moved
    FOG Problems
    6
    10
    6.5k
    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.
    • L
      Lindsay S
      last edited by

      Hi everyone,
      I’ve got FOG running on Ubuntu 11.10. I am attempting to use Scheduled Tasks to wake a group of lab computers up. I started out by attempting to schedule a Cron style task for the group. That didn’t work. The computers just didn’t turn on. I then went in and manually deleted (by truncating scheduled tasks in the database (instructions found on here)) the task.
      After the cron style task didn’t work, I just assumed I messed up, so I tried scheduling single task for a single computer. That also didn’t work. I was able to view it in the Schedule Tasks page on the web interface. Once the time for the task to execute comes, the scheduled task vanishes and nothing happens.
      So, I then thought the WOL just wasn’t working, so I tried to manually wake the computer up through fog. That worked fine.
      Then I tried to schedule a single execution imaging task to the same computer. That doesn’t work.
      If, however, I wanted to image that computer without scheduling it, I would be able to start the task and FOG would successfully wake the computer and start the imaging task.
      Anyone have any ideas?

      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        Check the date/time of your FOG server in BIOS and in Ubuntu. Since cron is time sensitive, make sure that is correct first.

        Schedule a cron style task, then check the crontab for the fog user and see what you have. Also, have you tried scheduling a non-FOG task/script to run as fog user and see if that works? Make sure the cron jobs are getting created, and make sure your cron deamon is actually executing tasks.


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

        1 Reply Last reply Reply Quote 0
        • L
          Lindsay S
          last edited by

          I have done the following:
          Checked bios time & system time. Both are the same (and correct)
          I have scheduled a cron style task in FOG and am unable to find it in crontab. Have looked using the following commands (This is my very first attempt at anything cron, so if I am incorrect, please point me in the right direction)
          ls /var/spool/cron
          crontab -l -u fog
          No jobs appear to be scheduled.
          Manually scheduled a cron job with the following commands
          crontab -e -u fog
          created a job to rename a text file on my desktop. This executed successfully on time and the text file was renamed.

          In the fog database I can look at the scheduledTasks table and see my scheduled tasks there.

          Unfortunately, I don’t know enough about how FOG works with Ubuntu to create these tasks to understand WHY FOG is unable to successfully create the Cron job.

          1 Reply Last reply Reply Quote 0
          • S
            s-man
            last edited by

            Hello,
            I have the same issue and I recognized that in the /tftpboot/pxelinux.cfg no special file for the host is created.
            If I set a normal deploy, this fIle is created. So the issue is in the step which creates this files, but I have no idea which scripts are invoved there

            1 Reply Last reply Reply Quote 0
            • S
              s-man
              last edited by

              Another effect: I dont see anything under sheduled tasks (even the menu disappears)

              1 Reply Last reply Reply Quote 0
              • N
                Norman Pollard
                last edited by

                Did Chad-bisd die or what? Is there an answer to this problem? I have tried Ubuntu 12.04, 11.04, 10.04 and all have the same failure as described above. Come on, all you people that claim your using fog, give us the info if it really works!

                1 Reply Last reply Reply Quote 0
                • B
                  boblablah
                  last edited by

                  I use fog on both 11.10 and 12.04 without issue, but it’s essentially a vanilla install in both of those cases… I just tried adding fog to a 12.10 box I had already built and made a series of modifications on, and I too am now not able to perform any operations as nothing shows in the tasks. I have also seen nothing in crontab for the fog user and I have also noticed that a quick registration or a full registration never complete either: like there is some sort of weird permissions issue specifically with this version of ubuntu…

                  any ideas?

                  1 Reply Last reply Reply Quote 0
                  • B
                    boblablah
                    last edited by

                    [url]http://fogproject.org/forum/threads/cannot-create-tasks-task-manager-blank.3823/#post-9458[/url]

                    works fine now on 12.10 - expecting it’s the result of a new php base in the repos…

                    1 Reply Last reply Reply Quote 0
                    • C
                      chad-bisd Moderator
                      last edited by

                      I didn’t die. After making the changes to the php function calls, did this solve your problems with task creation through the webUI?


                      If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

                      1 Reply Last reply Reply Quote 0
                      • x23piracyX
                        x23piracy
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        154

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project