Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

Filter by
Sorted by
Tagged with
1
vote
1answer
37 views

Magento 2.3.2 CE and Cron jobs, flock and RabbitMQ

Last few days I was chasing an interesting bug in production system running Magento 2.3.2 CE Where as per community recommendation I run cron jobs like this flock --timeout=0 /run/lock/...
0
votes
1answer
32 views

Magento 2.3 performance drop after running php bin/magento setup:di:compile

While working on a development instance I installed the stripe payment module and then ran php bin/magento setup:di:compile I hadn't previously done this on this install and it's been running for ...
0
votes
1answer
65 views

Moving a vendor module to new cron group in magento 2

We are utilizing the Firebear module to import product and pricing data which run in the default cron group. The import takes quite a bit of time/resources so it was recommended to move the Firebear ...
0
votes
0answers
21 views

Pending Payment Order Lifetime doesn't expire or cancel orders

Preconditions: Magento Open Source version 2.2.8 PHP 7.1.29, MySQL 5.6, Apache 2.4. Clean install. No extensions or themes installed. Steps to reproduce 1) Go to Stores -> Configuration -> Sales -> ...
2
votes
2answers
66 views

Issue with Index Management

I am running bin/magento indexer:reindex command for indexing. In admin panel Systems->Index Management Updated column shows the updated indexing date for all except ' Product Categories ' and '...
0
votes
0answers
24 views

Magento 2.3.1 Cron job error: grep: jobs: No such file or directory grep: by: No such file or directory grep: schedule”: No such file or directory

I have set up the cron job for Magento 2.3.1 but I am getting an error email every time it runs. Cron job as follows: * * * * * /opt/plesk/php/7.2/bin/php /var/www/vhosts/************.co.uk/**********...
0
votes
2answers
55 views

Magento2 Cron job for sending mail not working

I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly. Vendor\Module\Cron\Mail.php <?php namespace Vendor\...
1
vote
1answer
18 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
194 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
266 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
30 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
31 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
30 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
36 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
48 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
587 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
36 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
51 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
55 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
38 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
213 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
30 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
180 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
19 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
52 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
85 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
384 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
146 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
80 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
43 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
313 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
600 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
128 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
47 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
40 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
392 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
29 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
202 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
117 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
181 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
377 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
56 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
2answers
136 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
760 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] ...
1
vote
2answers
808 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
928 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
953 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 ...