Questions tagged [cron]
Denotes a question related to the cron system
116
questions
102
votes
16
answers
191k
views
New order email confirmation not being sent
I have upgraded my website to 1.9.1 and now my customers are not receiving order confirmation email.
I tried sending through the admin panel but nothing happens, also no update email is being ...
34
votes
2
answers
26k
views
Magento 1.9.1 Email Queue not working/buggy - how to troubleshoot and what is considered the best patch?
First of all yes, this is yet another question/topic about the 1.9.1 email queue. But it is not about about any cron problems (like this or this) or about the new queue feature not being used (like ...
3
votes
3
answers
8k
views
How to enable or disable crons in Magento 2?
I checked in cron_schedule table, cron are disabled.
I want to enable or disable crons.
How can I do that?
12
votes
1
answer
2k
views
Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?
In Magento 2 there are three commands that should be set up as cronjob
* * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> &...
2
votes
1
answer
3k
views
After applying SUPEE-6788 , cron stopped working
I am using 1.9.2.1.
After applying SUPEE-6788 , cron stopped working.
Why??
I attached the cron setting of my system.
16
votes
3
answers
26k
views
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry - Magento 2
I'm trying to setup my crons for Magento 2.2.2, but nothing seems to be updating.
I have created cron in cPanel, like below, each once per minute:
/usr/local/bin/php /home/userishere/public_html/bin/...
10
votes
3
answers
19k
views
Magento cron.php Does Nothing After it Runs
My Magento cron works normally about a few months ago. But recently, it suddenly stop generating schedule. The cron command itself running fine in my hosting server. It is Magento ver 1.8.0.0.
These ...
3
votes
3
answers
1k
views
Is adding "$isShellDisabled = true; " in "cron.php" recommended?
All cron jobs were scheduled but not executed.
Googled it lot but no help. I have checked this too.
Then found this link
As it described I have added this line $isShellDisabled = true; and cron ...
28
votes
1
answer
21k
views
Which cron script is best to run? cron.php or cron.sh
Magento provides two cron scripts in its root directory, cron.php and cron.sh.
Which one is the better to run and why?
19
votes
3
answers
15k
views
Pre-Warming the Magento Enterprise Full Page Cache
The performance benefits of the full page cache in Magento Enterprise are fairly well known. What may not be quite so well known is that for the full benefit of this to be realized, it must be fully ...
14
votes
4
answers
31k
views
Magento 2 : Execute Cron
How can I execute Cron from command line manually.
In Magento 1.x we can run cron like :
www.testsite.com/cron.php
but in magento 2 how can I do this ?
Please also help me for how can I execute ...
9
votes
4
answers
6k
views
Magento 2 update.log increases significant size every minute
UPDATE:
I ended up using logrotate utility to handle the ever-growing log files. I've also set up few cron jobs that will check for unneeded temporary files from time to time.
I have the standard ...
6
votes
1
answer
4k
views
Magento 2: where is the update/cron.php file?
Following this interesting question from Fabian: Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?
I've discovered that my Magento 2 installed via ...
5
votes
4
answers
14k
views
catalog price rules disappear after mid night
we have a problem with catalog price rules in 1.9.0
we have some 1000 products in a site.
we applied catalog price rules to give discount for 500 products.
i did't gave any date limit for catalog ...
4
votes
2
answers
3k
views
Can't get cron to work
I try to set up cron to generate my site map.
I defined the google sitemap in catalog > google sitemap.
I also defined the system > configuration > catalog > google sitemap generation to every day
...
3
votes
1
answer
2k
views
Cron error on line 240 from Mage/Core/Helper/Abstract.php
I will start by saying that I have not overwritten any core files (except the one noted below), and have disabled my theme. I'm am currently running on stock Magento 1.9.1. My website is not live, and ...
2
votes
4
answers
788
views
Upgrading Magento 2.1.3 to 2.1.8
I'm currently facing an issue with regards to upgrading Magento from 2.1.3 to 2.1.8.
Unfortunately, My ISP refuses to run commands on their shared hosting server as this affect other clients as well ...
1
vote
3
answers
22k
views
How can I check Cronjob is working and make it work?
I setup cronjob on server's crontab
*/5 * * * * /home/users/mydomain/www/cron.php >> /home/users/mydomain/www/var/log/cron.log 2>&1
30 3 * * * php /home/users/mydomain/www/shell/indexer....
0
votes
1
answer
418
views
Magento not sending emails
I have a problem with the system sending Magento . Do not want to send e -mail order confirmation (e- mails about the account is sent ) . When you refresh a cron job in my web browser , these emails ...
15
votes
3
answers
25k
views
Magento not sending order confirmation emails to admin
I'm at loss on what to do.
This morning I configured cron and according to Aoe_Scheduler the emails in the queue are sent each 5 minutes. I don't, however, receive new order confirmations on my email ...
14
votes
6
answers
22k
views
Magento 2 Bulk Actions not Starting
After trying to update attributes for 4 products in Magento 2.3.2 the Bulk Actions log shows that the update tasks have not started.
My Magento cron jobs appear to be running ok, why are bulk action ...
7
votes
2
answers
6k
views
How to set cronjob dynamic schedule from database in Magento 2
I am working on a custom module for Magento 2. I did setup crontab there and it is working good with static schedule.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
6
votes
3
answers
12k
views
sales email cron job not sending (1.9)
I have verified that the cron script is running, but order confirmation emails are not being sent out. When I open cron.php I see nothing in there regarding emails. Do I need to add anything to the ...
5
votes
3
answers
5k
views
Log Cleaning does not work
I turned on Log Cleaning (under System -> Configuration -> System -> Log Cleaning). This is my configuration:
I set a Scheduled Task (I'm on Windows) to send a request to cron.php every 5 minutes. ...
5
votes
2
answers
7k
views
Is there an AOE Scheduler for magento 2?
Or some equivalent?
It would be a great module to have for m2, no?
4
votes
6
answers
39k
views
Magento 1.9.2 not sending new order confirmation emails
I'm new to Magento. I've upgraded recently Magento to 1.9.2 and it's not sending new order confirmation emails.
I checked email templates and they're in a place (I use default Magento templates from ...
4
votes
2
answers
3k
views
Cron job template block not being translated, but testObserver is
I am configuring a product out of stock notification / alert, and I'm having an issue with localization / translation (pt_BR) in Magento CE 1.9.0.1.
The email/productalert/stock.phtml block isn't ...
4
votes
4
answers
10k
views
cron job command in Cpanel
I am using Magento CE 1.7.0.2 on Linux, cPanel environment.
Search for proper command for cron job in cpanel
So far I got:
PATH to PHP /home/USERNAME/PATH_TO_MAGENTO/cron.php
wget -O /dev/null -q ...
3
votes
1
answer
943
views
Cron.php do not start the cronjobs
I had a question about Magento 1.8.1.0.
For some reason not start in our Magento installation, the cron jobs.
On the server side, we start the cron.php.
To be sure, we have another cron job started on ...
3
votes
2
answers
8k
views
cron job asterisk meaning
I'm a little bit confused about cron job parameters. I'm using bitnami magento installation on amazon azure. I found that if I want to run cron tasks I have to configure cron job
and there is this ...
3
votes
1
answer
2k
views
How to run external script outside of magento 2 root directory?
I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
3
votes
4
answers
6k
views
Cron Job Set up in Windows
How can I set up Magento 2 cron jobs to work on a Windows server?
I can make the cron tasks run in a similar way to this or by calling the file directly (as far as I can tell this works).
yoursite....
2
votes
1
answer
1k
views
Magento doesn't check php version
I am using Magento version 2.1.7.
When I install an extension in my magento it doesn't check php version.
Earlier it show that cron hasn't been configured yet error. For that I changed the cron ...
2
votes
1
answer
2k
views
configuring cron jobs for Magento on Centos Magento 1.7
Thanks in advance for any assistance.
I am trying to set up cron jobs for magento.
Crontab -e was empty so I pasted the following.
# All the comment lines will start with '#' character.
# in the ...
2
votes
1
answer
2k
views
What config.xml settings can be set in the database?
I'm looking to learn more about the internals of Magento!
I recently used Inchoo's tutorial to allow administrators to set a crontab schedule from System > Configuration. See it here. In it, I ...
1
vote
2
answers
3k
views
Magento 2: Calling Restful Web service GET and POST
Any one knows how to call restful web service from Magento 2?
Please guide me with a format how it can be done.
Any links to guide me with examples of POST or GET etc.
I want to Call below URL in ...
1
vote
1
answer
467
views
Magento 2 - Need cronjob output
I am developing a new cronjob, since it is in development phase I want to check the output of cronjob after every edits.
Right now I am creating a log file at the end of cron, and I am executing cron ...
0
votes
1
answer
2k
views
Magento 2: I need to get Current quote data from checkout cart model in Custom cron job
I want to get current quote data for cronjob in cron/run.php. But it's not working.
Please check my below code. I am stuck with this. Magento2 version is CE 2.2.6
namespace ABC\Abandon\Cron;
use \...
0
votes
1
answer
666
views
Magento Setting Up Cron "cron.sh: line 26: $'\r': command not found"
Recently i setup a fresh install of Magento 1.9.2 upon configuring cron i get the following error when i try to execute
bash /path/to/my/magento/root/cron.sh
ERROR :cron.sh: line 26: $'\r': command ...
0
votes
1
answer
146
views
Where is the data related to PHP version stored in Magento?
I am new to Magento & learning it. I have installed Magento 2.1.7 in different folder twice both are showing different errors for the same configuration in the same system.
First, I installed ...
0
votes
1
answer
2k
views
-malways versus -mdefault on for EE 1.13
What is the correct cron setting for Magento 1.13 to ensure Cache does NOT invalidate itself.
* * * * * /usr/bin/php html/cron.php -mdefault
or
* * * * * /usr/bin/php html/cron.php -malways
I am ...
0
votes
1
answer
2k
views
How do I send a email from the cron job? Magento 2 Unable to send mail
I did create a cron job with custom sql query. It will send an email notification to our support email. Can someone tell me what's wrong my email coding, from the log it said I am unable to send mail?...
21
votes
5
answers
10k
views
Why does Magento 2.1.2 cron:run gives Undefined index: jobs?
When running:
/usr/bin/php /var/www/magento2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/magento2/var/log/magento.cron.log
I get:
[Exception] ...
20
votes
7
answers
23k
views
Magento 2 run a specific Cron without cron:run CLI command?
To make a long story short xdebug will not reliably stop on the breakpoints in my cron files when using the typical:
php bin/magento cron:run
Xdebug is all setup properly and sometimes it will work ...
16
votes
3
answers
12k
views
Difference between Shell and PHP Cron files in 1.9
The title pretty much sums it up. Is there a difference between the shell file and php file for the Magento cron?
If there is a difference is there a reason to run one instead of the other?
14
votes
2
answers
8k
views
Magento 2 - Error on running update/cron.php
I'm getting an error on running update/cron.php
I setup the cronjob according to the documentation. But it gives the following error:
PHP Warning: require_once(update/vendor/autoload.php): failed ...
13
votes
4
answers
29k
views
List cron jobs in Magento 2
I am looking for a way to list all magento 2 cron jobs. Is it available somewhere easy to review?
11
votes
5
answers
9k
views
What timezone are Magento cron jobs being run in?
My system's timezone is US/Eastern, my default store is US/Central and the database is UTC. At what time will the following doStuff method be called?
<mymodule_do_stuff>
<schedule><...
11
votes
1
answer
2k
views
How safe it is to run the magento cron.php cron job every minute?
About Magento 1.9
I want to run Magento's cron.php every minute because, I want sales email to be sent the soonest possible on client order. So besides the email function can someone let me know what ...
9
votes
1
answer
3k
views
Should 2 of the standard cron always be running?
My question comes down to, should multiple magento cron:run -vvv processes always be running and hitting MySql constantly.
I am setting up Magento 2.2.1 thru Google Cloud and I have the 3 standard ...