Questions tagged [crontab]

Short for "cron table". Can refer to the system crontab or Magento's own cronjob management

Filter by
Sorted by
Tagged with
0
votes
1answer
608 views

escapeshellarg() has been disabled - cronjob - Magento 2

I get this error after installing Magento 2 and enabling the cronjob. The error appears in the email/logfile of the following cronjob: /usr/local/bin/php -f /home/craftweb/domains/craftseurope.eu/...
1
vote
1answer
1k 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
3answers
1k views

How Can I Schedule custom cron in every 5 minutes.?

cron_groups.xml <?xml version="1.0"?> <group id="custom_crongroup"> <schedule_generate_every>5</schedule_generate_every> <schedule_ahead_for>10</...
2
votes
2answers
1k 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
3answers
1k views

Magento 2 crontab: not found

I read many about problems with setup magento CRON but I don't find something about this error message with putty ssh connection: Error during saving of crontab: sh: line 6: crontab: command not ...
2
votes
1answer
34 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
55 views

Magento 2 Could not acquire lock for cron group: default

We just migrated our Magento 1 site to Magento 2. At some during the process, the default cron group stopped running. This was after data migration and possibly right after the first test orders were ...
0
votes
1answer
859 views

I am having massive trouble setting up a cron job in Magento 2

Sorry if this has already been answered, but I have looked around and have been unable to find the help, I've followed countless tutorials etc, just can't get my head around it. So I have a Magento 2....
0
votes
1answer
16 views

Send Email automatically with Cron

I am trying to create a custom module which send an alert mail to each customer who subscribed to the product. The idea is to send a custom email when the product's date is updated with a cron that ...
1
vote
0answers
30 views

Magento 2 log file is not creating to test Cron

my code is Vender/Module/etc/crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
0answers
33 views

Magento 2 cron error 'Process went away'

I shifted my module having custom cron job from local server to staging where it is showing this error It is working fine on local server whereas on staging rest of the cron jobs are also working. ...
1
vote
0answers
32 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
38 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
61 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 ...
0
votes
0answers
17 views

M2 | Cron is not auto executing on server

I created custom cron job, all jobs are running fine on local server but on staging jobs are scheduled but always stay pending or missed. I can execute cron from backend using third party extension ...
2
votes
1answer
123 views

can virtual types be used as cronjob instances

I tried to use a virtual type in cronjob as instance but without any success. When I use a real class it works as expected. Is there any hint to get virtual types working in cronjobs? crontab.xml: &...
4
votes
1answer
2k views

Magento cron jobs are not scheduling in the cron_schedule table

I have cron task in my custom module for sync data. Below is the code in my module config.xml <config> ------- <crontab> <jobs> <tal_intermediate_cron_product&...
5
votes
3answers
1k views

Magento Cron is not run on windows

I want to run the cron job on magento, but the cron events are not appeared. This is my etc/config.xml file. <crontab> <jobs> <imagerecycle_imagerecycle> &...
1
vote
2answers
2k views

How can I setup cron job in Wamp Windows? [duplicate]

How can I configure the Magento 2 cron job in Wamp Windows? For upgrade Magento 2 asking cron in Wamp localhost.
0
votes
2answers
619 views

Unable to execute cron.php via SSH nor CRONTAB

I recently hosted my website using Magento, upon setting up my cron.php i get the following output : /home/xxx/webapps/abc/cron.php: line 1: ?php : No such file or directory /home/xxx/webapps/abc/...
3
votes
2answers
1k 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="...
0
votes
2answers
2k views

Automatically cancel magento 2 pending orders after a specified amount of time?

We found that we sometimes run out of stock/inventory due to orders pending payment. Is there a way to "release" those stock/inventory after a specified amount of time, automatically, without us ...
4
votes
3answers
1k views

How to override crontab.xml?

I need to override a crontab.xml from: vendor/magento/module-integration/etc/crontab.xml <job name="expired_tokens_cleanup" instance="Magento\Integration\Cron\CleanExpiredTokens" method="...
0
votes
1answer
617 views

When payment not done automatically cancel the order

I'm using payu for Payment and it works good. When customer place an order, it goes to payu page to fill the details. If the customer don't want to pay, they simply close the window. If the browser ...
1
vote
2answers
684 views

Magento2 Passing Custom Parameters to Cron Jobs

How to pass custom arguments/parameters for cron jobs in Magento2. I found an article related to this for Magento 1.x, I am trying to figure out how to do the same for Magento 2.x
1
vote
1answer
51 views

Magento 2.3 How to automate custom cron job from custom module?

I am working on Cron from custom module to send email from custom cron job, I created it as below but the cron job is nor working on the server. <?php namespace Name\Module\Cron; use Magento\...
3
votes
4answers
1k views

Magento 2 set store_id and website_id in crontab

I have written cron to crate customer, but while running code through cron, I am getting error as A customer website ID must be specified when using the website scope code to get website id: $...
0
votes
1answer
77 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
704 views

basic product repository save not work in cron - magento2

I tried the below code in custom controller and cron job method [just load and save] after that I felt some issues $product = $this->productRepository->getById(548); $this->productRepository-...
2
votes
2answers
72 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
486 views

Fatal error: cron install error

i'm getting this cron install error, how can i fix it?thankyou!! php bin/magento cron:install --force Fatal error: Uncaught Error: Call to a member function getMessage() on null in /home/XXX/...
4
votes
2answers
151 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....
6
votes
1answer
890 views

Magento2 :: Why cron:run, update/cron.php, setup:cron:run needed

In Magento Devdocs for setting up cron it is recommended to schedule 3 seperate scripts * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by ...
0
votes
2answers
173 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
32 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
598 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
37 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
5k views

Error from Updater Application Cron Script: Cron job has not been configured yet

Within the Magento web component wizard, when we try to install extensions, we receive the following error during the Readiness Check: Check Cron Scripts Cron script readiness check failed. Hide ...
0
votes
1answer
126 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/...
2
votes
2answers
169 views

Magento2: I am getting placeholder images in cron tab. Need to get correct images in cron

I am getting placeholder images in crontab. Like this: /pub/static/version1554967977/crontab/_view/en_US/Magento_Catalog/images/product/placeholder/.jpg; This is wrong image. How to get product ...
1
vote
1answer
49 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:...
3
votes
2answers
2k views

Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are running

im running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install i dont customize any configuration regarding schedule of cronjobs. after running the machine a ...
0
votes
0answers
120 views

Magento 2.3: get cart items inside the cron file

I want to get current quote data for cronjob in cron/run.php But my code it's not working. Magento2 version is CE 2.2.6. Here is my code <?php namespace ABC\Abandon\Cron; use \Psr\Log\...
0
votes
1answer
605 views

Magento 2 Cron PHP Parse Error

I'm setting up a Magento 2.1.3 site, first time using M2. I'm having issues setting up my crontab to re-index etc., looking online it seems that it is a fairly common problem although all of the ...
1
vote
1answer
77 views

Magento 2 Cron job can't get finalPrice for configurable product

I have the following in my cron folder and also I have the following the Controller folder which is exact same code and it get the price when I load in the url but it refuse to get price in cron ...
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
31 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??
1
vote
0answers
159 views

Create Order programatically, not working via cron

I am working on to create order programatically using cron. If run this cron using n98-magerun2.phar plugin its works fine. sudo -u www-data ./n98-magerun2.phar sys:cron:run "cron_name" But, ...
1
vote
2answers
71 views

Magento2: crontab not working in magento for emarsys catalog generation?

I am trying to run the command php bin/module cron:run but getting error in CLI. Here is my crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
3
votes
1answer
75 views

Error in Cron with Directoy list - Magento 2.2.7

I moved Magento 2.2.7 from one host to another. I moved it myself. Everything worked except the cron. I installed cron using magento cron command. Now every 15 min. cron is running and sending me a ...