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 [cron]

Denotes a question related to the cron system

0
votes
0answers
19 views

“There are no commands defined in the cron namespace” even though I don't have any crons running

I have the Magento_Cron module disabled, so as far as I know, no cron jobs should be running in my environment. Every minute or so, the text... There are no commands defined in the "cron" namespace....
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. ...
1
vote
1answer
32 views

Magento always creates new entries

I have a little problem. I am currently working on an synchronize job for cron. The sync function just gets the newest elements from an api and updates in the Magento db. The Magento version is: 2.3....
1
vote
1answer
28 views

Does a cron job with no schedule ever fire?

Consider this in crontab.xml which I've found in a third party plugin... <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
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
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:...
1
vote
1answer
24 views

Dependancy injection and shared/unshared object and cron job

Something interesting happens to Magento2 code and I cannot realise what I missed. The same code works flawlessly via browser and does not work via cron. (in adminhtml area) I calculate the result in ...
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
1answer
19 views

Cron script error on readness check

> Check Cron Scripts Cron script readiness check failed. Hide detail > > Error from Updater Application Cron Script: > > Found non-writable path(s): /var/www/html/pub/media/.htaccess &...
1
vote
2answers
24 views

Cron Failure - Mage_Core_Exception

I get this from the error log all the time. Cron Failure catalog_product alert: ---EXCEPTION--- exception 'Mage_Core_Exception' with message 'Invalid callback: Model for productalert/observer:...
2
votes
1answer
25 views

bin/magento cron:install not writing to crontab

I have ran bin/magento cron:install and then show Crontab has been generated and saved but I run crontab -l, nothing was written into cron, any ideas?
0
votes
1answer
26 views

Magento Cron reindexing issue

We are facing an strange issue that products in listing pages are not showing in frontend. we are importing products from zoho and we have setup crons as update by schedule. Suddenly products got ...
0
votes
0answers
12 views

Configurable Images - Removed After Cron Run

I have 2 M2 sites hosted in Magento Cloud and one of the sites has an issue where random product configurable images are being removed from the root directory leaving the category view of the product ...
1
vote
2answers
44 views

Reindex Not Happening Automatically Magento 2.3

Every time I update a product stock in magento it updates perfectly in the backend but only when I manually run a reindex via SSH does it update on the front end. Very annoying when I am sometimes ...
0
votes
1answer
29 views

Calculate attribute value in indexer or cron?

This is my observer and its updating my custom attribute every time when I save attributes on catalog_product_attribute_update_before event. namespace MyVendor\MyModule\Observer; class ...
1
vote
1answer
29 views

Cron Job doesnt start when DeploymentConfig in __construct parameter

i have one Problem that i cant understand. I have a Cronjob that should read in the Env.php via DeploymentConfig. When i add DeploymentConfig in the Job __construct, the Job wont start. Doesnt start: ...
0
votes
0answers
22 views

Magento 2 generate product data based on cron job

I am developing an admin module which has the functionality to generate product csv in format XML, CSV and txt. I am inserting a row for each format in the database. So when we click on generate ...
2
votes
0answers
16 views

Cron email not taking store smtp in multi site environment

We have a multi site magento installation. For each website, we have configured different smtp settings. But, when we run cron to send abandoned cart email, it is always selecting the default smtp ...
0
votes
1answer
41 views

Magento 2: How override native crontab.xml

I would like to override some cron jobs of native crontab.xml for example, vendor/amzn/amazon-pay-and-login-magento-2-module/src/Payment/etc/crontab.xml <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
60 views

Magento 2 v2.3.1. CRON causing intermittent Deadlock for cron_schedule

Magento 2 v2.3.1. CRON causing intermittent Deadlock for cron_schedule we installed vanilla M2 some extensions. But default CRON is leading to deadlock warnings. Maybe not critical but should not ...
0
votes
1answer
48 views

Magento 2.3.1 Vanilla Cron Error? Serialization failure: 1213 Deadlock found when trying to get lock

So we installed Magento 2.3.1 and some extensions. Nothing fancy. No data nothing. No errors until now. Only every once per day we see the below error via our admin email. Can be any kind of job ...
3
votes
2answers
219 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="...
2
votes
0answers
50 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 ...
0
votes
0answers
12 views

Magento 2 Update Cronjob Status is giving error readiness_checks failed auth.json.sample

Magento 2 Update Cronjob Status is giving an error readiness_checks failed for file auth.json.sample as "file_permissions_verified": false Is this something to worry about? Or should we just restore ...
1
vote
1answer
37 views

Magento 2: I need to run observer in crontab.xml. But it is not working

I am running observer in crontab.xml. This is not working. Here is my code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
86 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
1answer
116 views

Magento 2: I need to get Current quote data from checkout cart model in Custom cron job

I want to get current quote data for cronjob in cron/run.php. But it's not working. Please check my below code. I am stuck with this. Magento2 version is CE 2.2.6 namespace ABC\Abandon\Cron; use \...
0
votes
1answer
19 views

Magento 1 : How to know which cron run first

I have setup 2 cron for same time At 08:45 on every day-of-week from Monday through Friday Lets assume there are two cron A and B Cron A change status of order and in Cron B I want to use that ...
1
vote
1answer
67 views

Magnto 2.3 Newsletter Queue not sending

The newsletter remain in the "not sent" state. Cron Job is up and running and all mails work accordingly. newsletter subscribtion mails are sent as well. magento/var/log/exception.log shows this ...
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
34 views

magento 2 not reindexing two indexers - Catalog Product Rule and Product Categories

i try to Reindexing Using this command :bin/magento indexer:reindex It says it's updated all the indexers but when i return to index management in the admin these two indexers (Catalog Product Rule ...
0
votes
0answers
72 views

System Upgrade: 2.3.0 -> 2.3.1 -> Cron errors

I really hope someone can help. As my name suggests I am a noob to Magento. I installed Magento a few months ago and have been going through training and learning sites to find my feet. Yesterday, an ...
0
votes
0answers
38 views

Magento 2.2.7 cron job issue finished without completed

We have added the following lines to the crontab file to run magento cron after every 1 minute. * * * * * /bin/php -c /etc/php.ini /home/centos/public_html/staging/bin/magento cron:run > /home/...
1
vote
0answers
44 views

Magento 2.2.6: Scheduled catalog_product_alert cron jobs failing with NotLoadInfoImageException: Can't get information about picture:

I'm currently experiencing an issue where my scheduled catalog_product_alert cron jobs in the cron_schedule table are all failing to send a back-in-stock product alert. Each time these are executed, ...
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 ...
0
votes
0answers
21 views

Cron status running blocking next pending?

what is cron behavior when cron job will be terminated and cron status is set to running. I've notice that jobs scheduled after this cron entry with running status are not fired. Running status block ...
1
vote
1answer
25 views

wrong filename in cron configuration

Configuring cron with the following lines (using sudo crontab -u daemon -e) * * * * * bash /path/to/magento/cron.sh --mode default >> /path/to/magento/var/log/cron.log 2>&1 * * * * * ...
2
votes
0answers
17 views

taxClassId are not saved with the rest of the product

I'm trying to update some attributes of my product by a cron to avoid common mistakes. The code causing me trouble is executed in a loop: foreach ($storesIds as $storeId) { $this->...
0
votes
1answer
116 views

Using Magento 2.2.7, do I need ece-tools?

I'm currently running a version of Magento 2 (2.2.7) on a hosted server and I've been having trouble with Database connection and Cron Jobs. These errors have persisted for around a few days now now ...
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 ...
1
vote
0answers
30 views

Magento 2 CRON JOB

I want to separate newsletter from other jobs, creating new custom cron_group with the job for sending newsletter emails will do the thing?
1
vote
1answer
19 views

Magento 2 independent cron job queue

Sending newsletters via cron job queue, blocks sending important emails to the customers, is there a way to make independent cron job queue which will be run only if core queue is empty or something ...
1
vote
0answers
150 views

Cron deleting expired quotes

Magento has a cron job for the deletion of expired quotes which hasn't changed since the first version I got in touch with, i.e. 1.6. The cron job is located in Mage_Sales_Model_Observer::...
2
votes
0answers
265 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....
1
vote
1answer
44 views

Why are there 3 cronjobs that needs to be added to crontab

Starting from the official documentation: https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-cron.html#create-the-magento-crontab Somewhere in there is this... that ...
0
votes
0answers
43 views

Indexer status and backlog

When I run indexer:status from command line to look at the status of my indexes i notice some are like this: | Catalog Product Rule | Ready | Schedule | working (7414 in backlog) | 2019-02-19 01:37:...
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
21 views

How to check if extension has cronjobs and start them?

I installed the extension algolia search. But I think its cron job is not running anymore since we moved to another hoster, the term "algolia" is not in the Aoe-Schedueler List. How can I check if ...
1
vote
0answers
17 views

Cron dosen't sending newsletter

I run manually cron via cron:run first I got the error that email address isn't valid when I correct that, now in cron.log I don get nothing about newsletter sending, I don't receive the email either. ...
2
votes
2answers
24 views

how to pass cron job result to a controller controller

I need to filter products based on 3 attributes and display those attributes to storefront, I've about 25000 products, so filtering them in each request takes 20 seconds. I thought about creating a ...