Not able to run scheduled job from sugarcrm scheduler. sugarcrm on premise 7.7
I am able to run job using php.exe -f cron.php command.
Please help.
Its very urgent
Not able to run scheduled job from sugarcrm scheduler. sugarcrm on premise 7.7
I am able to run job using php.exe -f cron.php command.
Please help.
Its very urgent
Hi Anup Kumar
Is your SugarCRM instance configured in server cron job?
That mean, run as root the following command:
crontab -e
Then add into editor (vi maybe) a line like that:
* * * * * cd <path/to/your/sugarcrm/instance>; php -f cron.php > /dev/null 2>&1
Additionally double check file sugarcrm.log and look for any error regarding cron jobs.
Kind regards
Hi Anup Kumar,
I see that you talk about php.exe ; your server is a windows server ? If yes, do you follow this tutorial : http://support.sugarcrm.com/Knowledge_Base/Schedulers/Introduction_to_Cron_Jobs/#Windows
and also mybe this issue : To Setup Windows Scheduler
Kind regards,
Fred
Hi Andre,
I want to run Jobs from Sugarcrm scheduler, not from windows schedulers.
Thanks,
Anup
All the sugarCRM jobs required a windows (or linux depending on your hosting) job to be run.
So you have to add an entry on windows scheduler to run cron.php, and then this sugarCRM script will run all the SugarCRM job, according to their particular settings.
Fred
Create in the root of your crm instance the file cront_install.bat with the following content:
@echo off
echo cd "%CD%" > cron.bat
echo php.exe -f cron.php >> cron.bat
schtasks /create /sc minute /tn "Sugar CRM" /tr "%CD%\cron.bat"
Then execute it.
It will add into Windows Scheduler a scheduler for your SugarCRM instance which will run every minute.
Kind regard
Hey all,
I would like to add one more note. You would need to make sure the cron is run as the same user as the web server.
Cron can at times generate files (eg: if a repair is executed and Cron is the first process running) and if setup incorrectly, could cause the wrong user to create files.
--
Enrico Simonetti
Sugar veteran (from 2007)
Feel free to reach out for consulting regarding:
All active SugarCRM certifications
Actively working remotely with customers based in APAC and in the United States