Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2
votes
1answer
265 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
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....
1
vote
0answers
833 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 ...
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 ...
0
votes
1answer
47 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
49 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
48 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
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
598 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
331 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
162 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
35 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
96 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
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 ...
0
votes
0answers
277 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 ...
2
votes
0answers
119 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
371 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?
1
vote
1answer
339 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
521 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
286 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
188 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
2k 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
1answer
264 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
761 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 ...
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</...
0
votes
1answer
118 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
161 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 ...
1
vote
0answers
492 views

Fatal error: cron install error

i'm getting this cron install error, how can i fix it?thankyou!! php bin/magento cron:install --force Fatal error: Uncaught Error: Call to a member function getMessage() on null in /home/XXX/...
1
vote
1answer
163 views

Please help me troubleshoot why Magento2 Cron just won't work

Why we simply cannot get the CRON to run on Magento2 (2.2). The Crontab is below. The Cron_Schedule database table only ever populates if we trigger the Magento Cron manually from the CL. * * * * * /...
0
votes
1answer
31 views

Crons not reindexing the indexer after setting all

I checked the crontab and it is showing me the correct entries. link I checked the cron_schedule table and it is creating and scheduling indexers. link I checked the bin/magento indexer:status and it ...
1
vote
1answer
270 views

Cron job permission issue?

crontab.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <...
0
votes
0answers
206 views

Magento 2: How to override the crontab.xml of CustomModule1 from CustomModule2?

How can I override the crontab.xml of CustomModule1 from CustomModule2? I know that if it was a Magento module from vendor I could just use the same path on app/code to override it, but I need a way ...
0
votes
2answers
494 views

Magento2.2.0 cron not running

I have a magento2.2.0 based website and I am trying to get the cron jobs running. Used Ubuntu server with no control panel (AWS EC2 hosting). So, I ssh'ed into the instance and went to sudo crontab -...
2
votes
1answer
270 views

Session is not working in cron file

namespace send\sms\Cron; use Magento\Framework\ObjectManagerInterface; class Run /*extends send\sms\Controller\Customr*/ { public function execute() { $om = \Magento\Framework\App\...
3
votes
2answers
2k views

Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are running

im running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install i dont customize any configuration regarding schedule of cronjobs. after running the machine a ...
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
1answer
114 views

Reset overlay button (cronjobs)

Inside System > Scheduler > Job Configuration: then you click on a specific cronjob. What does the button reset overlay do inside that panel? Magento ver. 1.14.1.0
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 ...
0
votes
1answer
487 views

Run specific class function using cron in magento 2

We can run model/observer function using cron as below in magento 1: <crontab> <jobs> <CronCheck> <schedule> <cron_expr>*/15 * *...
0
votes
1answer
601 views

Recommended Magento cron frequency and setup

All over the internet, there is a variety of suggestions for how often a cron should be run, without any real suitable explanation. Thus, I was wondering if anyone could help myself identify 'ideal', ...
0
votes
0answers
30 views

Can i have double crontab jobs?

I can't really find an answer to this anywhere. My problem is that i want to have my cron job running from 6-22 every monday, tuesday, wedensday, thursday and friday. On saturday i dont want it ...
2
votes
1answer
315 views

Cron job on specific time not working

I've written a custom module and this module has to run every day at 12:30 AM. I've written a cron job and in the schedule I've update as follows: <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
26 views

Two models cant find one of them

I have two models. The one is intializing the database, the other one i use to run a crontab. But i keep getting this error. Been playing around with it for a long time.. 2017-11-29T08:56:03+00:00 ...
2
votes
1answer
56 views

Deleted cron lock files makes the magento unresponsive

We truncated the table core_url_rewrite and deleted the files in var/locks/*. What happened next is our server keeps using high CPU usage. See the high CPU usage below: I restarted apache and it ...
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 ...
14
votes
2answers
3k views

How to create custom Module Development in magento 2 from Scratch?

How to create Custom Module Development from scratch in magento 2 with following point. 1.How to Create Module 2.How to Install and Upgrade Database 3.How to Create Module,view and Controller ...
0
votes
1answer
5k views

Magento2 how to check if cronjobs are correctly set?

I'm pretty sure my cronjobs doesn't work properly. All catalog rules that I created are resetting every day. I checked the cron_schedule table in my db and its empty. Is there a way to test or check ...