Questions tagged [crontab]

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

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
3 answers
4k 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="...
Unknown's user avatar
  • 571
5 votes
3 answers
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> &...
wuang li's user avatar
4 votes
2 answers
6k 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 ...
Ed Tan's user avatar
  • 173
4 votes
3 answers
392 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....
vigeos.net's user avatar
4 votes
1 answer
3k 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&...
KNKM's user avatar
  • 101
4 votes
0 answers
772 views

Cron generating a lot of process causing the server to hang (Magento 2.0.2)

I have a VM running ubuntu with no problem: Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st ...
Luiz Junior's user avatar
3 votes
0 answers
594 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 ...
Firoz007's user avatar
2 votes
0 answers
185 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
2 votes
1 answer
601 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: ...
Niklas's user avatar
  • 21
2 votes
0 answers
1k views

Magento 2 site crashing after 2 weeks (Believed cron or mysql problem)

I have a magento 2 site working however it keeps crashing randomly after running smoothly for 2 weeks. I reboot my site after the crash and it seems to stay for about a day or so before crashing again....
Greg's user avatar
  • 399
2 votes
0 answers
99 views

Magento 1.9, Order email found in core_email_queue, but not sent out

I have Magento 1.9 website, and the order emails have always been working. But about just a few days a ago I noticed that the order confirmation emails are not sent out to customers. I have set ...
Magento Learner's user avatar
2 votes
0 answers
715 views

Magento 2 Cron job not running with constructor

I am currently developing a drop shipping module for our Magento 2.2.3 store. For this I am creating a cron job to send a post request to my API that pulls in all the orders where a Magento 2 order ...
vmp's user avatar
  • 398
2 votes
1 answer
213 views

Installed cron scheduler but I see now that cron is having issues

I'm looking at the timeline & I see that cron keeps stopping & the cron jobs are not running. I get this message "Last heartbeat is older than one hour. Please check your settings and your ...
DevAnd's user avatar
  • 496
2 votes
4 answers
3k 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</...
Midlaj's user avatar
  • 397
2 votes
0 answers
372 views

How to set cron schedule dynamically from database?

I have a module which is basically a grid and has entry for different jobs. Each entry here represent a cron and all these crons are mentioned in crontab.xml. Now I need to use the schedule from a Job ...
Sarvagya's user avatar
  • 1,207
2 votes
0 answers
70 views

How to run crontab for Magento upgrade

I am having a problem with crontab I installed Magento on DigitalOcean using one-click approach and it's working fine but I want to upgrade Magento to the last version 2.1.5 and Check Readiness gives ...
SALEH's user avatar
  • 21
2 votes
0 answers
695 views

Magento2 Cronjob and Generate Schedules Every

I create a custom module, that updates prices and product stock. This is two different jobs in the same cron group. My crontab.xml is: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
mvistas's user avatar
  • 481
2 votes
2 answers
2k 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
Atish Goswami's user avatar
2 votes
1 answer
471 views

update product inventory and and price by attribute

I need to write a cron job to update my products inventory and price hourly. The variables are these. I have 6000 products with their own IDs which my accounting system uses (not magento). These ...
Justin Blayney's user avatar
2 votes
1 answer
510 views

What is the correct way to properly register & run automated cronjobs in Magento 2?

I'm trying to define a cronjob for a custom module, but having a hard time going through the proper flow of scheduled cronjobs. Few things of note: It seems that third-party cronjobs are only ...
Mark Shust at M.academy's user avatar
1 vote
1 answer
1k 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
1 vote
1 answer
242 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
2 answers
369 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
1 vote
0 answers
110 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
1 vote
1 answer
247 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
1 vote
0 answers
207 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,466
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
  • 749
1 vote
2 answers
835 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
283 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:...
Shomita's user avatar
  • 1,083
1 vote
0 answers
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, ...
Mastafis's user avatar
  • 187
1 vote
2 answers
249 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"...
Unknown's user avatar
  • 571
1 vote
0 answers
173 views

Schedular Error Invalid callback

I have added a one schedule task for reindexing. I have used the same code given here. But whenever I added this module in scheduler it gives error like Invalid callback: Model for ...
Narayan's user avatar
  • 119
1 vote
0 answers
112 views

Magento 2 how to change customer group based on order status with cron jobs

If customer order status is pending and more than 30 days, how to change customer group to wholesale in crons? crons should run at every one minute. This is my code public function execute() { ...
Chala Chalapathi's user avatar
1 vote
1 answer
1k views

Magento 2 : crontab is not working

I am trying to implementing cron job for my module but getting error in CLI. I am using windows operating system. here is crontab.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:...
Hiren's user avatar
  • 1,069
1 vote
0 answers
463 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, ...
Rajkumar .E's user avatar
  • 3,520
1 vote
0 answers
25 views

How do I target a class in the Model directory of a custom plugin with crontab in Magento 2

As the title suggests I'm having some trouble targeting three custom classes I want to run on a schedule. The crontab.xml below returns the following error: PHP Fatal error: Uncaught Error: Class '...
Front_End_Dev's user avatar
1 vote
0 answers
286 views

Cronjob module not finish running

I made a module to check if there are orders placed and if so then export them via another class. I can see the task getting created in the cron_schedule table however only the first one starts ...
Senta's user avatar
  • 108
1 vote
0 answers
153 views

Send email after 7 days if status is always "pending"

I need help or an explanation to send an email once, to people who do not pay bank transfer or bank check (status pending) after 7 days. Example: A customer orders today by bank transfer. If after 7 ...
devmagento's user avatar
1 vote
3 answers
209 views

How we can run cron through magento without cpanel?

How we can run cron through magento without cpanel? I want to run directly through the magento without using capnel.
ajaysingh's user avatar
1 vote
4 answers
433 views

After adding <crontab> in my config.xml

After adding <crontab></crontab> in mymodule's config.xml file I got error: Fatal error: Class 'Mage_Mymodule_Helper_Data' not found in **/app/Mage.php on line 547 in my config.xml ...
P_U's user avatar
  • 798
1 vote
0 answers
239 views

Magento Cron not working

For some reason my Cron is not working anymore in my Magento 1.9.3 store. I tried it by running it manually, but both solutions did not give any error, still zero results in the AOE Scheduler task ...
JGeer's user avatar
  • 1,446
1 vote
1 answer
53 views

Order email not sending, I'm being asked to edit my crontab but I don't know how

I have a problem with the Order Confirmation emails not sending, all the others appear to be sending just not the Order confirmation ones. I've installed AOE scheduler, and it's indicating that there ...
New2Magento's user avatar
1 vote
0 answers
268 views

Magento2, Crontab can have more than one group?

I create two cronjobs, on same Module, but they should run separeted. On my crontab.xml I have: <group id="price_update"> <job name="price_update_cron" instance="Namespace\ModuleName\...
mvistas's user avatar
  • 481
1 vote
0 answers
267 views

Magento 2.1, Help figuring out Cron job error

So I'm testing my cron jobs, and found out I'm getting the following error: /usr/bin/php70 -c /etc/opt/remi/php70/php.ini /home/user/public_html/update/cron.php >> /home/user/public_html/var/...
TheNorthern_Light's user avatar
1 vote
0 answers
648 views

Magento 2: Refresh Statistics Automatically On Page Load Or via Cron Job

When ever we see any Admin Report, Every time need to click & update "Refresh Statistics". For accurate reporting, be sure to refresh lifetime statistics whenever you change the time zone. ...
Jackson's user avatar
  • 9,749
1 vote
1 answer
288 views

Magento 2: 404 Page while accessing cron.php

I'm using Magento 2 CE. We have cron.php in \update\cron.php. Not on Magento Root Folder. I have tried both with URL, both leads to me 404 page. Example: http://doamin.com/cron.php http://doamin....
Jackson's user avatar
  • 9,749
1 vote
0 answers
247 views

Currency Rate cron job doesnt work

Since most people were having problem with Webservicex of Magento 1.9.2, I am using the Fixer.io to update my currency rates. When I do it manually it works like a charm and I have enabled the ...
Artemis Chaitidis's user avatar
1 vote
0 answers
2k views

Magento 2: Cron logs not generated

Below cron setting worked in Magento 2.0.1 (fedora 22) $ crontab -u www-data -e */1 * * * * /usr/bin/php -c /etc/php/7.0/apache2/php.ini /var/www/public/bin/magento cron:run >> /var/www/public/...
Bilal Usean's user avatar
  • 9,837
1 vote
1 answer
545 views

Order Emails Marked as sent but not received

Copied the below question from another forum. Has anybody been able to solve this? My cron is set up and is working. Emails marked as sent in back end but is being queued in core_email_queue. Spent 7 ...
d413johnson's user avatar
1 vote
0 answers
146 views

Are there any creative solutions for launching cron.sh for multiple Magento stores in a distributed architecture?

At the company I work for, our architecture is set up in such a way that we have hundreds of Magento stores, and a variable number of application servers (behind a load balancer), but only one ...
Eric Seastrand's user avatar