Questions tagged [crontab]
Short for "cron table". Can refer to the system crontab or Magento's own cronjob management
230
questions
2
votes
0
answers
70
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 ...
2
votes
1
answer
287
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
1
answer
29
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
0
answers
239
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
2
answers
6k
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
1
answer
2k
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
1
answer
4k
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
1
answer
306
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 ...
7
votes
1
answer
1k
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
0
answers
182
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
1
answer
789
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
1
answer
53
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 ...
5
votes
2
answers
7k
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
0
answers
695
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
0
answers
268
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
0
answers
267
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
0
answers
648
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
2
answers
5k
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
2
answers
1k
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
2
answers
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
1
answer
288
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....
2
votes
2
answers
2k
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
1
answer
762
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
2
answers
5k
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
1
answer
142
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
1
answer
4k
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
1
answer
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
0
answers
247
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
1
answer
238
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
1
answer
111
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
2
answers
806
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
1
answer
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
1
answer
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
1
answer
494
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
0
answers
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/...
5
votes
4
answers
4k
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
1
answer
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
1
answer
132
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
1
answer
660
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
1
answer
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
1
answer
57
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
1
answer
471
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
1
answer
440
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
2
answers
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
1
answer
545
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
1
answer
9k
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
1
answer
2k
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
3
answers
10k
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
2
answers
368
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
1
answer
3k
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&...