the issue I am facing is that order emails not working on my magento store. I installed AOE scheduler but I am getting this issue
No heartbeat task found. Check if cron is configured correctly.
Though I have set the settings on cpanel
and AOE scheduler settings on magento
I am getting this email every second
Available actions:
--action listAllCodes
--action lastRun --code <code> [--secondsFromNow] Get the timestamp of the last successful run of a job for a given code
--action scheduleNow --code <code> Schedule a job to be executed as soon as possible
--action runNow --code <code> [--tryLock] [--force] Run a job directly
--action wait [--timout <timeout=60>] Active wait until no schedules are running.
--action flushSchedules --mode (future|all) Flush schedules.
--action listAllRunningSchedules
--action killAll
--action watchdog
--action cron --mode (always|default) [--includeJobs <comma separated list of jobs>] [--excludeJobs <comma separated list of jobs>] [--includeGroups <comma separated list of groups>] [--excludeGroups <comma separated list of groups>]
I am stuck I dont know how to resolve this issue, please help
2
Answers
https://magento.stackexchange.com/questions/186044/cron-jobs-for-order-emails?noredirect=1#comment257244_186044
Looks like PATH variable is set somehow different in jailshelled cron environment. So I suppose different php binary is used. You can ssh to your cPanel account and set PATH in your crontab.
So crontab should start like:
Here is something that is hidden in the Magento 2 documentation. Once you install Magento 2 with composer you are not done installing. One needs to go under the /update/ folder and run
composer update
again so it installs some needed packages for the cron to work properly.I’ve seen many Magento2 setups where this extra step was not done, hence everything works except the cron.
If you use command line, it should look like this: