I did a restore of yesterday’s backup, and now the “Scheduler cannot write PID file” error is no longer there. However, the e-mail reminders job and “Run Report Generation Scheduled Tasks” jobs still fail. Having set the logging level to Debug has revealed a bit more information. Here is what I see now for the email reminders (we can ignore the Report Generation issue for now):
Fri Apr 8 05:38:02 2016 [35391][1][INFO] Query:UPDATE job_queue SET status='running', date_modified='2016-04-08 12:38:01', client='CRON05b962ae12ba2dc45cc0a100c22bab99:35391' WHERE id='ae45f783-59dd-c8f5-862a-5707a6286487' AND status='queued'
Fri Apr 8 05:38:02 2016 [35391][1][FATAL] Job ae45f783-59dd-c8f5-862a-5707a6286487 (Run Email Reminder Notifications) failed in CRON run
SET `assigned_user_id`='1',`name`='Run Email Reminder Notifications',`date_modified`='2016-04-08 12:38:01',`scheduler_id`='31bd4130-c996-c891-823d-56c56757a640',`execute_time`='2016-04-08 12:38:00',`status`='done',`resolution`='failure',`message`='Recoverable Error [4096]: Argument 1 passed to Reminder::isDecline() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 212 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 374\nRecoverable Error [4096]: Argument 1 passed to Reminder::testEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 375 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 378\nRecoverable Error [4096]: Argument 1 passed to Reminder::getEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 379 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 390\nRecoverable Error [4096]: Argument 1 passed to Reminder::isDecline() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 212 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 374\nRecoverable Error [4096]: Argument 2 passed to Reminder::isDecline() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 212 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 374\nRecoverable Error [4096]: Argument 1 passed to Reminder::testEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 375 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 378\nRecoverable Error [4096]: Argument 2 passed to Reminder::testEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 375 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 378\nRecoverable Error [4096]: Argument 1 passed to Reminder::getEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 379 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 390\nRecoverable Error [4096]: Argument 2 passed to Reminder::getEventPersonAcceptStatus() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 379 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 390\nRecoverable Error [4096]: Argument 1 passed to EmailReminder::sendReminders() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Reminders/Reminder.php on line 191 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Activities/EmailReminder.php on line 128\nRecoverable Error [4096]: Argument 2 passed to EmailReminder::setReminderBody() must be an instance of SugarBean, boolean given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Activities/EmailReminder.php on line 167 and defined in /opt/bitnami/apps/suitecrm/htdocs/modules/Activities/EmailReminder.php on line 202\nRecoverable Error [4096]: Argument 1 passed to TimeDate::asUser() must be an instance of DateTime, null given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Activities/EmailReminder.php on line 209 and defined in /opt/bitnami/apps/suitecrm/htdocs/include/TimeDate.php on line 579\nRecoverable Error [4096]: Argument 1 passed to TimeDate::tzUser() must be an instance of DateTime, null given, called in /opt/bitnami/apps/suitecrm/htdocs/include/TimeDate.php on line 581 and defined in /opt/bitnami/apps/suitecrm/htdocs/include/TimeDate.php on line 880\nUnexpected failure, please check PHP logs and suitecrm.log\n',`target`='function::sendEmailReminders',`data`=NULL,`requeue`=0,`retry_count`=NULL,`failure_count`=1,`job_delay`=0,`client`='CRON05b962ae12ba2dc45cc0a100c22bab99:35391',`percent_complete`=NULL
WHERE job_queue.id = 'ae45f783-59dd-c8f5-862a-5707a6286487' AND deleted=0
There’s a lot of talk in there about “SugarBean”, but I just don’t know how to troubleshoot this any further. Any suggestions please?
Thanks,
Adriaan