Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

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

Cron Job Magento 2.2 fail - Class 'IntlDateFormatter' not found in

System set up: Magento 2.2 PHP version 7.1.13 fastcgi with Intl installed Ubuntu 16.04.2 LTS‬ Plesk version: 17.0.17 Elements to the cron set up magento.cron.log update.cron.log setup.cron.log ...
0
votes
1answer
20 views

Only `inventory_cleanup_reservations` CRON is not scheduled

The Magento2.3 instance is installed in AWS server. The CRON has setup correctly and there are many CRON's running successfully. Below is the content of cron_schedule. But the issue is CRON with ...
0
votes
1answer
18 views

Force start / add sales_clean_quotes to cron job list in Magento 2

We started to have some issues with our quotes not being cleaned correctly. I checked list of cron jobs and could not find sales_clean_quotes in the list. We are currently running Magento 2.3.3. How ...
0
votes
1answer
35 views

Cron command to delete Magento 2 captcha images

my pub/media/captcha/base directory of Magento 2 has over 500k images! This causes the server's inodes to become overloaded. So I know that these images would be deleted every 10 minutes, but this don'...
0
votes
0answers
23 views

I want to develop cron for magento 2

In this cron I want to do the following things: cron should fetch products which has been created in the last 3 days. and also I have created some categories in the backend and I want to assign those ...
2
votes
1answer
111 views

backend_clean_cache cron never completes

If I run SELECT job_code,scheduled_at,executed_at,finished_at FROM cron_schedule where executed_at is not null and finished_at is null; I can see backend_clean_cache never completes Has anyone had ...
0
votes
1answer
43 views

Magento\Framework\Filesystem\Driver\File doesn't work in Cron Job Magento 2

Does any one know why $this->driverFile->isExists('pub/media/') doesn't work in Cron Job ? I've a Cron Job look like this: <?php namespace Namespace\Module\Cron; use Namespace\Module\Helper\...
0
votes
1answer
87 views

Advanced Reporting Cron Failing

I'm getting an error in my Magento 2.3.6 when I run n98-magerun2 sys:cron:run analytics_collect_data and overnight in the cron table. Run Magento\Analytics\Cron\CollectData::execute Cron-job "...
2
votes
1answer
119 views

Custom Cron job is not working in magento 2

Custom Cron job is not working in Magento 2 when the schedule set like below: <schedule>30 17 * * 0</schedule> Only working when <schedule>* * * * *</schedule> in magento 2.2....
0
votes
0answers
28 views

Cron job is running but not updating Inventory

I am using mass product import and export Extension from Wyomind https://www.wyomind.com/magento2/mass-product-update-import-magento.html I have scheduled tasks to run csv profile after every 30 ...
0
votes
0answers
22 views

Need to export the products but the export file is not creating in var\export

I am trying to export the products in Magento 2.3.5 there are more than 2Lakh products in the store. After I click the continue I got the below message and i also ran the bin\magento cron:run command ...
1
vote
1answer
45 views

Magento2.2.2 Order email confirmation after switched back on sends old order confirmation email

Order email Communications has been switched Off for long period of time as the emails was being sent outside of magento. However I notice while testing that if switched back On Old order emails ...
1
vote
1answer
34 views

how to export magento Cron job list?

Is there anyway to export the Magento cron job in a list? If possible, including the schedule will be prefect. thanks
0
votes
1answer
15 views

Is there any way to kick off a very specific cron process in Magento 2 using command line?

We're working on troubleshooting a bug where product back in stock alerts aren't sent on our production or staging environment, but they are in dev(after a custom patch was applied to all three). ...
0
votes
0answers
388 views

Magento 2.4 strange issue with crons

After upgrading to magento 2.4 and monitoring some days now I noticed in admin that mass update attributes in catalog are having strange behaviour. When I update some attributes in catalog I get the ...
0
votes
1answer
432 views

Magento 2 cron error 'Process went away'

I created custom cron job which is working fine on localhost and was working initially on the server as well but now on the server, it is getting scheduled but status changes from "pending" ...
0
votes
1answer
274 views

How to run cron job at a particular time in Magento 2?

I want to create a cron job which update product price which are disabled and the cron run at a specific time 1 time in a day. I have created a custom basic module from taking reference from https://...
0
votes
0answers
8 views

Need to control multiple magento config from single admin panel

I am planning to create 3 Magento instances with load balancing. Is there any way to control all the Magento instance config from one single instance (like a single Magento admin panel for all ...
2
votes
3answers
277 views

Import new and update products and their attributes with a CSV file and cron job Magento2

I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
1
vote
0answers
42 views

Import add and update products with their attributes in a CSV file and cron job Magento2

I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
1
vote
0answers
19 views

How to make magento 1.9 to use postfix to send email to client?

I have Magento store deployed on an ec2 instance which was moved from shared hosting to the standalone server on AWS. On the server I have configured Postfix as the MTA agent to allow Magento to send ...
1
vote
0answers
62 views

Cron 'catalogrule_apply_all' locks cron 'indexer_all_invalid' and catalogsearch_fulltext keeps processing Magento 2.3.5

Took me quite some time to debug this. Every night (default) at 0:00 catalogrule_apply_all is run by cron, and resets all indexes for all store. As a consequence catalogserach_fulltext is launched (...
1
vote
0answers
20 views

cron_schedule does not update to “running” causing same job to restart repeatedly

Magento (1.9.2.1) does not appear to be setting any of the cron jobs as "running". This is causing issues where a long-running process is being restarted repeatedly every five minutes - the ...
4
votes
3answers
276 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....
0
votes
1answer
73 views

Magento 2.3.4 [SOLVED] can't delete crontab created in development mode

When we created the store in development mode, a conjob was created. On moving to the definitive domain, we noticed errors in the cron tasks and did an install: cron again But now I have two cronjobs ...
0
votes
1answer
78 views

Magento 2 Cron Run throws PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Filesystem\DriverInterface

So when I run the php bin/magento cron:run I get error as PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Filesystem\DriverInterface This error gets disappear after ...
0
votes
0answers
22 views

Magento2 cron function not running:

I have created a custom module for cron but it's not running at all: crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
23 views

Magento 2.3.2 custom Cron status is always missed or pending

Magento 2.3.2 custom Cron job won't run. Status is always missed or pending and next time it is not working <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
13 views

Why would cron be sending MANY Emails from root@server to user@server?

Magento ver. 1.9.3.7 Porto theme We were (Email) blacklisted so I started digging around and on one of our Magento accounts, there are many Emails (1460 every day) which are being sent like this: ...
0
votes
0answers
20 views

How often should Cron schedule run in Magento2 for 10,000+ products?

I have a Magento2 site with 13,000 products loaded. Looking at the server CPU usage, I can see that it is currently consuming ~60% CPU at all times. I have looked at the processes using the "top" ...
0
votes
1answer
34 views

Magento2 Cron not running

My cron file code as follows.crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <...
0
votes
0answers
60 views

Magento 2.3.4 cron job reindex error

i've a problem with Magento Cron. I activate magento cron by terminal command as wrote in Magento 2 User Guide. But when i open log file i found this error [2020-04-22 12:53:05] main.ERROR: Cron Job ...
0
votes
1answer
68 views

Magento2 /bin/sh: /home/appleserver2/public_html/magento2/var/log/update.cron.log: No such file or directory

i have delete magento2 installation by directly deleting the directory and database. however i am getting email in every second and the mail content is as below /bin/sh: /home/appleserver2/...
0
votes
0answers
24 views

Is there any way to Schedule a Cron Programatically

I have created a CRON from My Customer this extension has a CRON. now the client is asking me to do something that CRON should schedule automatically on Magento Extension Installation He doesn't want ...
3
votes
3answers
2k 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
2answers
969 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
2answers
32 views

Persistent permission issue on my folders

I am having some issues with my magento 2.3.1 stored on a ubuntu 16.04 server . each time i run php bin/magento setup:upgrade, the VAR and GENERATED folder always loses its permission until i run ...
0
votes
1answer
92 views

Magento 2 : Set Dynamic User Define Time for Run cronjob?

We are developing one Extension in which we provide the facility to the user to set his custom time for run corn job. for this functionality, we provide fields in-store configuration like: Custom ...
1
vote
0answers
112 views

Magento2 - unable to set CRON timezone

I am having timezone = 'Asia/Jakarta' everywhere in Magento admin Database checked in phpinfo Server But still in the CRON logs I am getting UTC time only, I need this to be in 'Asia/Jakarta' only. ...
0
votes
1answer
17 views

Cron tab and schedule: is it needed for layout compile/custom modules?

My current store's staging instance does not have crontab set up as far as I can tell. The cron_schedule table is empty. Is this needed for custom modules/themes/etc to work properly? What is the ...
1
vote
1answer
3k 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
788 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
0answers
21 views

PHP Script in Magento 2 Custom Module Works in Browser but Not Working through Cron

We have a custom module that executes a php script. When running the script through an observer event, the script runs without a problem. When running the script through Cron, the script runs but does ...
0
votes
0answers
79 views

Magento2 - Disabled modules causing errors in cron schedule

I have disabled the modules for all the forced third party modules - temando, yotpo etc. But they still get added to the cron schedules and cause errors - even though the administration no longer ...
0
votes
1answer
65 views

Cron Error Magento 2: Please set a website ID

I have custom cron, which initially had an error: Please set a website ID. I got rid of this issue by doing below: $this->emulation->startEnvironmentEmulation($store_id, \Magento\Framework\...
1
vote
1answer
180 views

Run multiple cron groups but not all in magento 2

I wanted to run the following way. php bin/magento cron:run --group="test_group1","test_group2","test_group3" OR php bin/magento cron:run --group="test_group1,test_group2,test_group3" What is the ...
0
votes
2answers
464 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 ...
1
vote
1answer
73 views

How to use systemd timer to replace OS system cron?

My Linux distro does not have a system cron by default. I can install one, but as an alternative, is it possible to replace that functionality for Magento 2.3 with a systemd timer? If so, what are the ...