Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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
21 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\...
0
votes
1answer
26 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
20 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
20 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
25 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
14 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
23 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
45 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
31 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
12 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
43 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
11 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
50 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
45 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
38 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
0answers
17 views

Magento 2 Custom module export via cron no products

I created a custom module that at regular intervals creates an XML file with selected product data. The process that generates the XML can also be run from Magento CLI via a custom command. Although ...
0
votes
1answer
27 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
0answers
84 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" to "error" ...
1
vote
0answers
35 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
55 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
187 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
392 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 "...
0
votes
0answers
28 views

Order Confirmation not send automatically Magento 2

After placing an order, I cannot get the order confirmation automatically. But When I can manually send the email by clicking send email for order. I also checked all the configuration. Is it because ...
2
votes
2answers
708 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/...
1
vote
1answer
186 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
2answers
117 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 ...
0
votes
1answer
234 views

Pending Payment Order Lifetime doesn't expire or cancel orders

Preconditions: Magento Open Source version 2.2.8 PHP 7.1.29, MySQL 5.6, Apache 2.4. Clean install. No extensions or themes installed. Steps to reproduce 1) Go to Stores -> Configuration -> Sales -> ...
2
votes
2answers
83 views

Issue with Index Management

I am running bin/magento indexer:reindex command for indexing. In admin panel Systems->Index Management Updated column shows the updated indexing date for all except ' Product Categories ' and '...
0
votes
0answers
61 views

Magento 2.3.1 Cron job error: grep: jobs: No such file or directory grep: by: No such file or directory grep: schedule”: No such file or directory

I have set up the cron job for Magento 2.3.1 but I am getting an error email every time it runs. Cron job as follows: * * * * * /opt/plesk/php/7.2/bin/php /var/www/vhosts/************.co.uk/**********...
0
votes
2answers
521 views

Magento2 Cron job for sending mail not working

I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly. Vendor\Module\Cron\Mail.php <?php namespace Vendor\...
1
vote
1answer
35 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. ...
2
votes
2answers
517 views

Extension Installation Readiness Check Error Magento 2.3.1

There are several errors when I'm trying to install an extension (Slider Banner Module) for the first time. The picture below shows the error in the readiness check. I'm using GoDaddy > C-Panel > ...
3
votes
3answers
1k 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
33 views

Is going to reindex automatically?

If I build a module with a indexer, is Magento going to run the reindex automatically each night or do I need to create a cronjob for it?
0
votes
2answers
46 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:...
0
votes
2answers
33 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
0answers
56 views

Magento 2 cron job showing success message but code not executed

I have created a magento 2 module in which I have created a cron job and set cron for every 5 mins. But in cron_schedule table it is showing success message but cron code is not executed. If I hit ...
0
votes
1answer
83 views

Cronjobs stay on pending

I put my cronjobs to every minute, but i think there is still someting wrong. I still have some cronjobs who stay's on pending... My pending cronjobs: I migrate my Magento from 1.7 to 2.3
2
votes
2answers
2k 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 ...
1
vote
0answers
67 views

ArgumentCountError when executing indexer_clean_all_changelogs cron job

In Magento 2.2.6, I've encountered an issue and here is log: main.CRITICAL: Error when running a cron job {"exception":"[object] (RuntimeException(code: 0): Error when running a cron job at /usr/...
1
vote
2answers
252 views

Magento 2 - How to disable cronjob temporarily

I have a crojob in my custom module and want to disable it temporarily The xml files for the cronjob are: app/code/Vendor/Module/etc/cron_groups.xml app/code/Vendor/Module/etc/crontab.xml I have ...
0
votes
0answers
95 views

Magento2 Cloud: Make URL Rewrite CRON RUN

I am willing to import URL rewrites provided by my client in Magento Cloud EE edition (2.2.5). I followed all steps mentioned here: (https://devdocs.magento.com/guides/v2.2/cloud/configure/import-...
0
votes
1answer
70 views

Magento 2 Dynamic cronjob

i'm trying to create dynamic cronjob based on my configuration value. already created group defined in cron_groups.xml and defined cron task <group id="mycompany"> <job instance="Vendor\...
1
vote
1answer
517 views

Magento 2.3.0 custom cron job is not working

Magento 2 custom corn is not working in my custom module. app/code/Namespace/ModuleName/etc/crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
35 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
36 views

Create cron group and assign it to a custom module

As the title suggests, how can I create a cron group and assign it to the custom module in magento 1??
0
votes
2answers
524 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 ...
1
vote
0answers
26 views

What is the best way to save data in cron file in Magento 2?

I have a multistore website. Every store has a different language. When I save data by running a cron file. It saves the data in the English language but data does not save as per multilanguage. How ...
1
vote
0answers
85 views

Magento cron job

I was trying to activate the cron job in my store and I received this error [root@sitesmagento-1 onyxtrade]# PHP Warning: include_once(phpseclib/bootstrap.php): failed to open stream: No such ...