Cron Config Problem

I installed SuiteCrm 7.9.4 on my Centos server

I did added crontab by using this (sudo crontab -e -u apache)

There are no error log in the file suitecrm.log

The log in /var/log/cron show the corn job is running every minute

BUT

The Schedulers show never successful and I cannot search anything using the advance search

How can I fix it ?

Many Many Thanks

Switch on PHP errors and got to repairs -> Rebuild Schedulers.

Then go to schedulers you will see error related to schedulers if there is

OR

Try executing the cron.php file via command line

1 Like

I deleted the directory in AOD_Index/Index/Index and database aod_index

After Rebuild Scheduler

The Directory Index in the AOD_Index/Index/ come up again with 4 file
read.lock.file size=0
write.log.file size=0
segments_1 size=20
segments.get size =20
The build after rebuild scheduler but the file date and time never update

There still have no error related to cron in suitecrm.log

The /var/log/cron file show the corn job running every mins
Jul 27 17:50:01 dddhk CROND[5735]: (apache) CMD (cd /home/danny/www/dddhk/agent; php -f cron.php > /dev/null 2>&1)
Jul 27 17:51:01 dddhk CROND[5747]: (apache) CMD (cd /home/danny/www/dddhk/agent; php -f cron.php > /dev/null 2>&1)
Jul 27 17:52:01 dddhk CROND[5762]: (apache) CMD (cd /home/danny/www/dddhk/agent; php -f cron.php > /dev/null 2>&1)

Scheduler show
Last Successful Run:Never

directory and file user are apache permission 755
user running cron is apache

nazi: Where to switch on the php errors?

I did try to executing the cron.php via command line but no error message too

What should I do??

Thanks

Hi
Hope you have php configuration files which is php.ini Open that file and search for “display_error” and set On, after that you could see any errors in schedulers under admin.

If you triggered the cron.php manually then scheduled task in SuiteCRM also run, please check Admin->Schedulers -> select “Check Inbound Mailboxes” and check whether it is runs or not under job log.

1 Like

Yeah !! The scheduler work suddenly

Thanks a lot

no worries!
Good Luck