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
1answer
16 views

Magento 1.9 cron scheduler change timezone

i'm a magento newbie. I wrote a cron job code in my custom module's observer file and ran cron job from terminal. Scheduled jobs are entered into cron_schedule table. But the scheduled time is in UTC. ...
2
votes
2answers
147 views

Extension Installation Readiness Check Error Magento 2.3.1

There are several errors when I'm trying to install an extension (Slider Banner Module) for the first time. The picture below shows the error in the readiness check. I'm using GoDaddy > C-Panel > ...
3
votes
3answers
114 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?
0
votes
2answers
25 views

Is going to reindex automatically?

If I build a module with a indexer, is Magento going to run the reindex automatically each night or do I need to create a cronjob for it?
0
votes
2answers
29 views

mangento 2 Cron Job is not scheduled with fix time

I want to execute cron every day at 10.05 so i have define crontab.xml as below <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
2answers
28 views

Error on running cron in Magento 2

If i run the cron command php bin/magento cron:run im receiving the below error. [Magento\Framework\Exception\LocalizedException]...
1
vote
0answers
31 views

Magento 2 cron job showing success message but code not executed

I have created a magento 2 module in which I have created a cron job and set cron for every 5 mins. But in cron_schedule table it is showing success message but cron code is not executed. If I hit ...
0
votes
1answer
23 views

Cronjobs stay on pending

I put my cronjobs to every minute, but i think there is still someting wrong. I still have some cronjobs who stay's on pending... My pending cronjobs: I migrate my Magento from 1.7 to 2.3
2
votes
1answer
200 views

how to configure Consumer_run for async.operations.all?

I have enabled my custom modules for certain functionality, successfully deployed but magento2 admin portal prompts me "something went wrong" when I click my newly installed module.(the module is not ...
1
vote
0answers
21 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
33 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
37 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
30 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
126 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
28 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
81 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 ...
1
vote
0answers
18 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
42 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
61 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
173 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
68 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
73 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
40 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
248 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
393 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
109 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
42 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
37 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
293 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
25 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
135 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
94 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
141 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
306 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
43 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
1answer
117 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
562 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
667 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
791 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
681 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
43 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
25 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
100 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
22 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
32 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....