Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

Filter by
Sorted by
Tagged with
1
vote
1answer
14 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
28 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
0answers
19 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
14 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
73 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
39 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
7 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 ...
1
vote
0answers
15 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 ...
2
votes
3answers
160 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
17 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
35 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
18 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 ...
0
votes
1answer
43 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
18 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
16 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
1answer
60 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
0answers
11 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
14 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
27 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
36 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
48 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 ...
0
votes
2answers
25 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
46 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
74 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 ...
0
votes
0answers
15 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
18 views

There is a limitation to use a custom repository class when it is used in a cron job?

Using Alan Storm's pestle libary, created a full crud model, which it created its interfaces, repository, model, resource model and collection, nice. Defined a new cron job in the crontab.xml, ...
0
votes
0answers
61 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
46 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
44 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 ...
0
votes
1answer
25 views

Integrity checking new install built on AWS to fix problems

I have a new Magento 2.3.3 install that is causing me various problems and I'd really appreciate it if someone could point me to a set of things to check to ensure its integrity that may help point me ...
1
vote
1answer
101 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 ...
1
vote
0answers
46 views

Magento2 :Cron script readiness check failed - Found non-writable path (for hidden files)

I am new to Magento. I installed my first project (2.3.3 version). Added some products using the admin panel. Download a free theme from the market place (Templates Master Absolute Theme). But when I ...
0
votes
0answers
24 views

Cron script readiness check failed Found non-writable path(s) Gruntfile.js.sample grunt-config.json.sample package.json.sample

In my otherwise working Magento project on localhost I'm trying to install and test some extensions. Unfrotunatelly I'm getting an error with Cron script readiness check failed Tried to change the ...
1
vote
0answers
51 views

magento 1.9,error when start cron.sh “no php in (/usr/bin:/bin)”

I'm trying to run cron.sh file, to earn my crons, but i have problem. I have this errors: which: no php in (/usr/bin:/bin) /var/www/vhosts/mysite.com/mysite.com/cron.php: line 1: ?php: No such file ...
1
vote
1answer
47 views

how to run work crons every 15 min

I have many tasks cron, and for each indicate the path and time not too good I know about cron.sh file. On my server, I have a scheduled task, and I would like to set the launch every 15 minutes on ...
2
votes
1answer
48 views

Run Magento 2 cron with a different database user

Is it possible to run Magento 2 cron tasks under a different database user? This user will be able to connect to the same database as the website itself, and have exactly the same privileges; perhaps ...
1
vote
0answers
27 views

cron_schedule table not emptying itself (deadlock error)

I just realized after cheking my logs that all the queries supposed to clean my cron_schedule table are not being executed properly. My table just keeps on growing. Here are the three exception types ...
1
vote
0answers
69 views

magento 2.3 cron job from custom module does not run automatically

I've created a custom module with a cron task. If I call the cron from cli with php bin/magento cron:run --group="default" I can see my custom cron in the cron_schedule table and it gets excecuted ...
0
votes
0answers
14 views

Magento 2 How to get a price of bundle product in a method which is called by cron job?

The code below returns 0, because in the Cron class it is impossible to inject Model Product, Who can help there are options to get prices ? namespace CrChck\CreateCheckout\Cron; class ...
3
votes
1answer
92 views

Magento 2 Custom Module Cron Job often missed

I'm using Magento version 2.2.5 and I've created a cron job for my custom module, but it's often missed, first I setup the cron to run every 5 minutes <group id="default"> <job instance="...
1
vote
1answer
127 views

How Best seller tables gets populated Magento 2?

There are 3 tables related to bestseller in Magento 2 sales_bestsellers_aggregated_daily sales_bestsellers_aggregated_monthly sales_bestsellers_aggregated_yearly How and when these tables get ...
2
votes
1answer
52 views

How i Can Schedule A cron Job on the Basis of Admin Configurations Values

I created a cron job as per standard method Vendor\Module\etc\crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
0
votes
1answer
92 views

Autoload error: '/…app/code//Infortis/Infortis' has been already defined in '/…app/code//Infortis/Infortis'.setup-cron:

This is theme file i installed manually into app folder. noted it is saying it has been already defined in Infortis/Infortis.setup-cron, but i can not find that file or cron schedule. How can I fix ...
0
votes
1answer
282 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" ...
1
vote
0answers
41 views

Cron job doesn't work Magento2

I created a module and want to use it through cron, and in the end I call the cron: run command, here are my files, what is wrong here? namespace AutoAddtocart\BundleAddtocart\Cron; class ...
2
votes
1answer
116 views

M2 | Why we need to execute cron:run twice executing first time?

I created a custom cron job and tested on local server, where it needs to run bin/magento cron:run two times simultaneously and then that custom job is created and scheduled. why is it like that ...
1
vote
3answers
423 views

Magento Setting Up Cron “Error during saving of crontab: sh: line 6: crontab: command not found”

I don't have much knowledge in Magento, but I'm spending a lot of time trying to set up crontab. I tried to follow the steps available on the Magento website, but early on when I try to run the ...
5
votes
0answers
810 views

Configure Magento CE 2.3.2 message queue to use db instead of amqp

I've just recently upgraded from M2.2.8 to M2.3.2 and now I'm getting errors in system.log every minute or so that say. main.INFO: Consumer "async.operations.all" skipped as required connection "...