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

3
votes
0answers
8 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
65 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
39 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
23 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
42 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
38 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
1answer
30 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 enter code here<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1
vote
1answer
118 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
29 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
28 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
82 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
18 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
98 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
112 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....
1
vote
1answer
109 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
274 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
68 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
65 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
376 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
25 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
37 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
12 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
20 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
44 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
33 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
308 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
228 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
108 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\...
0
votes
0answers
67 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
60 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
175 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
200 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
48 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 ...
0
votes
0answers
21 views

Aoe_Scheduler Errors when trying to access the module on admin

Installed Aoe_Scheduler and now getting a http 500 error when trying to access the module on Admin. Can anyone help?
-1
votes
1answer
181 views

How can I run a new cron job to clear cache every 12 hours? [duplicate]

How can I run a new cron job to clear cache every 12 hours? Can anyone help?
0
votes
1answer
159 views

i had error while starting the cron job

I had an error on starting cron job. getting this error, now im unable to do anything in magento :( Could not open input file: cron:run n:run my cron job for magento is below, * * * * * /usr/bin/...
2
votes
1answer
294 views

Cron stops running and I have to restart using SSH

Magento ver. 1.9.3.8 In my Cpanel I have 2 cron jobs set to run */5 * * * *. /usr/local/bin/ea-php56 /home/myusername/public_html/cron.php -mdefault >/home/myusername/public_html/var/log/...
0
votes
1answer
121 views

schedule cron on every night at 9pm

I have written job code on crontab.xml <job name="vendor_out_for_delivery_notifiation" instance="Bakeway\VendorNotification\Helper\Data" method="sendPushNotificationForUpcomingOrderCron"> ...
1
vote
1answer
112 views

Magento 2: Cron not working

I have created cron in magento 2 but it run by command not run automatically run at every 5 minutes. file: crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1
vote
2answers
939 views

How can I setup cron job in Wamp Windows? [duplicate]

How can I configure the Magento 2 cron job in Wamp Windows? For upgrade Magento 2 asking cron in Wamp localhost.
0
votes
0answers
34 views

Magento 1.9.3.7 - Email not working

I am working on Magento 1.9.3.7 version. I have a Error log on cron.php page on line: $_SERVER['SCRIPT_NAME'] = str_replace(basename(__FILE__), 'index.php', $_SERVER['SCRIPT_NAME']); $_SERVER['...
0
votes
1answer
167 views

Magento 1.9.3.2 Invalid Cron Expression

hope someone can help because I'm really struggling. My Magento cron is throwing an error: #0 /app/code/core/Mage/Cron/Model/Schedule.php(68): Mage::exception('Mage_Cron', 'Invalid cron ex...') #1 ...
0
votes
1answer
339 views

magento 2: How to edit a cronjob/crontab schedule in the admin backend

I have been searching almost all day and i can't seem to find how i can change a cronjob/crontab its settings/schedule without using cache:reflush after changing the crontab.xml file. This is so I ...
0
votes
1answer
634 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</...
0
votes
1answer
94 views

Magento 1.9: Cronjob notification error

I am getting magento cronjob error for indexing from this week i dont know how to get rid of i tried setting up cron like: sh /home/jsbfurniture/public_html/cron.sh sh /home/jsbfurniture/...
0
votes
2answers
118 views

Extension Migration : Aoe_Scheduler [duplicate]

I'm working on Shop Migration from 1.x to 2.x For Aoe_Scheduler module it seems that there is no M2 version. so what is the best way to get all module's features in my Magento 2 shop: Migrate the ...