Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento-cron]

The tag has no usage guidance.

3
votes
0answers
8 views

Magento 1.9 cron running, but stops on one method

I have a small bug and have no clue where or how to debug. I have one cron task which runs on production but stops or stuck always on one method. On local env it works like a charm, but on prod not. ...
0
votes
1answer
15 views

Cron in my custom module is not running

I have created a cron group as below, cron_groups.xml <?xml version="1.0"?> <!-- /** * path: * magento_home/app/code/vendor/module/etc/cron_groups.xml */ --> <config xmlns:xsi="...
0
votes
2answers
65 views

How to automatically run custom module CRON only?

I've to insert/update/delete some data in my custom tables in each 6HR. so i'm using a custom module with CRON and in that module i've written script to insert/update/delete the things. So for ...
1
vote
2answers
30 views

Reindex from different computer

Ok so basically I have been given this one task to manage the admin side for a website that used Magento 2. But then, I have encountered some problem with the reindexing. I have been searching about ...
0
votes
1answer
88 views

Magento 2.2.3 cron Errors how to solve?

we are running website Magento 2.2.3 CE version. We are getting an error in cron.log please advise? cron.log Warning: require_once(/srv/public_html/update/vendor/autoload.php): failed to open ...
0
votes
1answer
72 views

Magento 2.2.3 Cron job won't run. Status is missed. One is stuck in running. How to fix?

I am having an issue with my Magento 2.2.3 using PHP 7.1 My cron jobs are set as follows: 9,24,38,52 * * * * /usr/local/bin/php /home/website/public_html/update/cron.php >> /home/stebbins/...
0
votes
2answers
58 views

Error when reindexing

when I use php bin/magento indexer:reindex or php bin/magento cron:run I keep getting this error. Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/[NAME]/...
0
votes
0answers
38 views

Magento 1.9 cron jobs runs every 5mint but its configured for every 1 minute

Through cpanel I have configured cron.sh to run every 5 minutes (working). I have added a custom module meant to run every 1 minute (code below). The issue is that the cron is not running every ...
1
vote
1answer
29 views

Getting a product collection via Cron

I have a cron job set up where I need to get all simple products. This is working perfectly well when I'm running the script manually but when Cron runs it it fails to retrieve the products. I've ...
0
votes
2answers
129 views

How to call controller function in cron magento 2.2.6

I have created a custom module and created the cron in magento 2.2.6 crontab.xml Learning\GreetingMessage\etc\crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
24 views

Custom cron not working in magento 2.2.6

I Have created the custom cron in my custom module. crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
59 views

Import product CSV to magento using cronjob

I want to update my products csv to Magento 1.9.0 using cronjob. so someone can please tell me appropriate code script, please. because I want to set it using the cronjob Thanks in advanced.
0
votes
1answer
45 views

cron Scheduler requests remains in pending , eventually site crashed why?

Hi we have a site on magento 2.2 version , the site usually goes down for about 3 to 4 minutes after within every 4 or 5 hours , than goes up when cron scheduler finishes it job . when we dig in ...
0
votes
1answer
98 views

Magento2: Cron is not working. All status are pending in database

I have set the cron on my server. In cron log file message update successfully "Ran jobs by schedule". But in the database, all cron is showing status pending. */1 * * * * /usr/bin/php /var/www/html/...
0
votes
1answer
112 views

How to execute cron jobs automatically every week in magento 2 custom module?

I have created crontab.xml in vendor/module/etc directory <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab....
0
votes
2answers
26 views

Magento 2: Cron configuration error?

Every time the cron runs it logs this error: [Magento\Framework\Exception\LocalizedException] Invalid Document Element 'group': Missing child element(s). Expected is ( job ). Line: 24 cron:run [-...
0
votes
0answers
24 views

Unable to send and receive emails in magento 2

I have configured cronjob here is the code in crontab */3 * * * * /usr/bin/php-7.1 /var/www/html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/var/log/...
4
votes
0answers
65 views

Magento 1.9 Cron.php Works, Cron.sh Does Not

I've tried many solutions, but can not seem to get cron restored. It was working fine and suddenly it no longer does. I have Truncated the cron_schedule table, but it doesn't populate. If I run cron....
1
vote
1answer
308 views

Cron job error SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

Suddenly and without reason, I get error via the mail concerns a cron job that could not be executed. Here is the report : *[Magento\Framework\DB\Adapter\DeadlockException] ...
0
votes
0answers
6 views

Magento2 / Cron Jobs: Where are the mappings cron job <> class name stored?

I found that cron jobs and their classes are configured via the crontab.xml files in the etc directory of modules. <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
33 views

How to set magento cron to update special price?

I'm using a price countdown extension in my store. I need to automate all configurable products special price to end in 24h every midnight. So, I think a cron job is perfect to do it. I found here in ...
1
vote
2answers
312 views

Cron job is not running automatically

I am trying to implement cron job to write a log file with 1min interval. I have an issue while doing the same. I notice that cron job is not running automatically. Each time when I run "PHP bin/...
1
vote
0answers
451 views

Log Cleaning in Magento 2 periodically

I am trying to clean the log generated in var/log folder in magento 2 by cron job so that it can run periodically.I go through this link https://github.com/rakeshmagento/magento2-db-log-cleaner/blob/...
0
votes
3answers
397 views

Configuration of a Queue CRON job

I have a MySQL-based queue that has been added by a custom extension and I'd like to know how to configure the CRON to run that queue process. The Magento documentation has this to say about how to ...
0
votes
0answers
40 views

Email not working Magento Community version 1.9.3.8

My store is developed in 1.9.3.8 and none of the emails working like: Order confirmation email, Contact us mail, new registration mail, forget password mail. I tried sending through the admin panel ...
0
votes
0answers
23 views

Magento 2 : Best Seller are not updated for imported order

I have import orders and generate shipment and invoice, But our Statistics are not updated like best seller, Most Viewed, Order Collection, Dashboard Graph. I have already tried with cron and refresh ...
0
votes
1answer
14 views

Magento2->Will Indexing & Cache Via CRON Affect Speed Of the Website?

I'm using Magento2 & my concern is here:- If I set CRON for indexing(every 12th minutes) & cache-flush(every hour) will it affect website speed? is it the right way to use cache via CRON? ...
1
vote
1answer
81 views

Magento cron or mysql event scheduler which one is best based on perfomance?

I know in some case we have to run Magento cron as if it is some file or logic base. But If I just want to perform some task regarding just database like want to update or delete some record from ...
0
votes
0answers
21 views

How can I set cron for some specific php file

I created test.php file in the root folder. I want to this file run automatically in every 2 minutes. I know this is done using cron. but I don't know how to set up cron. so can any one give me ...
0
votes
2answers
30 views

Cron Job In Magento

How to run controller action in Cron Job? I am trying to run cron every five Minute, but cron is not working. I put the code below, Please check :- */5 * * * * root wget -O - http://www.example....
1
vote
0answers
37 views

Product attribute values resetting at midnight everyday

I've posted something similar before and no one replied with a decent answer, so I'm posting a new thread so it will have some fresh eyes. I'm having huge problems with Magento 2, every night at ...
0
votes
3answers
489 views

Magento 2: Check if a cronjob is already running

What is the best way to check, if a cronjob is already running? I need a cronjob that checks, if there are new files in a folder and then do some stuff to this files. The cronjob should check every ...
0
votes
0answers
56 views

How to update currency using cron in magento 2?

I have set multiple currency in my website, save currency rates and symbols all the functionality works fine. It is possible to make currency price automatically update in my admin side when currency ...
0
votes
0answers
200 views

Magento2 : Cron script readiness check failed

I am trying to install the extensions and I am getting following errors. I have already set the crontab as well. Check Cron Scripts Cron script readiness check failed. Hide detail Error from ...
0
votes
0answers
33 views

Magento2: Cron script readiness check failed

I am trying to install an extension on Magento 2.2.4 but I am getting the following error. I have already set the crontab as well. How can I fix this ?
0
votes
0answers
30 views

Magento2 - Any alternative for Aoe_Scheduler for magento2 which can accept the parameter field too while creating Crons?

I came across with multiple cron manager extension for Magento2 but none of them has this functionality of creating crons with parameters. Aoe_Scheduler has this awesome thing build but that's only ...
0
votes
0answers
35 views

At what point is the amount of records in cron_schedule universally deemed “unhealthy?”

I'm sure at this point a lot of people are familiar with this bug: https://github.com/magento/magento2/issues/11002 where the cron_schedule table stores records to infinity (so to speak). That's all ...
0
votes
1answer
159 views

i had error while starting the cron job

I had an error on starting cron job. getting this error, now im unable to do anything in magento :( Could not open input file: cron:run n:run my cron job for magento is below, * * * * * /usr/bin/...
0
votes
1answer
381 views

Magento 2 Cronjob using a lot of memory on server

My server for Magento2 is running out of memory, and when I look at the processes, I see a log of cron jobs running, some of them have been running for more than 20 minutes. I killed all cron job ...
0
votes
1answer
212 views

Magento 2: cron group run all crons

I have created cron for my custom module using this link http://devdocs.magento.com/guides/v2.0/config-guide/cron/custom-cron-ref.html crontab.xml <?xml version="1.0"?> <config xmlns:xsi="...
1
vote
1answer
112 views

Magento 2: Cron not working

I have created cron in magento 2 but it run by command not run automatically run at every 5 minutes. file: crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1
vote
2answers
939 views

How can I setup cron job in Wamp Windows? [duplicate]

How can I configure the Magento 2 cron job in Wamp Windows? For upgrade Magento 2 asking cron in Wamp localhost.
1
vote
1answer
1k views

Magento2 reindex via cron job

I have a store with 300k products, I set up the reindex to be "Update by Schedule", But I don't know what is the best way for reindexing, Should I do this manually by SSH command every 24 hours by ...
0
votes
1answer
128 views

How to configure Magento 1.9 Cron Job to run on a Windows Server 2016?

I would like to set the Cron Job to allow Magento to send emails after new orders from customers. I tried running Magento Cron Job on Windows Task Scheduler with the script from wget.exe and an ...
0
votes
0answers
59 views

Magento 2 auto update currency cron job give error

I have set multi currency in my website , my default currency is British pound (GBP). When i import currency rate it works perfect but when i try to set a cron job for auto currency update using cron ...
0
votes
0answers
131 views

Magento 1.9 cron maximum execution time exceeded

I've got custom module to generate feeds for google shopping and others. When i'm running from magento cron i've got this error: PHP Fatal error: Maximum execution time of 1800 seconds exceeded in.....
1
vote
1answer
145 views

Magento 2 - Cron groups explaination

What is the purpose of below configuration in cron group xml file? I did not fully understand the meaning of those lines: schedule_generate_every Frequency (in minutes) that schedules are written ...
0
votes
0answers
35 views

Magento 2 Session folder in file system too large!

I came across a Session Folder being too large, so large that the disk run out of space on the device. So I have to manually empty the Session folder. I would like to know if magento 2.1.7 have such ...
0
votes
1answer
49 views

Magento is not sending emails of new orders

Magento is not sending emails when there are new orders neither when you comment on the order. Invoice, credit memo, shipping and contact us are working perfectly. Queued emails are in core email ...
1
vote
1answer
109 views

Please help me troubleshoot why Magento2 Cron just won't work

Why we simply cannot get the CRON to run on Magento2 (2.2). The Crontab is below. The Cron_Schedule database table only ever populates if we trigger the Magento Cron manually from the CL. * * * * * /...