Page 1 of 1

Maintenance Jobs Not Running

Posted: Sat Feb 26, 2011 1:56 pm
by macbeth
Hi! My maintenance jobs haven't run since Feb 20/11, but normally I would get an error message saying that they hadn't run in the past 48 hrs which I haven't. Where should I start looking? Thank you!

Re: Maintenance Jobs Not Running

Posted: Sun Feb 27, 2011 11:37 am
by macbeth
I can't even run them manually through task manager by clicking run.

Re: Maintenance Jobs Not Running

Posted: Sun Feb 27, 2011 12:44 pm
by shaunw

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 6:04 am
by macbeth
Using version 3.4.0
Windows Vista
Attached log file
Didn't do anything that I know of to cause this, it was working fine so I assumed it was working and was surprised to see they hadn't run since Feb 20.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 8:52 am
by shaunw
Check your Windows Scheduled Tasks and make sure the TimeTrex Maintenance entry is still there and running properly.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 10:22 am
by macbeth
It is still there and I can run it when I click "run", but it won't run on the schedule. I changed the trigger to today's date and selected run once at 12:53pm, then every 1 minute thereafter.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 10:32 am
by shaunw
Sounds like its been modified, or there is a problem with your Windows installation. If you upgrade to the latest version of TimeTrex the automated installer will automatically re-create the maintenance job for you with the proper settings.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:24 am
by macbeth
Ran the new update but still have the same problem. Everything looks right in the task scheduler. Should I just create a new scheduled job?

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:26 am
by shaunw
Please post screenshots of your scheduled task properties, and the last status code.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:29 am
by macbeth
This is what displays in the task scheduler history since I changed the trigger to today's dat.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:30 am
by macbeth
oooops....before I changed the trigger date

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:32 am
by shaunw
So it says the task failed to start, please post a screenshot with the details of the last failed to start history item. Also include a screenshot of each tab.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:10 pm
by macbeth
here goes:

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:11 pm
by macbeth
....

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:12 pm
by macbeth
....

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:12 pm
by macbeth
....

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:13 pm
by macbeth
....

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:13 pm
by macbeth
....

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:15 pm
by macbeth
like I said, though, I changed the trigger time to today's date and now I don't get any error messages in the task scheduler history...it will only run if I click on "run"

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 12:58 pm
by shaunw
You're not getting any error messages, but is that because you've modified the settings and caused the task to not run anymore?

If thats the case then you will need to change your settings back, or upgrade TimeTrex again so the installer re-creates the task for you.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 1:29 pm
by macbeth
I ran the upgrade again and it didn't change anything

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 4:48 pm
by shaunw
Its possible that since you modified the scheduled task that the installer no longer has permissions to re-create it. Try deleting the scheduled task and installing again.

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 6:23 pm
by macbeth
Let me start by saying anytime I have a problem the first thing I do is restart my pc. With that being said, the power went out for a couple of hours and when it came back on the maintenance jobs started running again :mrgreen: ! I do have a concern, though, why didn't I originally get a message saying that they hadn't run for the past 48 hours?

Re: Maintenance Jobs Not Running

Posted: Mon Feb 28, 2011 11:15 pm
by shaunw
I wish I could tell you, if the power went out there could be all sorts of different reasons.

Re: Maintenance Jobs Not Running

Posted: Sun Mar 06, 2011 1:06 pm
by retched
I have a suggestion, try the following:

Under Triggers, make sure that it is scheduled to run every 1 minute at a certain time in the past.

Under Actions, write out the full path to the executable php-win.exe (also make sure that this path is also listed in your System Variables. You can check this by running a command prompt window and type PATH and then enter. If you see a directory to PHP (either from the installer or your own installation of the webserver, you're fine.)

Under Conditions, make sure nothing is enabled under Idle, Power, or Network. (It's ok if there is a greyed out check box that you can't select.)

Under Settings, this is important, make sure the option "Run task as soon as possible after a scheduled start is missed" is selected. Also make sure the option "If the task is already running, ..." reads "Stop the existing instance."

Under General, Make sure the options : Run whether the user is logged in or not is selected, should also choose not to save the password, and the check box "Run with the highest privileges" is selected.


Then after checking all of the above, save it. Then make sure it can run, right click on it and choose "Run". Wait about a minute or two. If you go back and you notice that the program isn't updating the run time. Go back and change the trigger from 1 minute to 5 minutes. Making sure that all of the above are enabled.

This worked for me after trying to figure out why the scheduled tasks wouldn't run but the command prompt could.