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
32 views

Request does not match any route, when try save order in cron job

I have a problem when trying to modify an order through a cronjob this code works perfectly, but when executing it inside the cronjob it indicates that error "Request does not match any route&...
2
votes
0answers
41 views

How to set the CRON for every 4 hours?

I have created a custom cron group and below is the code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
0
votes
0answers
19 views

Cron job is only working when I run the cron command manually

I have created a cron job and its only working when I run the below command: php bin/magento cron:run But the cron should run automatically. What Could be the issue and why the cron is not running ...
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
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
45 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
73 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
21 views

Cron job not launching automaticaly

I've created a CRON job which I want to launch once a time every day. This cron is sending me an email when it's launching. See my crontab.xml <?xml version="1.0"?> <config xmlns:xsi="...
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
1answer
21 views

CRON job not setting up on linux

I have setup the corn command using crontab -e command. MAILTO="" * * * * * /usr/bin/php7.2 /var/www/vhosts/hostname/httpdocs/bin/magento cron:run --group="test" I have created module to run CRON ...
1
vote
1answer
52 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
61 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
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=...
2
votes
1answer
2k 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
27 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
45 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
1answer
279 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
114 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
30 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
420 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
230 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
2answers
266 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
95 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
1k 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
167 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
59 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
3k 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
75 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:...
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 ...
1
vote
2answers
629 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/...
5
votes
2answers
3k 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
329 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
93 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
178 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
38 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
245 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
38 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
29 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
107 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
360 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
229 views

Indexer status (7414 in backlog)

When I run indexer:status from the 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:...
1
vote
1answer
90 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
42 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
545 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
54 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
52 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
460 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
88 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
2 3 4 5