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
2answers
4k views

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

I am running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install I don't customize any configuration regarding schedule of cronjobs. after running the ...
1
vote
0answers
18 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
151 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
281 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
643 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
888 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', ...
2
votes
1answer
598 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
33 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
72 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
141 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 ...
15
votes
3answers
6k 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 ...
2
votes
1answer
13k 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 ...
6
votes
3answers
2k 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
154 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
196 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
183 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
1answer
901 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
35 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
529 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
93 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
289 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
509 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
723 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
325 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
365 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
556 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
625 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
495 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
251 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
996 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
690 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
3k 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
960 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
396 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
1k 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
230 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
69 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
1answer
281 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
21 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
236 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
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
1answer
1k 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
3k 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
218 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
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
0answers
178 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
586 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
51 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
2answers
6k 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
571 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"...