Questions tagged [crontab]
Short for "cron table". Can refer to the system crontab or Magento's own cronjob management
230
questions
2
votes
2
answers
679
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
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:...
0
votes
0
answers
258
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
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, ...
1
vote
1
answer
639
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
0
answers
53
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
1
answer
30
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
1
answer
157
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 ...
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
...
2
votes
1
answer
7k
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 ...
2
votes
1
answer
441
views
Indexer status (7414 in backlog)
When I run indexer:status from the 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:...
1
vote
1
answer
160
views
How to run CRON job in magneto 2 [duplicate]
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
1
answer
64
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
2
answers
1k
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
2
answers
96
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
1
answer
89
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
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: ...
0
votes
0
answers
136
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
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"...
4
votes
1
answer
3k
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
1
answer
144
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
1
answer
149
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("/...
1
vote
1
answer
2k
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
1
answer
304
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
1
answer
853
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
1
answer
2k
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
1
answer
2k
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 ...
1
vote
3
answers
5k
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
1
answer
976
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
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....
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....
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 ...
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 ...
0
votes
1
answer
117
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
1
answer
75
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
2
votes
1
answer
6k
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
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()
{
...
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:...
0
votes
0
answers
973
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
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, ...
0
votes
2
answers
67
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
0
answers
170
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
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 ...
0
votes
0
answers
425
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
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 ...
0
votes
0
answers
22
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
1
answer
1k
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
1
answer
636
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
1
answer
938
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
1
answer
1k
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">
...