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
1
vote
0answers
196 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
254 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
471 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
839 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
1k 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
254 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
1k 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
697 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
4k 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
137 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/...
4
votes
1answer
2k 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 $...
1
vote
1answer
2k views

Magento 2: Cron job not Calling Function [SOLVED]

Running Magento 2 on my local WAMP Windows 10 I'm following below 2 Tutorials [1] https://www.atwix.com/magento-2/setting-up-cron-jobs/ namespace Custom\Module\Cron; class MyCronTask { public ...
1
vote
0answers
192 views

Currency Rate cron job doesnt work

Since most people were having problem with Webservicex of Magento 1.9.2, I am using the Fixer.io to update my currency rates. When I do it manually it works like a charm and I have enabled the ...
0
votes
1answer
219 views

Why do I have 13 different Cron.php and what do I do with them?

I have 13 different Cron.php files in several different folders. All of the issues I'm having on Magento seem to be related to cron jobs. Cron job is running, but it doesn't do anything it's supposed ...
0
votes
1answer
101 views

Cron not running even after re-configuring

I have an extension that I use for feeding information to an ftp. this extension uses cron to send the feed to the ftp. but now the problem is that there is no heartbeat detected and the crons are not ...
0
votes
2answers
788 views

Unable to execute cron.php via SSH nor CRONTAB

I recently hosted my website using Magento, upon setting up my cron.php i get the following output : /home/xxx/webapps/abc/cron.php: line 1: ?php : No such file or directory /home/xxx/webapps/abc/...
2
votes
1answer
3k views

Magento 2 Cronjob plesk [closed]

I've tried to add the cronjobs for Magento 2 with the Plesk panel. But it doesn't work. Have anyone experience or a solution? PS.: Magento 1 was a little easier, only run the cron.php and it works. ...
0
votes
1answer
1k views

I am having massive trouble setting up a cron job in Magento 2

Sorry if this has already been answered, but I have looked around and have been unable to find the help, I've followed countless tutorials etc, just can't get my head around it. So I have a Magento 2....
0
votes
1answer
488 views

component manager gives the error that cron jobs has not been configured yet

I reindexed the indexers running the following commands: php ./magento cron:run php ./magento indexer:reindex and the reindex was performed succesfully Bt when I open ...
1
vote
0answers
2k views

Magento 2: Cron logs not generated

Below cron setting worked in Magento 2.0.1 (fedora 22) $ crontab -u www-data -e */1 * * * * /usr/bin/php -c /etc/php/7.0/apache2/php.ini /var/www/public/bin/magento cron:run >> /var/www/public/...
4
votes
4answers
2k views

Magento 2 set store_id and website_id in crontab

I have written cron to crate customer, but while running code through cron, I am getting error as A customer website ID must be specified when using the website scope code to get website id: $...
1
vote
1answer
5k views

Cron not running

For some strange reason my cron jobs are not running anymore the last 24H in Magento 1.9.2.4 Cron jobs on the server are running well, without any problem. Trying to run https://www.domain.com/cron....
0
votes
1answer
122 views

Cron not working on one Magento install

I'm trying to use the below code which is based on another install which works fine. I'm at a loss as to why this wouldn't work. /opt/plesk/php/5.5/bin/php -f /var/www/vhosts/gsworkwear.backup.com/...
0
votes
1answer
623 views

Magento Setting Up Cron “cron.sh: line 26: $'\r': command not found”

Recently i setup a fresh install of Magento 1.9.2 upon configuring cron i get the following error when i try to execute bash /path/to/my/magento/root/cron.sh ERROR :cron.sh: line 26: $'\r': command ...
1
vote
1answer
1k views

Cron.sh error: PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'pdo_mysql extension is not installed'

The problem occurs in a Magento 1.9.2.4 installation (upgraded from 1.7.2 and then migrated to this new VPS) Trying to run the cron.sh on a centos VPS (DirectAdmin Controlpanel) This is returns the ...
0
votes
1answer
55 views

Crontab creation failure Magento 2

I am running Magento 2 on MAMP using PHP 5.6.10 and following this tutorial to create the crontab. Magento 2 Setup with Crons When I type sudo crontab -u Phil -e and enter the following... */1 * * *...
2
votes
1answer
314 views

update product inventory and and price by attribute

I need to write a cron job to update my products inventory and price hourly. The variables are these. I have 6000 products with their own IDs which my accounting system uses (not magento). These ...
0
votes
1answer
321 views

Retrieve cronjob_code or other params like schedule info of a cron job inside a cron function? [duplicate]

If cron_job() is my function running the cron job function cron_job(){ // I would like to get the current job_id or the cron schedule model here } Is there any way to retrieve this data in ...
0
votes
2answers
3k views

Magento 2 cron job not re-indexing products as expected

My problem is Magento 2 doesn’t automatically index as I expect from the cron job. I currently have to SSH in and re-index using php bin/magento indexer:reindex , which is fine for me but not for my ...
1
vote
1answer
531 views

Order Emails Marked as sent but not received

Copied the below question from another forum. Has anybody been able to solve this? My cron is set up and is working. Emails marked as sent in back end but is being queued in core_email_queue. Spent 7 ...
2
votes
1answer
8k views

Auto-generated sitemap.xml on 1.9.2

I have a problem with the auto-generation of my sitemap. I did everything I have written below. I created a sitemap through Admin > Catalog > Google Sitemap option I made the auto-generation setup ...
0
votes
1answer
1k views

Send Custom Email through cron job

I want to send an Email through a cron job. Once the Seller adds new product Customer (Store Followed) I get a mail is working fine. But if for each new product customer will gets a mail then how can ...
4
votes
3answers
6k views

Magento 2: how to use a configuration field for the crontab expression?

In Magento 1, instead of declaring the cron expression directly like this: <crontab> <jobs> <vendor_module_cron> <schedule>*/30 * * * *</schedule&...
0
votes
2answers
351 views

use of cron - magento 2

I have configured the cron by refering this link, yes I have successfully configured. now I can able to see newly created three cron logs file they are magento.cron.log, it is logging like Ran jobs ...
4
votes
1answer
2k views

Magento cron jobs are not scheduling in the cron_schedule table

I have cron task in my custom module for sync data. Below is the code in my module config.xml <config> ------- <crontab> <jobs> <tal_intermediate_cron_product&...
0
votes
3answers
924 views

Is there any way to run core_email_queue_clean_up without having to send all emails in the queue?

I probably run into this issue once every other month. We inherit a website from a client that is all up to date on its patches (1.9.1 and up), but cron was never set up. As soon as we set up cron, a ...
1
vote
0answers
137 views

Are there any creative solutions for launching cron.sh for multiple Magento stores in a distributed architecture?

At the company I work for, our architecture is set up in such a way that we have hundreds of Magento stores, and a variable number of application servers (behind a load balancer), but only one ...
0
votes
2answers
5k views

how to set cron.sh for magento using ssh

I am weak in server handling I want to know to to set crontab to start cron.sh for my magento website. when I run command crontab -l I get output no crontab for root i tried editing /etc/...
0
votes
1answer
2k views

Check Cron Scripts

Hello I have an issue with Magento 2.0.2. When I tried to install extensions, it is stuck on Readiness Check and one thing more it is also giving me one or more indexer is invalid please make sure ...
7
votes
7answers
28k views

How to make sure your Magento 2.0 cron job is running

How do I make sure my Magento cron job is running? I setup cron per the Magento 2 installation instructions for the log files. See screen shot (click to enlarge): I am running Magento CE 2.0.2 ...
1
vote
1answer
458 views

Transactional Emails are instant OR they are based on cron file?

I have a magento website setup and development is also almost completed, but i am bit confused about transactional emails. If a customer buy something from my webiste, does magento sends the email on ...
0
votes
1answer
203 views

Smush.It Cron How to enable [duplicate]

I have just installed a Magento extension for Smush.it and image optimization extension however when I go into the tool, it tells me that The Magento CRON is not set up. Please set up your Magento ...
5
votes
3answers
1k views

Magento Cron is not run on windows

I want to run the cron job on magento, but the cron events are not appeared. This is my etc/config.xml file. <crontab> <jobs> <imagerecycle_imagerecycle> &...
1
vote
2answers
4k views

How to run a specific cron job in Magento2

How can I run a specific cron job code in Magento2 instead of running it by group.
0
votes
1answer
394 views

Cron jobs not being called, getting email notification errors

I've been having a hard time getting my cronjobs working for my new magento 1.9.2.3 install. I added a mailto along with my cron call in crontab and i've been getting back error messages like this: ...
3
votes
0answers
733 views

Cron generating a lot of process causing the server to hang (Magento 2.0.2)

I have a VM running ubuntu with no problem: Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st ...
1
vote
2answers
2k views

Cron.php/Cron.sh Not being called/Manual only - Permission problem

Yes I know another Cron problem with version 1.9, but I honestly have looked through so many posts here and on Mage Forums and I have gotten nowhere. So I have gone into my Cpanel (Magento 1.9.2.2) ...
0
votes
1answer
1k views

Error running cron in magento

Noticed in our error_log file is showing this below [09-Feb-2016 16:55:02 UTC] PHP Notice: Undefined index: SCRIPT_NAME in /home/USERNAME/public_html/cron.php on line 40 [09-Feb-2016 16:55:02 UTC] ...
8
votes
5answers
18k views

Magento 2 cron not working

*/1 * * * * www-data php /var/www/magento-2/bin/magento cron:run */1 * * * * www-data php /var/www/magento-2/update/cron.php */1 * * * * www-data php /var/www/magento-2/bin/magento setup:cron:run ...