Page 1 of 1

Critical Maintenance jobs have not ran in the past 24hr's

Posted: Tue Sep 06, 2016 6:28 am
by jarrett125
i'm running ubuntu 16.04
timetrex version v9.1.3 - manual

i was also just having an issue where a log file wasn't readable i have fix that issue.

i'm not sure what i need to start or how to do it to get the service running right to get rid of this message.

Re: Critical Maintenance jobs have not ran in the past 24hr'

Posted: Tue Sep 06, 2016 6:51 am
by jarrett125
jarrett125 wrote:i'm running ubuntu 16.04
timetrex version v9.1.3 - manual
apache2 - 2.4.18

i was also just having an issue where a log file wasn't readable i have fix that issue.

i'm not sure what i need to start or how to do it to get the service running right to get rid of this message.
i also looked at others posts about this issue trying command su cs -c "php /var/www/html/timetrex/maint/cron.php" > /dev/null 2>&1 and did nothing also tried it using www-data but that didnt work. owner of the timetrex files are root apache2 is running under www-data

Re: Critical Maintenance jobs have not ran in the past 24hr'

Posted: Tue Sep 06, 2016 8:19 am
by jarrett125
this was a migration from an older version of timetrex to the the newer version we didn't have this error before but when i view the about when logged into timetrex i see

Maintenance jobs last run: never

Re: Critical Maintenance jobs have not ran in the past 24hr'

Posted: Tue Sep 06, 2016 10:08 am
by jarrett125
i have setup a crontab setting that says

***** su root -c "php /var/www/html/timetrex/maint/cron.php"
if i execute the command by its self i get the x-11 complete. over time will this solve this issue or not exactly.

Re: Critical Maintenance jobs have not ran in the past 24hr'

Posted: Tue Sep 06, 2016 10:27 am
by jarrett125
here is the results from the command below executed.


root@VX-TTRX:/etc/init.d# su root -c "php /var/www/html/timetrex/maint/cron.php"NOTE: Jobs are scheduled to run
at specific times each day, therefore it is normal for only some jobs to be executed each time this file is run.
Jobs Executed: 1 of 16

Debug Buffer
============================================================================
Memory Usage: 4152632 Buffer Size: 57
----------------------------------------------------------------------------
DEBUG [L0440] [00018ms]: [Function](): URI: /var/www/html/timetrex/maint/cron.php IP Address:
DEBUG [L0442] [00018ms]: [Function](): USER-AGENT: N/A
DEBUG [L0445] [00018ms]: [Function](): Version: 9.1.3 (PHP: v7.0.8-0ubuntu0.16.04.2) Edition: 10 Production: 1 Server: N/A Database: Type: postgres8 Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0163] [00064ms]: TTDate::setTimeZone(): Setting TimeZone: America/New_York
DEBUG [L0738] [00072ms]: Install::checkPHPVersion(): Comparing with Version: 7.0.8-0ubuntu0.16.04.2
DEBUG [L0538] [00076ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0344] [00089ms]: CronJobFactory::isScheduledToRun(): Name: AddPayPeriod Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:41 AM EDT
DEBUG [L0232] [00091ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 12:00 AM EDT Based on Current Epoch: 06-Sep-16 8:41 AM EDT
DEBUG [L0263] [00091ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00091ms]: CronJobFactory::isScheduledToRun(): Name: AddUserDate Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:41 AM EDT
DEBUG [L0232] [00092ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 12:15 AM EDT Based on Current Epoch: 06-Sep-16 8:41 AM EDT
DEBUG [L0263] [00092ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00092ms]: CronJobFactory::isScheduledToRun(): Name: calcExceptions Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:41 AM EDT
DEBUG [L0232] [00093ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 12:30 AM EDT Based on Current Epoch: 06-Sep-16 8:41 AM EDT
DEBUG [L0263] [00093ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00093ms]: CronJobFactory::isScheduledToRun(): Name: AddRecurringHoliday Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:41 AM EDT
DEBUG [L0232] [00094ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 12:55 AM EDT Based on Current Epoch: 06-Sep-16 8:41 AM EDT
DEBUG [L0263] [00094ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00094ms]: CronJobFactory::isScheduledToRun(): Name: UserCount Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:41 AM EDT
DEBUG [L0232] [00095ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 1:15 AM EDT Based on Current Epoch: 06-Sep-16 8:41 AM EDT
DEBUG [L0263] [00095ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00095ms]: CronJobFactory::isScheduledToRun(): Name: CheckForUpdate Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00096ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Sep-16 3:20 PM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00096ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00096ms]: CronJobFactory::isScheduledToRun(): Name: AddAccrualPolicyTime Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00097ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 1:30 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00097ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00097ms]: CronJobFactory::isScheduledToRun(): Name: UpdateCurrencyRates Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00097ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 1:45 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00097ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00098ms]: CronJobFactory::isScheduledToRun(): Name: TimeClockSync Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 1:26 PM EDT
DEBUG [L0232] [00098ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Sep-16 1:26 PM EDT Based on Current Epoch: 06-Sep-16 1:26 PM EDT
DEBUG [L0263] [00098ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00098ms]: CronJobFactory::isScheduledToRun(): Name: MiscDaily Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00099ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 1:55 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00099ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00099ms]: CronJobFactory::isScheduledToRun(): Name: MiscWeekly Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00101ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 11-Sep-16 2:30 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00101ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00101ms]: CronJobFactory::isScheduledToRun(): Name: calcQuickExceptions Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 1:23 PM EDT
DEBUG [L0232] [00102ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Sep-16 1:37 PM EDT Based on Current Epoch: 06-Sep-16 1:23 PM EDT
DEBUG [L0263] [00102ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00102ms]: CronJobFactory::isScheduledToRun(): Name: GeoCode Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00103ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 2:15 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00103ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00103ms]: CronJobFactory::isScheduledToRun(): Name: AutoUpgrade Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 8:42 AM EDT
DEBUG [L0232] [00103ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 07-Sep-16 2:46 AM EDT Based on Current Epoch: 06-Sep-16 8:42 AM EDT
DEBUG [L0263] [00103ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00104ms]: CronJobFactory::isScheduledToRun(): Name: AddScheduleShift Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date: 06-Sep-16 12:46 PM EDT
DEBUG [L0232] [00104ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Sep-16 2:50 PM EDT Based on Current Epoch: 06-Sep-16 12:46 PM EDT
DEBUG [L0263] [00104ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0344] [00104ms]: CronJobFactory::isScheduledToRun(): Name: AddRecurringScheduleShift Current Epoch: 06-Sep-16 1:25 PM EDT Last Run Date:
DEBUG [L0232] [00107ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 04-Jan-70 4:55 AM EST Based on Current Epoch:
DEBUG [L0259] [00107ms]: Cron::isScheduledToRun(): JOB is SCHEDULED TO RUN NOW!
DEBUG [L1997] [00107ms]: Misc::isSystemLoadValid(): Load average within valid limits: Current: 0.31 Max: 9999
DEBUG [L0422] [00107ms]: CronJobFactory::Execute(): Job is currently running, skipping...
DEBUG [L0072] [00107ms]: [Function](): CRON: Jobs Executed: 1 of 16
============================================================================

Re: Critical Maintenance jobs have not ran in the past 24hr'

Posted: Tue Sep 06, 2016 12:29 pm
by jarrett125
i appreciate the support i received on this which was nothing i was however able to resolve it on my own.

Re: Critical Maintenance jobs have not ran in the past 24hr's

Posted: Sun Mar 24, 2019 3:08 pm
by fvteamsports
How was this fixed? Thank you.