Exception Emails not being Sent

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
ptoone
Posts: 2
Joined: Thu Nov 05, 2020 7:09 am

Exception Emails not being Sent

Post by ptoone »

I have set up exception policies and ensured that my profile is set up to receive emails for exceptions. I have also tested the forgot password email and I also get an email when I send system wide messages through TimeTrex. However, the exceptions show up in my dashboard

I am using the system mailer without SMTP configuration on Centos 8 with Postgres and PHP 7.3. The debug log shows my crons that run every minutes, here is the log:
```
DEBUG [L0370] [00190ms]: Factory::removeCache(): Removing cache: 1952a568-713f-0a04-24f1-000000000011 Group Id: cron
DEBUG [L2375] [00191ms]: Factory::CommitTransaction(): CommitTransaction(): Final Commit... Transaction: Count: 1 Off: 1 OK: 1
DEBUG [L0304] [00231ms]: CronJobFactory::isScheduledToRun(): Name: MiscDaily Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 1:56 AM -07
DEBUG [L0270] [00232ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Nov-20 1:55 AM -07 Based on Current Epoch: 05-Nov-20 1:56 AM -07
DEBUG [L0311] [00232ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00233ms]: CronJobFactory::isScheduledToRun(): Name: MiscWeekly Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 04-Nov-20 8:59 AM -07
DEBUG [L0270] [00234ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 08-Nov-20 2:30 AM -07 Based on Current Epoch: 04-Nov-20 8:59 AM -07
DEBUG [L0311] [00234ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00234ms]: CronJobFactory::isScheduledToRun(): Name: calcQuickExceptions Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 7:23 AM -07
DEBUG [L0270] [00234ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 05-Nov-20 7:37 AM -07 Based on Current Epoch: 05-Nov-20 7:23 AM -07
DEBUG [L0311] [00234ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00235ms]: CronJobFactory::isScheduledToRun(): Name: GeoCode Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 2:16 AM -07
DEBUG [L0270] [00235ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Nov-20 2:15 AM -07 Based on Current Epoch: 05-Nov-20 2:16 AM -07
DEBUG [L0311] [00235ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00236ms]: CronJobFactory::isScheduledToRun(): Name: AutoUpgrade Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 2:39 AM -07
DEBUG [L0270] [00236ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 06-Nov-20 2:38 AM -07 Based on Current Epoch: 05-Nov-20 2:39 AM -07
DEBUG [L0311] [00236ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00237ms]: CronJobFactory::isScheduledToRun(): Name: AddScheduleShift Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 6:51 AM -07
DEBUG [L0270] [00237ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 05-Nov-20 10:50 AM -07 Based on Current Epoch: 05-Nov-20 6:51 AM -07
DEBUG [L0311] [00237ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00238ms]: CronJobFactory::isScheduledToRun(): Name: AddRecurringScheduleShift Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 04-Nov-20 9:00 AM -07
DEBUG [L0270] [00240ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 08-Nov-20 4:55 AM -07 Based on Current Epoch: 04-Nov-20 9:00 AM -07
DEBUG [L0311] [00240ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0304] [00240ms]: CronJobFactory::isScheduledToRun(): Name: RemittanceAgencyEvent Current Epoch: 05-Nov-20 7:26 AM -07 Last Run Date: 05-Nov-20 7:01 AM -07
DEBUG [L0270] [00240ms]: Cron::getNextScheduleDate(): Next Scheduled Date: 05-Nov-20 8:00 AM -07 Based on Current Epoch: 05-Nov-20 7:01 AM -07
DEBUG [L0311] [00240ms]: Cron::isScheduledToRun(): JOB is NOT scheduled to run right now...
DEBUG [L0081] [00240ms]: GLOBAL: CRON: Jobs Executed: 1 of 17
---------------[ 05-Nov-2020 7:26:02 -0700 [1604586362.1576] (PID: 252578) ]---------------
```
My cron, if that is how these are sent, is this:
```
* * * * * php /var/www/html/timetrex/maint/cron.php
```
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Exception Emails not being Sent

Post by shaunw »

Have you also setup a hierarchy? TimeTrex needs to know who the supervisor is for each employee, as its the direct supervisor that receives the exception alert emails.
ptoone
Posts: 2
Joined: Thu Nov 05, 2020 7:09 am

Re: Exception Emails not being Sent

Post by ptoone »

I just did that yesterday and it seems to be working now. Thank you!
Post Reply