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
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="...
0
votes
1answer
132 views

Crontab not running

I have a crontab for giftcards that get sent when a delivery date is selected. It doesn't appear to be running. This is in my config.xml: <crontab> <jobs> <...
0
votes
1answer
186 views

Magento 2: How to setup Cron job correctly?

I have read all I could find about configuring the Magento 2 Cron jobs, and this is what I did: crontab -u <myself> -e And then added: */1 * * * * /opt/php/bin/php /web/bin/magento cron:run */...
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.
0
votes
0answers
473 views

New orders are missing from admin when “Asynchronous indexing” is enabled

After enabling Asynchronous indexing new orders are missing from admin and Order Emails too not sending. My cronjobs seems to be working just fine & I also tried to run the cron:run & setup:...
0
votes
1answer
30 views

Cron scheduling frequency issue

I have an issue with a custom cron scheduling on Magento EE 2.1.4. I would like to run my crons every hour. I based my crontab.xml on the "index" cron group in my custom module. Below, my crontab.xml ...
0
votes
1answer
498 views

Cannot get cron.php /cron.sh to run via cronjob

I'm really struggling with the below cron job and any help would be appreciated. I'm running Magento and I'm trying to run cron.php every minute through a cron job. I now understand that you should ...
0
votes
1answer
48 views

When and how clean Magento cache on front server?

My Magento store front server have no routine to clear cache, what result in slow Magento(cause it take to long to read cache files). Front server do not run cron.php, all jobs run over backend server....
0
votes
2answers
205 views

Set up cron Magento 2

I want to Create the cron job, but everytime I do this step crontab -u Magento file system owner user name -e I got an error: must be privileged to use -u. The problem is I don't know what the Magento ...
0
votes
1answer
254 views

Magento 2.1 - cron job runnoing every 2 minutes instead of 1 minute

I created a cron job and set it up to run every 1 minute, but it just runs every 2 minutes instead. I have NO idea what is going on? Any hint on why the cron task is executed every 2 minutes rather ...
1
vote
2answers
408 views

Do CRONs run in the same process?

My problem: I'm trying to debug a CRON that is only hitting maximum execution time exceeded at a certain time. My theory is that it's running in the same process as some heavy Magento CRON process ...
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 ...
0
votes
1answer
286 views

Emails are sent, but cron_schedule table is empty

Magento ver 1.9.2.0 When trying to trouble shoot our custom magento cron task (it's not working) I've realized that our cron_schedule table has not been updated since 2015. Surprisingly all emails ...
0
votes
1answer
408 views

Set cron job to module stock status

Here is great module for stock Status From Enru magento-stock-status but now issue is its works on save action. I want to set it Cron Job. cron job run On Daily basis Kindly let me know how can i ...
0
votes
1answer
554 views

Cronjob is not working in Custom Module

I have configured cronjob in my server and confirmed its working fine. Also I have configured cronjob in my custom module but its not working. Here is my custom module coding for cronjob : config.xml ...
2
votes
2answers
375 views

Error on running Cron Command

I have connected my store with SSH terminal and then I navigated to the root directory of my store where I run the following command */5 * * * * cron.sh But its showing this error: bash: */5: No ...
0
votes
1answer
230 views

Unable to set up cron job in magento 2.1.4. cpanel

I am unable to setup cron job. I have installed Magento CE 2.1.4 and had tried to setup cron job through cpanel. I have used this command for cronjob : * * * * * wget -o -q http://www.domain.com/...
2
votes
1answer
587 views

Magento 1.9.2.1 Cron not working for Order confirmation emails

I am experiencing very weird issues since this morning (up until then everything seemed to work fine). I made no changes to any code or settings. All transactional emails are being sent (newsletter ...
0
votes
1answer
610 views

Magento 2 Cron PHP Parse Error

I'm setting up a Magento 2.1.3 site, first time using M2. I'm having issues setting up my crontab to re-index etc., looking online it seems that it is a fairly common problem although all of the ...
0
votes
2answers
2k views

cron.php problem in Magento 1.9.2.4

When i run cron.php like http://www.YOURDOMAIN.com/PATH_TO_MAGENTO/cron.php on my local server wamp i get a white page which means is runs properly. But when i run on my remote server i get magento ...
0
votes
1answer
615 views

escapeshellarg() has been disabled - cronjob - Magento 2

I get this error after installing Magento 2 and enabling the cronjob. The error appears in the email/logfile of the following cronjob: /usr/local/bin/php -f /home/craftweb/domains/craftseurope.eu/...
1
vote
4answers
320 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
903 views

Magento 2: How to solve the error “ Invalid Document Element cron_expr” while try to run cron?

I've tried to run the cron php -f bin/magento cron:run from the cmd prompt. During this run, I got the following error: [Magento\Framework\Exception\LocalizedException] Invalid Document Element '...
0
votes
2answers
210 views

Cron job issue with indexing

I have set cron for indexing issue. but i have got error in mail. /home/ltfab/public_html/shell/indexer.php: line 1: ?php: No such file or directory /home/ltfab/public_html/shell/indexer.php: line 2: ...
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 ...
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/...
0
votes
1answer
16 views

Refreshing Cache via calling website recursively - useful?

since few days I'm optimizing the performance of our magento (1.9) store. I mounted the var/cache folder via tmpfs with a size of 256MB. Now my question: does it make sense to call the site via wget -...
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 ...
0
votes
2answers
5k views

Error from Updater Application Cron Script: Cron job has not been configured yet

Within the Magento web component wizard, when we try to install extensions, we receive the following error during the Readiness Check: Check Cron Scripts Cron script readiness check failed. Hide ...
0
votes
1answer
707 views

basic product repository save not work in cron - magento2

I tried the below code in custom controller and cron job method [just load and save] after that I felt some issues $product = $this->productRepository->getById(548); $this->productRepository-...
0
votes
2answers
2k views

Automatically cancel magento 2 pending orders after a specified amount of time?

We found that we sometimes run out of stock/inventory due to orders pending payment. Is there a way to "release" those stock/inventory after a specified amount of time, automatically, without us ...
0
votes
1answer
167 views

Magento 2: REST API not returning data for orders using CRON?

I am getting order details using REST API. For this, I have written one controller in my custom module. When I am calling that controller from browser, it's is returning response but when I setup CRON ...
6
votes
1answer
896 views

Magento2 :: Why cron:run, update/cron.php, setup:cron:run needed

In Magento Devdocs for setting up cron it is recommended to schedule 3 seperate scripts * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by ...
0
votes
0answers
171 views

Cron stopped working after setting up multi store on Magento2

On Magento2 with the following setting on cPanel, cronjob was working. /usr/local/bin/php /home/mystore/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/mystore/var/log/magento.cron.log ...
1
vote
1answer
445 views

No crontab for user when trying to set up cronjob in command line

I'm a total newbie here, and I need some help. I'd just installed Magento 2.1.3, and I got this message: "One or more indexers are invalid. Make sure your Magento cron job is running." I've ...
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 ...
4
votes
2answers
5k views

What is the best method to clear logs?

I run with a dedicated Debian server and I wish like to know what is the best method to clear my logs in my database? Currently, I use the Magento cron every 5 minutes. It's work fine and when I ...
2
votes
0answers
446 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"...
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
187 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. ...
7
votes
2answers
4k views

Magento 2: How to set cron for reindex in SSH in magento 2?

I want to know how to set cron for reindexing a particular indexer method in Magento 2. I have used below code to reindex all but not working: * * * * * php –f /shell/indexer.php reindexall Can ...
1
vote
1answer
644 views

Magento 2 Custom cron job is ignored

I have followed the tutorial on Magento dev docs to create a custom crontab. Checking the cron_schedule table and various logs, I can see that cron is successfully running M2 jobs (e.g. indexer, ...
0
votes
2answers
800 views

Status of new Cron is missing in cron_schedule

I am developing a custom module and in that I am using Cron to disable the status of notifications. I have written this code in config.xml <crontab> <jobs> <...
1
vote
1answer
200 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
688 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
0
votes
1answer
619 views

When payment not done automatically cancel the order

I'm using payu for Payment and it works good. When customer place an order, it goes to payu page to fill the details. If the customer don't want to pay, they simply close the window. If the browser ...
7
votes
2answers
3k views

How to set cronjob dynamic schedule from database in Magento 2

I am working on a custom module for Magento 2. I did setup crontab there and it is working good with static schedule. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
134 views

How to configure Email in Magento2.0.7?

I have set cron job but any emails are not send. Below is my crontab. It is running but emails are not send. Suggest me some solution. */1 * * * * /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/...
3
votes
1answer
1k views

Magento 2: Cron job not logging value of Product in log file [SOLVED]

I'm creating new Cron Job. app\code\Custom\Module\Cron\MyTask.php namespace Custom\Module\Cron; class MyTask { protected $_logger; public function __construct(\Psr\Log\LoggerInterface $...