Maintainance Cron Not running

Topics brought up by the TimeTrex open source community.
Locked
ttiger211996
Posts: 10
Joined: Tue Jan 01, 2013 5:31 pm

Maintainance Cron Not running

Post by ttiger211996 »

I upgraded our Timetrex installation, and I've got a warning that the Maintainance hasn't been run for over 48 hours. I upgraded our installation 2 days ago from the installer from sourceforge link to from the Timetrex site.

In scheduler I see it's set to run every 1 minute.
"C:\Program Files\TimeTrex\php\php-win.exe" "C:\Program Files\TimeTrex\timetrex\maint\cron.php"

I manually selected run for the task from scheduler, and it didn't seem to do anything.

I opened the log
timetrex_cron_last_executed.log

and this is all that's contained in it.
01-Jan-13 12:26 PM EST

I'm not sure why it's not running.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Maintainance Cron Not running

Post by shaunw »

In your Task Scheduler, there should be a status code column, what does it say?
ttiger211996
Posts: 10
Joined: Tue Jan 01, 2013 5:31 pm

Re: Maintainance Cron Not running

Post by ttiger211996 »

Didn't see a status code column. I'm attaching some screen shots.
Attachments
security.png
settings.png
Task.png
advanced schedule.png
schedule.png
Scheduled tasks.png
ttiger211996
Posts: 10
Joined: Tue Jan 01, 2013 5:31 pm

Re: Maintainance Cron Not running

Post by ttiger211996 »

Just checked the times on it. It seems that the task is running, but i'm logged into trimetrex, and it's saying it hasn't run for over 48 hours.
Attachments
last run date in timetrex.png
error screen.png
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Maintainance Cron Not running

Post by shaunw »

It appears that the user you have set to run the task isn't the "SYSTEM" user which it is normally setup as. You should try changing the user to "SYSTEM" or "ADMINISTRATOR" and make sure you set the proper password for that account.
ttiger211996
Posts: 10
Joined: Tue Jan 01, 2013 5:31 pm

Re: Maintainance Cron Not running

Post by ttiger211996 »

Thank you very much worked great. I had upgraded TimeTrex from version 2.4 just recently. I hadn't done anything afterwards to change anything. Either way everything works great now. Just starting to learn the intricacies of the application, and getting it setup to do more than just punches and schedules. Great application, great participation and help in this forum.
Locked