We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [crontab]

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

98 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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> &...
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....
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="...
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&...
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="...
3
votes
0answers
134 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 ...
3
votes
0answers
615 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 ...
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 ...
2
votes
1answer
237 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: ...
2
votes
1answer
489 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, ...
2
votes
1answer
263 views

Magento2: Order updated_at stored in DB in timezone CEST but delivered/transformed to UTC by $order->getUpdatedAt in Environment “crontab”

we are facing a strange behavior for value of updated_at saved in db table sales_order. Server timezone is CEST, updated_at date therefor is saved in CEST to database. This is validated. Default ...
2
votes
0answers
29 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 ...
2
votes
0answers
288 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 ...
2
votes
0answers
118 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 ...
2
votes
0answers
262 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 ...
2
votes
0answers
64 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 ...
2
votes
0answers
445 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"...
2
votes
1answer
167 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 ...
2
votes
1answer
438 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 ...
1
vote
0answers
31 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:...
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 ...
1
vote
3answers
65 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
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:...
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
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"...
1
vote
0answers
830 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....
1
vote
0answers
86 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 ...
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
0answers
48 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() { ...
1
vote
1answer
594 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:...
1
vote
0answers
161 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
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</...
1
vote
0answers
16 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 '...
1
vote
0answers
260 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 ...
1
vote
0answers
109 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 ...
1
vote
3answers
165 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.
1
vote
4answers
319 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 ...
1
vote
1answer
234 views

“Update.log” size increase all the time

Every body, I got a problem -- My var/log.update.log is keeping increasing. And that cause me lot of trouble. I found this issue and try to stop log by change cron job into: * * * * * /usr/local/php/...
1
vote
0answers
219 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 ...
1
vote
1answer
50 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 ...
1
vote
0answers
95 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\...
1
vote
0answers
185 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/...
1
vote
0answers
376 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. ...
1
vote
1answer
199 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....
1
vote
2answers
687 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
0answers
136 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 ...
1
vote
0answers
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/...
1
vote
1answer
476 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 ...
1
vote
0answers
134 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 ...
1
vote
0answers
54 views

Discount rules between cronjobs at 01:00 and 02:00

By default, Magento has 2 cronjobs that run at 01:00 and 02:00. catalog_product_index_price_reindex_all 0 2 * * * catalogrule_apply_all 0 1 * * * Does this mean that between 01:00 and 02:00 all ...