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]

Denotes questions regarding Magento Cron

1
vote
0answers
15 views

ArgumentCountError when executing indexer_clean_all_changelogs cron job

In Magento 2.2.6, I've encountered an issue and here is log: main.CRITICAL: Error when running a cron job {"exception":"[object] (RuntimeException(code: 0): Error when running a cron job at /usr/...
1
vote
2answers
28 views

Magento 2 - How to disable cronjob temporarily

I have a crojob in my custom module and want to disable it temporarily The xml files for the cronjob are: app/code/Vendor/Module/etc/cron_groups.xml app/code/Vendor/Module/etc/crontab.xml I have ...
0
votes
0answers
28 views

Magento2 Cloud: Make URL Rewrite CRON RUN

I am willing to import URL rewrites provided by my client in Magento Cloud EE edition (2.2.5). I followed all steps mentioned here: (https://devdocs.magento.com/guides/v2.2/cloud/configure/import-...
0
votes
1answer
25 views

Magento 2 Dynamic cronjob

i'm trying to create dynamic cronjob based on my configuration value. already created group defined in cron_groups.xml and defined cron task <group id="mycompany"> <job instance="Vendor\...
1
vote
1answer
65 views

Magento 2.3.0 custom cron job is not working

Magento 2 custom corn is not working in my custom module. app/code/Namespace/ModuleName/etc/crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
34 views

Set different cron on magento 1

The problem is: I have a custom extension that has a file PHP setting to cron. When it's running other cron like m2epro cron doesn't start. Is there a way to fix this problem? If it can help you, ...
0
votes
0answers
24 views

Create cron group and assign it to a custom module

As the title suggests, how can I create a cron group and assign it to the custom module in magento 1??
0
votes
2answers
36 views

Cron Job status always missed/ not running Magento 2

So I have a magento 2 instance running on ubuntu and I have some confusion about cron jobs. I know that magento 2 needs to have scheduled jobs in order to work correctly, but I am unable to find out ...
3
votes
0answers
46 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
1
vote
0answers
15 views

What is the best way to save data in cron file in Magento 2?

I have a multistore website. Every store has a different language. When I save data by running a cron file. It saves the data in the English language but data does not save as per multilanguage. How ...
1
vote
0answers
26 views

Magento cron job

I was trying to activate the cron job in my store and I received this error [root@sitesmagento-1 onyxtrade]# PHP Warning: include_once(phpseclib/bootstrap.php): failed to open stream: No such ...
2
votes
0answers
27 views

Magento 2.2:Fails Readiness Check due to Cron - Found non-writable path(s):

Magento 2.2 Error from Updater Application Cron Script: Found non-writable path(s): /home/jon/as/.htaccess /home/jon/as/.htaccess.sample /home/jon/as/.php_cs.dist /home/jon/as/.travis.yml ...
1
vote
1answer
62 views

Magento 2 Cron jobs are stuck in Pending

I currently have a problem with the cron in my Magento 2 (2.2.7 installation). Orders are coming through but any which come through from an extension called "Adyen" are getting stuck in the "Payment ...
4
votes
1answer
36 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
23 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
68 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
37 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
174 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
230 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
94 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
41 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
34 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
221 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
91 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
70 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
119 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
205 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
30 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
88 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
418 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
7 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/...
1
vote
2answers
495 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
600 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
546 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
41 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
24 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
15 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
90 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
38 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
580 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
62 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
214 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
43 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 ...
1
vote
1answer
206 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/...