Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
1
vote
1answer
14 views

How to get bundle product price by product id ? Magento2

In the code below, I get the product price by identifier, but only the first product price is returned for different product id. Can help me ? public function getBundlePriceByid($product_id){ ...
0
votes
0answers
30 views

Magento 2.3.0 > 2.3.3 update

I'm getting error messages when trying to update my magento installation via the admin panel. When I log on to my server and give the command crontab -l the only 1 listed is MAILTO="". The magento ...
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
62 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
20 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
32 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
36 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 ...
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 ...
1
vote
3answers
66 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 ...
1
vote
1answer
52 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\...
0
votes
1answer
78 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 ...
2
votes
2answers
74 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
2answers
197 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\...
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: &...
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
641 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:...
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
1answer
132 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/...
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="...
2
votes
2answers
174 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:...
0
votes
0answers
121 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\...
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, ...
1
vote
1answer
84 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 ...
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
1answer
26 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 * * * * * ...
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 ...
3
votes
0answers
138 views

Magento 2.2:Fails Readiness Check due to Cron - Found non-writable path(s):

Magento 2.2 Error from Updater Application Cron Script: Found non-writable path(s): /home/jon/as/.htaccess /home/jon/as/.htaccess.sample /home/jon/as/.php_cs.dist /home/jon/as/.travis.yml ...
1
vote
1answer
911 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 ...
0
votes
0answers
102 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:...
1
vote
1answer
48 views

How to run CRON job in magneto 2 [duplicate]

My custom CRON job not working automatically, but if I run it using command line then it is working. I created basic module and below is my code for CRON job crontab.xml <config xmlns:xsi="...
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
2answers
147 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 ...
1
vote
2answers
45 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
1answer
33 views

What is the command to create a Magento crontab in Magento CLI 2.3?

I am using Magento 2.3 inside an UBUNTU 16.04 OS. I am trying to setup the cronjobs. In the documentation official site the suggestion is php bin/magento cron:install [--force]. But as we can see in ...
2
votes
1answer
242 views

Magento 2: How can I fix my cron issue?

I've installed Magento 2.3 on my server. Currently I am trying to activate cron, but unfortunately I always get the same notice when I try to install and run it. Error during saving of crontab: sh: ...
0
votes
0answers
48 views

Magento 1.9 cron jobs runs every 5mint but its configured for every 1 minute

Through cpanel I have configured cron.sh to run every 5 minutes (working). I have added a custom module meant to run every 1 minute (code below). The issue is that the cron is not running every ...
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"...
2
votes
1answer
490 views

“No callbacks found” error message in magento 2 cron job

I have created a crontab in my custom module and scheduled at every 10 minutes. It is working fine, when I am running the "php bin/magento setup:upgrade" command. So, first time it is working fine, ...
1
vote
1answer
49 views

Getting a product collection via Cron

I have a cron job set up where I need to get all simple products. This is working perfectly well when I'm running the script manually but when Cron runs it it fails to retrieve the products. I've ...
0
votes
1answer
46 views

Cron jobs not working

I am hosting my magento 2 shop at all-inkl and unfortunately I can only use a "cgi bridge" to call the cron.php via a web cron job. I have built that bridge which looks like that: <?php exec("/...
0
votes
1answer
354 views

How to schedule all the cron jobs to run after truncate the cron table?

I truncate my CRON job schedules using this command below: TRUNCATE cron_schedule; I wait some time but I'm not seeing the schedules populating the table again as you can see here. How can I ...
0
votes
0answers
34 views

Cron fails because update folder does not exist

I am trying to setup cron for a magento 2 installation made through composer. I have tried to manually add the following to my crontab: * * * * * www-data php /path/to/m2/bin/magento cron:run | grep ...
0
votes
1answer
259 views

Magento2: Cron is not working. All status are pending in database

I have set the cron on my server. In cron log file message update successfully "Ran jobs by schedule". But in the database, all cron is showing status pending. */1 * * * * /usr/bin/php /var/www/html/...
0
votes
1answer
443 views

How to execute cron jobs automatically every week in magento 2 custom module?

I have created crontab.xml in vendor/module/etc directory <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab....
2
votes
1answer
622 views

Is too much cron jobs schedule cause server time out of website ?

Hi i have a website in magento2 , in my database we have 467500 rows in cron_schedule table , my site is lacking alot and most of the time it goes down displaying server timeout issue . The ...
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 ...