Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [crontab]

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

2
votes
2answers
37 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
81 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
27 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
47 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
36 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
24 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
23 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
52 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 ...
2
votes
0answers
27 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
62 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
21 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
28 views

How to run CRON job in magneto 2

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
68 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
43 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
25 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
89 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
41 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
43 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
1answer
224 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
34 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
33 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
125 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
21 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
119 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
205 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
250 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
2answers
458 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 ...
2
votes
1answer
142 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 ...
4
votes
0answers
88 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....
1
vote
0answers
496 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....
0
votes
0answers
27 views

My module cron does not run. Why?

I have configured my module with cron like this: app/code/local/MyModule/MyImport/etc/config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <...
1
vote
0answers
60 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 ...
0
votes
0answers
13 views

Magento2: Cron is not working

I have created cron. The message also success in log file like Ran jobs by schedule. But reindex command is not working using cron. Magento 2.0
2
votes
0answers
15 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 ...
0
votes
1answer
21 views

Magento2 cron job issue - Cron job is not working

How to add cron job setup on the CentOs6 Linux server. Magento 2.0
0
votes
1answer
45 views

Magento 2 how to change customers 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() { ...
0
votes
1answer
39 views

I need to set up the cron job, but I don't know my magento file system owner username [closed]

I am stucked in crontab -u -e because I don't know file user name? How to find it, thanks
1
vote
1answer
418 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
44 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
312 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:...
0
votes
0answers
145 views

How to setup Cron to update product Qty in Magento 2

I have created a controller for update Qty. <?php namespace Vaibhav\Sortby\Controller\Index; use Magento\Framework\App\Filesystem\DirectoryList; class Stock extends \Magento\Framework\App\...
1
vote
0answers
101 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, ...
0
votes
2answers
30 views

Cron Job In Magento

How to run controller action in Cron Job? I am trying to run cron every five Minute, but cron is not working. I put the code below, Please check :- */5 * * * * root wget -O - http://www.example....
0
votes
0answers
66 views

Magento 2 : Corn job is not executing

I have created a module which has a Tests.php file. I wanted to run this execute() method from Tests.php class to be executed once every Day. I have created a Corn job, But it is Not Executing as ...
2
votes
0answers
213 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 ...
0
votes
0answers
214 views

Magento2 : Cron script readiness check failed

I am trying to install the extensions and I am getting following errors. I have already set the crontab as well. Check Cron Scripts Cron script readiness check failed. Hide detail Error from ...
0
votes
0answers
33 views

Magento2: Cron script readiness check failed

I am trying to install an extension on Magento 2.2.4 but I am getting the following error. I have already set the crontab as well. How can I fix this ?
2
votes
0answers
66 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 ...