Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
100
votes
16answers
179k 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 ...
35
votes
2answers
25k 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 ...
2
votes
1answer
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.
10
votes
3answers
18k 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 ...
11
votes
1answer
853 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" >> &...
3
votes
3answers
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 ...
19
votes
3answers
13k 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 ...
27
votes
1answer
20k 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?
10
votes
3answers
16k 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 ...
3
votes
1answer
1k 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 ...
5
votes
4answers
12k 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 ...
5
votes
1answer
2k 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 ...
4
votes
2answers
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 ...
2
votes
4answers
645 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
3answers
16k 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
1answer
392 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 ...
4
votes
1answer
6k 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/...
15
votes
3answers
24k 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 ...
4
votes
2answers
2k 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 ...
5
votes
2answers
4k views

Is there an AOE Scheduler for magento 2?

Or some equivalent? It would be a great module to have for m2, no?
9
votes
4answers
3k 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
3answers
11k 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
3answers
4k 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. ...
4
votes
4answers
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
2answers
6k 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
3answers
759 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?
2
votes
1answer
1k 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 ...
2
votes
1answer
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
1answer
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 ...
0
votes
1answer
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 ...
4
votes
6answers
37k 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 place (I use default magento templates from ...
3
votes
1answer
929 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 ...
2
votes
4answers
4k 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
0answers
131 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 ...
1
vote
1answer
115 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
1answer
105 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
1answer
563 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 ...
16
votes
3answers
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?
4
votes
1answer
5k views

Magento 2.1 Update Product Stock in Cron Job

I need to be able to programmatically update product stock in my Cron job. I have an array that contains both the SKU of the product needing updating and the Stock value of that product. How can I ...
7
votes
1answer
3k views

How are dynamic cronjobs inserted into cron_schedule

The timing for a number of Magento's core cron tasks such as sitemap, stock alert notifications and log cleaning can be adjusted via the admin's System Config. This means they are not defined inside ...
7
votes
2answers
3k 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:...
7
votes
2answers
4k views

Magento 2: How to set cron for reindex in SSH in magento 2?

I want to know how to set cron for reindexing a particular indexer method in Magento 2. I have used below code to reindex all but not working: * * * * * php –f /shell/indexer.php reindexall Can ...
1
vote
4answers
13k views

Howto setup cronjob to automatically start a import profile?

There should be a possibility to setup a cron, which does the dump click on "start profile" button. I want to automatically start an import profile which I have setup in Magento CE 1.8.1, which is ...
13
votes
4answers
11k 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 ...
8
votes
1answer
2k 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 ...
10
votes
5answers
7k 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><...
6
votes
3answers
2k 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 ...
3
votes
2answers
3k views

Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are running

I am running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install I don't customize any configuration regarding schedule of cronjobs. after running the ...
1
vote
2answers
721 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 ...
11
votes
1answer
1k 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 ...