Skip to main content

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
2 answers
44 views

How to disable the cron jobs created by my module?

Anybody have crontab.xml reference of magento2. I want to temporarily disable the custom cron job. I dont want to disable my module or delete it.
Haarish Infant Raj's user avatar
4 votes
2 answers
454 views

Magento 2 Cron jobs are stuck in Pending status

We have use Magento:2.4.3-p1 version , my issue is new cron generating but "pending" status. After attempting to update product attributes in bulk I have a "stuck" system message ...
Sutariya Parth's user avatar
0 votes
1 answer
843 views

How does the cron functionality work in Magento 2, and how can I configure and manage cron jobs effectively?

I'm looking to gain a better understanding of how the cron functionality operates in Magento 2 and how I can utilize it for scheduling and automating tasks within my store. Specifically, I have the ...
user avatar
0 votes
2 answers
167 views

Cron job that delete customer in database

below is the cron job code that suppose to delete customer if they have value of 1 in deleteOrders field but it not doing that, what am i missing? <?php namespace Vendor\ThreeYearOrders\Cron; use ...
Bayzel's user avatar
  • 187
0 votes
2 answers
271 views

Remove cronjobs from old module - Magento 2

We had a module that created 3 specific cronjobs. This module was located in the app/code folder and we recently removed the entire module by removing the folder and then run the upgrade command. But ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
3k views

import product data programmatically using csv

I am new in magento 2 I am trying to import product data programmatically using csv file. The Error is shown below My Folder and code structure are following. This is My registration file. Vendor/...
Alok Tiwari's user avatar
-2 votes
1 answer
147 views

How i create cron script for import product using csv?

Give me idea for creating cron script for importing product csv file
Alok Tiwari's user avatar
0 votes
1 answer
278 views

Cron job not running since upgrading to Magento 2.2.4

In my old version of my site i had a cron that ran at 2am every morning to product some reports from my Module. I have it set up as normal with my class in the cron folder and the correct xml in ...
gazZz's user avatar
  • 97
1 vote
1 answer
276 views

Override the product alert cron frequency configuration to “Never”

Im new at magento and am stuck trying to modify the "catalog_product_alert" I need to update it so even if a product has a list of customers subscribed to the stock alert the alert email are ...
joguz's user avatar
  • 39
1 vote
0 answers
2k views

Queue Consumer not starting automatically (third party integration)

We are doing PIM integration (Inriver Integration) and as per its working when we trigger a bulk sync from PIM(Inriver) to Magento, PIM(Inriver) calls various Magento APIs in asynchronous way. So, in ...
Narendra Vyas's user avatar
0 votes
1 answer
717 views

Problem with execution of cron Magento 2.4.3 - Cron execute twice!

I have problems running cron on Magento 2.4.3 My crontab is configured in this way: #~ MAGENTO START ebd31839b0ed05bdb6ca8efa81d9bd8cc8bb1f90bbec3b545ed65991c8a7d49a */5 * * * * /usr/bin/php /home/www/...
Andrea's user avatar
  • 1
0 votes
1 answer
246 views

Set cron schedule config_path and value for website scope?

Saved the cron schedule config_path and value with websites scope and scope id but it is not working. When saved with default scope and scope id 0 in the core_config_data table works properly. The ...
ajay's user avatar
  • 35
0 votes
1 answer
162 views

Magento crontab vs Magento Cron (Scheduled Tasks)

I am working with the Magento2 Cron functionality, I have created a cron in the crontab.xml (Every 5 mins) default group <job instance="Namespace\ModuleName\Cron\ServiceOrdersStatusUpdate"...
senthil's user avatar
  • 1,729
1 vote
1 answer
399 views

Custom module Cron job on specific time not working

I've written a custom module and the module has to run every Wednesday at 07:10. I've written a cron job and in the schedule. Below is the code added in crontab.xml <?xml version="1.0"?&...
SriLekha Lella's user avatar
1 vote
3 answers
3k views

Magento 2.4.2 upgrade from 2.3.4 issue with crons

I did a Magento upgrade to version 2.4.2-p1. All went good, but in the logs I am getting this error message: [2021-06-17 08:25:04] main.ERROR: There are no commands defined in the "setup:cron&...
Attila Naghi's user avatar
  • 4,033
1 vote
2 answers
601 views

Inventory cleanup cron job is not running

The cron job at magento/module-inventory-reservations/etc/crontab.xml does not show up in the general pool in the admin backend. It does not show up in cron_schedule table. It does not run. All other ...
Jonas de Herdt's user avatar
0 votes
2 answers
283 views

How to setup Cronjob For Magento in AWS (Ubuntu OS)?

Recently i had moved my website from Bluehost to AWS. Now i have to create cronjobs for magento in AWS (Ubuntu OS). please help me how to setup the cronjobs in Linux and if possible please share me ...
somutesting's user avatar
0 votes
1 answer
314 views

Unable to get cronjob working with Magento2.4

Running Magento 2.4. After installing Magento I get the following error in the admin panel: One or more indexers are invalid. Make sure your Magento cron job is running. I've logged into SSH as ...
BugHunterUK's user avatar
1 vote
0 answers
147 views

Setting cron job for files and folder permissions

Each time a new file is generated at var/cache/mage-tags/* it does not have the correct rights and the customers can't access the online store. The only way to make it back to normal is to log in by ...
Иван Димитров's user avatar
0 votes
2 answers
2k views

Magento\Framework\Filesystem\Driver\File doesn't work in Cron Job Magento 2

Does any one know why $this->driverFile->isExists('pub/media/') doesn't work in Cron Job ? I've a Cron Job look like this: <?php namespace Namespace\Module\Cron; use Namespace\Module\Helper\...
fudu's user avatar
  • 1,288
1 vote
1 answer
2k views

How to run cron once a day at midnight

I want to run a cron once a day at midnight so have added this command to crontab -e. 00 00 * * * /usr/local/bin/php /home/../public_html/bin/magento cron:run --group="crongroup" but not ...
SharmaV's user avatar
  • 129
0 votes
2 answers
200 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&...
jeanmarcos juarez's user avatar
2 votes
0 answers
276 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=...
MagentoDev's user avatar
0 votes
1 answer
467 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 ...
MagentoDev's user avatar
0 votes
1 answer
159 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 ...
Juanjo's user avatar
  • 21
0 votes
2 answers
240 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 ...
LoudHouse Family's user avatar
0 votes
1 answer
394 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 ...
Bhavesh Prajapati's user avatar
1 vote
1 answer
288 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. ...
Narendra Vyas's user avatar
0 votes
1 answer
33 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="...
Morgan Tartreau's user avatar
0 votes
1 answer
23 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 ...
Erica S.'s user avatar
0 votes
1 answer
23 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 ...
Ghulam Akbar's user avatar
1 vote
1 answer
2k 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){ ...
Robinio's user avatar
  • 771
0 votes
0 answers
64 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 ...
Eddie's user avatar
  • 139
2 votes
1 answer
1k 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=...
Waqar Ali's user avatar
  • 2,349
7 votes
1 answer
18k 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 ...
nlaitchison's user avatar
0 votes
1 answer
823 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 ...
christianFtsck's user avatar
1 vote
0 answers
244 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:...
Asad Khan's user avatar
  • 1,486
0 votes
1 answer
1k 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" ...
Ajwad Syed's user avatar
  • 1,591
1 vote
0 answers
52 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 ...
Robinio's user avatar
  • 771
2 votes
1 answer
369 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 ...
Ajwad Syed's user avatar
  • 1,591
0 votes
0 answers
58 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 ...
Ajwad Syed's user avatar
  • 1,591
1 vote
2 answers
913 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 ...
Dalvan Miotto's user avatar
1 vote
1 answer
807 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\...
Utsav Gupta's user avatar
  • 1,243
1 vote
3 answers
1k 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 ...
guerinteed_mike's user avatar
2 votes
2 answers
213 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 '...
Nafsss's user avatar
  • 760
0 votes
2 answers
3k 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\...
Ghulam.M's user avatar
  • 963
2 votes
1 answer
508 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: &...
Enrico Thies's user avatar
1 vote
1 answer
380 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:...
engbmaso's user avatar
  • 329
3 votes
3 answers
9k 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?
Prashant Patil's user avatar
0 votes
2 answers
381 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:...
Charvi Parikh's user avatar

1
2 3 4 5