Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k 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
1 answer
1k views

Magento 2 Custom cron not working

I am trying to run custom cron but, I got below error in system.log while execute cron:run command. main.WARNING: Could not acquire lock for cron group: default, skipping run [] [] crontab.xml ...
1 vote
1 answer
42 views

Override the product alert cron frequency configuration to “Never”

Im new at magento and am stuck trying to modify the "catalog_product_alert" I need to update it so even if a product has a list of customers subscribed to the stock alert the alert email are ...
0 votes
1 answer
1k views

I am having massive trouble setting up a cron job in Magento 2

Sorry if this has already been answered, but I have looked around and have been unable to find the help, I've followed countless tutorials etc, just can't get my head around it. So I have a Magento 2....
2 votes
3 answers
6k views

How to Solve: "Could not acquire lock for cron job: X" in Magento var/log/cron.log

With my M2 instance indexers in "Update on Schedule" mode... var/log/cron.log receives this warning near constantly: Could not acquire lock for cron job: indexer_update_all_views [] [] The cron ...
0 votes
1 answer
16 views

Cron job not running since upgrading to Magento 2.2.4

In my old version of my site i had a cron that ran at 2am every morning to product some reports from my Module. I have it set up as normal with my class in the cron folder and the correct xml in ...
1 vote
0 answers
152 views

Index catalogrule_rule still invalid after reindex by cron

I have an issue with indexes becoming invalid once a day even though nothing has changed (neither in front end or back end). When this happens all other indexes but catalogrule_rule and ...
2 votes
1 answer
176 views

Poor Site Performance after Upgrade from 2.4.1 to 2.4.2

After upgrading from Magento 2.4.1 to 2.4.2 on Feb 25th our install has been experiencing very poor performance. The 2.4.1 install ran flawlessly with an uptime of in excess of 80 days, now symptoms ...
0 votes
1 answer
817 views

How do I send a email from the cron job? Magento 2 Unable to send mail

I did create a cron job with custom sql query. It will send an email notification to our support email. Can someone tell me what's wrong my email coding, from the log it said I am unable to send mail?...
1 vote
3 answers
50 views

Magento2: How to check if cron job is working or not?

How can I check if my cron job is created or not? I have created a module that is creating shipment of orders with status processing, my question is how can I check if the cron job is working or not? ...
1 vote
3 answers
2k views

How to disable any specific cronjob in magento 2.3.4?

Sometimes indexing cron process went away and a similar thing happens for the consumers_runner and yotpo_yotpo_orders_sync cron job so I want to disable the consumers_runner and ...
1 vote
1 answer
1k views

Magento 2: I need to run observer function through Cron job

I want to run an observer function through a Cron job. Can anyone share the simple observer function.? Here is my code <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0 votes
1 answer
23 views

Magento 2 : product quantity increasing automatically

I am using magento 2.4.1, the issue is randomly my product's quantity is increasing, it automatically increments the quantity after some time. I tried to keep eye on few products and found that each ...
2 votes
3 answers
2k views

Magento cron - question about timings

If my main crontab runs the magento cron.php every 30 mins and i have a cron job set in a modules config.xml to run every 15 mins. Will that mean the modules cron gets run: Once every 30 mins Twice ...
2 votes
1 answer
139 views

Determine origin of mystery cron job

I have a mysterious cron job that appears once per day in my cron_schedule table. I have spent several hours studying the problem, and I have linked this cron job to an extension that I installed many ...
4 votes
2 answers
97 views

Unable to get Module Cronjob working

I've seen a few other questions about this with similar issues, but I can't seem to duplicate their fixes with my structure and Namespace/Moduel name etc. I've got the following files: Namespace/...
0 votes
1 answer
1k views

escapeshellarg() has been disabled - cronjob - Magento 2

I get this error after installing Magento 2 and enabling the cronjob. The error appears in the email/logfile of the following cronjob: /usr/local/bin/php -f /home/craftweb/domains/craftseurope.eu/...
2 votes
2 answers
1k views

Stores->Configuration->Advanced->Advanced Not showing up

I'm trying to set up a custom cron job as per this tutorial, but Stores -> Configuration -> Advanced -> Advanceddoes not exist on my backend. This is what the Advanced menu looks like for me: ...
5 votes
1 answer
2k views

How to capture automatically Paypal authorization payment?

The payment action of PayPal it's set to authorization (I need it, I can't set to sale), therefore then I need to capture the payment. I know that I can do it manually from the invoice sending page, ...
0 votes
1 answer
1k views

Magento 2: Reindex script does not work with cronjob

Ok, true desparation here. Since the reindex via default cron simply does not want to work (Reindex gets scheduled by cron but never executed) I decided to create a separate cron just to trigger the ...
4 votes
1 answer
3k views

Magento cron jobs are not scheduling in the cron_schedule table

I have cron task in my custom module for sync data. Below is the code in my module config.xml <config> ------- <crontab> <jobs> <tal_intermediate_cron_product&...
5 votes
3 answers
2k views

Magento 1 - Get email if cron is not working / cronjob fails

I was wondering if there is an option in Magento ver. 1.9.2.2 to get an email if cron is not running or more important if a cronjob fails. I didn't find any configuration in backend nor any ...
0 votes
1 answer
2k views

Zend_Mail_Protocol_Exception: Must issue a STARTTLS command first

I am running magento 1.9.1 website on AWS EC2 Ubuntu machine. Customer registration emails are going out but transnational emails are not going. I configure SMTP by AWS SES service with SMTP Pro ...
1 vote
1 answer
25 views

Having hosting error

I have read a lot and tried a lot but I keep getting the message: One or more indexers are invalid. Make sure your Magento cron job is running. And this only count for Catalog Search, if I try in SSH ...
0 votes
3 answers
5k views

Cron jobs are not executing

In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php ...
0 votes
1 answer
1k views

Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in cron job magento2

I have a cron job in magento 2, since I have added dependencies it has stopped running. I am getting the error Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no ...
0 votes
0 answers
24 views

Magento 2 Payment Gateway Method Approach

Overview: I'm creating my own payment method, this method redirects to an external page where customer needs to place credit card details. This page has SuccessURL (on Success payment action), BackURL ...
0 votes
0 answers
6 views

Product Custom option in date value set in cron running date

In front-end, product in custom option add for date, Now i want to run cron on this date which set in custom value, on this date cron run and email sent.
0 votes
1 answer
1k views

Index - ready but 11619 in backlog

We have a indexer in Magento 2.3.3 that is giving us a difficult time. We tried many times reset and reindex that indexer but does not help. | Bol.com Offer Export | Ready | ...
0 votes
0 answers
14 views

Run cron crawler.sh litespeed cache

Documentation: https://docs.litespeedtech.com/lscache/litemage/crawler/ Path to: M2-crawler.sh in server /home/user/M2-crawler.sh Via SSH I run crawler in this way: cd /home/user bash M2-crawler.sh ...
2 votes
4 answers
3k views

How Can I Schedule custom cron in every 5 minutes.?

cron_groups.xml <?xml version="1.0"?> <group id="custom_crongroup"> <schedule_generate_every>5</schedule_generate_every> <schedule_ahead_for>10</...
3 votes
1 answer
2k views

Magento 2: System upgrade fails Readiness Check (always_populate_raw_post_data = 0)

I am trying to upgrade Magento 2.07 to 2.1. I pass all the checks apart from the one below: Your PHP Version is 5.6.22, but always_populate_raw_post_data = 0. $HTTP_RAW_POST_DATA is deprecated from ...
20 votes
6 answers
20k 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 ...
2 votes
3 answers
5k views

Cron job hang - how to debug?

I have some cronjob that sometimes gets stuck in running status. That makes me think that for some reason they produce an error but I cannot find any related log. ( the column messages in ...
1 vote
2 answers
1k views

How to check /root/cron.php/ is working or not

I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/. but i don't know to check cron schedules are working or not. Any manual ...
1 vote
2 answers
4k views

Magento2: CRON Job is scheduled but Not Running

I have created a Cron job followed this question Installed the Extension and check it from admin back it says the job is pending. Below is the screenshot and my code in detail, Please let me know if ...
0 votes
1 answer
1k views

delete session files older than one day, not working

I would like to clean session files older than one day. I clean with cron with this find /path/to/magento/var/session/ -mtime +1 -exec rm {} \; and my cron setting is to run once a day, so 0 0 * * ...
1 vote
2 answers
977 views

Cron does not update currency rates

I'm using this module to replace webservicex currency rates importer: https://github.com/philwinkle/Philwinkle_Fixerio It is working ok when I hit import and save in the backend. But I want to run ...
5 votes
2 answers
3k views

How to disable "Cron Job" logging into system.log file in Magento 2

My logs are being flooded with cron jobs updates. How can I disable this? [2019-02-27 06:28:02] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2019-02-27 06:28:02] main....
0 votes
1 answer
2k views

basic product repository save not work in cron - magento2

I tried the below code in custom controller and cron job method [just load and save] after that I felt some issues $product = $this->productRepository->getById(548); $this->productRepository-...
1 vote
1 answer
2k views

Cron readiness check failure! Found non-writable paths - for non-existant directory

In ver 2.2.5 of Magento CE, var/log/update.log contains errors similar to: update-cron.ERROR: Cron readiness check failure! Found following non-writable paths: /unqualified-path/magento2/.github []...
5 votes
3 answers
4k views

Magento2 : Cron run not working

Below given is crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <group id="...
1 vote
0 answers
58 views

Magento 2 Mailchimp Abadoned cart email not working

In the current Using version we are using Magento 2.4. We are Using this Mailchimp Magento extension - https://marketplace.magento.com/mailchimp-mc-magento2.html We upgraded the Magento version from 2....
3 votes
3 answers
3k 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
0 answers
37 views

Catalog Search Indexer runs indefinitely with alot of backlog

I've run into this issue with my indexers lately where my Catalog Search Indexer will run indefinitely with a lot of backlogged tasks. And if, and when, I edit any product or even add any new ...
2 votes
1 answer
1k views

How to enable asynchronous indexing in production mode?

I want to enable the asynchronous indexing, but the option is inside the Admin menu below, which is available just in developer mode. Stores > Settings > Configuration > Advanced > ...
0 votes
1 answer
104 views

Problem with execution of cron Magento 2.4.3 - Cron execute twice!

I have problems running cron on Magento 2.4.3 My crontab is configured in this way: #~ MAGENTO START ebd31839b0ed05bdb6ca8efa81d9bd8cc8bb1f90bbec3b545ed65991c8a7d49a */5 * * * * /usr/bin/php /home/www/...
0 votes
1 answer
48 views

Magento 2 Cron : How to add yes/no Configuration in Backend Stores -> Config -> Advanced -> System under Cron group?

I have created a custom cron and I want to add yes/no config field under Stores -> Config -> Advanced -> System -> Cron group I'm copying the /vendor/magento/module-cron/etc/adminhtml/...
0 votes
0 answers
36 views

Core_config_data value in crontab.xml

I am creating a module to monintor teh cronjobas in Magento. I have created a field in system.xml where we cab store a value to schedule the job in de cron. And I want to place this value in cronbtab....
0 votes
1 answer
2k views

Magento System.log - Unknown connection name amqp [] []

I am following this documentation for the custom cron job https://devdocs.magento.com/guides/v2.3/config-guide/cron/custom-cron-tut.html I should get the below message in the system.log as part of ...

1
2 3 4 5
20