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
20 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
0answers
7 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 ...
2
votes
2answers
38 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
34 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
10 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
27 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
66 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
68 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
16 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
26 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
32 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
47 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
16 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
29 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
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 ...
0
votes
0answers
15 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
23 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
49 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
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 ...
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
18 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
65 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::...
1
vote
0answers
107 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
43 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
21 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
20 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 ...
2
votes
1answer
35 views

Crons not working in Magento 2.2.6

I am using Magento 2.2.6 with a theme. www.rbhomoeoshop.com The store is using rule to offer x amount of discount on each and every product. There is no condition for discount. after every 2 or 3 ...
1
vote
1answer
35 views

Magento 2 - Need cronjob output

I am developing a new cronjob, since it is in development phase I want to check the output of cronjob after every edits. Right now I am creating a log file at the end of cron, and I am executing cron ...
1
vote
2answers
64 views

Get products collection in cronjob

I have a cron file like Col.php. I want to get products collection in my cron file. code in my file: public function execute() { $objectManager = \Magento\Framework\App\ObjectManager::...
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 ...
0
votes
0answers
23 views

Cron Jobs Not Running

I'm having trouble configuring cron jobs for a client's website. The person working on it previously setup these cron jobs (MAGENTO v2.1.8 CE) : /usr/local/php70/bin/php-cli /home/XYZ/public_html/...
1
vote
2answers
43 views

How to set cron job periodically in magento?

I have below cron job code. Currently, it is running for every 30 minutes. <job name="customer_details" instance="my_file_name" method="my_method"> <schedule>*/30 * * * *</schedule&...
0
votes
0answers
45 views

Magento 2.2.5 - 2.2.7 excesive cron logging in system.log

Magento 2.2.5 brings excesive logging to system.log which can grow up to 100 - 150 MB in 1 month. This will obviously be a problem for many shops. There is an official response to this on github (...
1
vote
1answer
39 views

cron error Cannot instantiate interface magenot 2

I'm getting the following error on magento cron execution: Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Lock\LockManagerInterface in /home/mywebsite/public_html/vendor/...
2
votes
1answer
31 views

1.9.2 catalog price rule - Cron not working.. Discounts disappear

Applied Catalog price rules but they are being removed within 24 hr period. So far I have; *added end dates to rules *re-indexed *flushed cache *change time zone code (as per other posts suggestions) ...
0
votes
0answers
20 views

update.log so big

I'm using 2.3 one day my update.log will be 1gb ago. and i open this file showing this message. how can i fix it,thank you! [2019-01-31 17:00:02] update-cron.ERROR: Cron readiness check ...
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
0answers
11 views

Cron job to remove unwanted report files

There are lots of invoice pdf files that gets created in magento2/var/ path in my site. Is there a way to remove these files on a weekly basis by running a cron job. This will help reduce so much ...
0
votes
0answers
15 views

Mage::getSingleton('adminhtml/session')->addError() in cron

Is there a way to show message in admin inside job started in cron? Code below doesn't work. Mage::getSingleton('adminhtml/session')->addError($msg)
0
votes
0answers
12 views

Magento 2 - Help on how to run a script on db via cron

I was looking for a solution that would disable products with no images so the catalogue is not randomised by ones that have our image place over. Looks messy. I found this on stackoverflow, which ...
2
votes
1answer
110 views

Magento 1.9.4.0 PHP 7.2 Cron job problems

My settings: Server OS ‪Debian 9.6‬ Plesk 17.8.11 Magento 1.9.4.0 PHP 7.2 When I run schedule task cron.sh I get this: Task "/httpdocs/cron.sh" successfully completed in 0 seconds, output: /...
0
votes
0answers
11 views

Magento 1 cronjob -mdefault not working -malways does work well

We have a strange issue on our Magento 1.9.4.0 store. Only the -malways cronjob are working fine and trigged. The -mdefault crons are not running and keeps pending in the store. Anyone a idea how we ...
0
votes
0answers
19 views

how to setup cron job in magento 1.9 in localhost

I am a beginner to Magento. I am struggling to run my custom module for every regular intervals of time. I want to run cron job in my Magento site. Please give me complete knowledge about this.
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/...
2
votes
1answer
547 views

Magento 2.3 PHP Parse error unexpected '?' in write.php

I want to Install cron with putty SSH. I use php bin/magento cron:install [--force] and get this error: PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /www/...