Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cron]

Denotes a question related to the cron system

0
votes
0answers
9 views

Magento 2 - Help on how to run a script on db via cron

I was looking for a solution that would disable products with no images so the catalogue is not randomised by ones that have our image place over. Looks messy. I found this on stackoverflow, which ...
0
votes
0answers
10 views

Magento 1.9.4.0 PHP 7.2 Cron job problems

My settings: Server OS ‪Debian 9.6‬ Plesk 17.8.11 Magento 1.9.4.0 PHP 7.2 When I run schedule task cron.sh I get this: Task "/httpdocs/cron.sh" successfully completed in 0 seconds, output: /httpdocs/...
0
votes
0answers
8 views

Magento 1 cronjob -mdefault not working -malways does work well

We have a strange issue on our Magento 1.9.4.0 store. Only the -malways cronjob are working fine and trigged. The -mdefault crons are not running and keeps pending in the store. Anyone a idea how we ...
0
votes
0answers
11 views

how to setup cron job in magento 1.9 in localhost

I am a beginner to Magento. I am struggling to run my custom module for every regular intervals of time. I want to run cron job in my Magento site. Please give me complete knowledge about this.
0
votes
1answer
32 views

Magento 2.2.3 Cron job won't run. Status is missed. One is stuck in running. How to fix?

I am having an issue with my Magento 2.2.3 using PHP 7.1 My cron jobs are set as follows: 9,24,38,52 * * * * /usr/local/bin/php /home/website/public_html/update/cron.php >> /home/stebbins/...
1
vote
1answer
77 views

Magento 2.3 PHP Parse error unexpected '?' in write.php

I want to Install cron with putty SSH. I use php bin/magento cron:install [--force] and get this error: PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /www/...
0
votes
2answers
45 views

Error when reindexing

when I use php bin/magento indexer:reindex or php bin/magento cron:run I keep getting this error. Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/[NAME]/...
0
votes
0answers
38 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
3answers
127 views

Crontab Magento or Crontab System?

I have a question, magento uses a cron own or uses the cron of the same operating system? And how could I configure it to make a cron of a specific module? In my case I want to export every "x" time ...
0
votes
0answers
18 views

Magento 2 : Does magento have a standard way of painlessly making and running scripts?

Does magento natively has support for writing scripts, and running them from terminal or cron jobs? Can symphony console component bundled with magento be used to run custom commands to run scripts ...
0
votes
2answers
30 views

Transactional Emails not sending [duplicate]

I am having an issue with transactional emails on Magento 1.9. Order confirmation emails are not sending. Can anyone help?
1
vote
0answers
14 views

cataloginventory_stock_status randomly has missing entries

What could cause cataloginventory_stock_status to have missing entries I have to fix manually? It makes the product appear out of stock even though it isn't. I've tried replicating by flushing, ...
1
vote
1answer
216 views

Cron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted

I have getting this error in magento 2. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 28672 bytes) in /home/www/public_html/website.com/vendor/composer/composer/...
1
vote
1answer
28 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 enter code here<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
17 views

Magento 2. What is the recommend way to disable a core cron job?

Magento comes with it's own cron jobs. What is the recommended/cleanest way to disable on of such crons? I could do a rewrite of the worker class but I'm guessing there is an easier way. Any pointers ...
0
votes
0answers
28 views

require_once app mage php not found in external file

I am using following code in external file. <?php require_once('../app/Mage.php'); //require_once($_SERVER["DOCUMENT_ROOT"] . '/app/Mage.php'); umask(0); Mage::app(); Mage::app()->...
1
vote
1answer
58 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, ...
0
votes
1answer
33 views

Magento 1: How cron jobs works in magento?

I am little bit confused with the Magento 1 cron jobs. I am creating a custom module and I need to sync data in third party API with cron. Firstly I set up a cron job on my server like this: */5 * * *...
1
vote
1answer
27 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
1answer
24 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("/...
0
votes
1answer
24 views

Emails are not sending

Recently I setup Magento. I tried signing up as an user and buying a product, however, I see no emails are coming through to the customer when the order gets processed or when a user tries to reset a ...
0
votes
1answer
58 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
1answer
42 views

Import product CSV to magento using cronjob

I want to update my products csv to Magento 1.9.0 using cronjob. so someone can please tell me appropriate code script, please. because I want to set it using the cronjob Thanks in advanced.
0
votes
1answer
28 views

cron Scheduler requests remains in pending , eventually site crashed why?

Hi we have a site on magento 2.2 version , the site usually goes down for about 3 to 4 minutes after within every 4 or 5 hours , than goes up when cron scheduler finishes it job . when we dig in ...
0
votes
1answer
30 views

Magento need cron job? if i remove cron

I have a question. Magento need cron job? if i remove cron can it work normally? Because cron make our site so slowly. we already setting 1 hour delete from cron_schedule. Thank you!
0
votes
0answers
16 views

Magento 1.9.3.8 problem with folders permission

I have magento installed in a cloud server and folder public_html/. Some days ago because the permissions of the files was a messed up I used Magento's instruction's to set permissions from the ...
-1
votes
0answers
31 views

How configure cron by config_path?

I have following code: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <group id="default"> ...
0
votes
0answers
18 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
0answers
20 views

Magento 1.8.1 Product Stock alert emails not sending

The Product Stock Alert emails are not sending. Other emails such as new membership and password chages are sending Cron appears to be working - the "catalog_product_alert" job is scheduled and ...
0
votes
1answer
71 views

Magento 2: How to Call a Console Command from a Custom Cron job?

I'm working on a custom Cron and I want find the best way to call other commands from the Cronjob code in magento2 (programmatically). For example: When running cli "php bin/magento cache:clean" and ...
0
votes
0answers
16 views

Understanding the execution of cron.sh in magento 1

I am working on magento 1.9 i am trying to understand code in cron.sh Please see the following code from the cron.sh if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then if ! ...
0
votes
1answer
60 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
1answer
32 views

Access forbidden issue in cron execution magento 1.9

I am new in magento 1.9 . I want to run a cron job . I have added the required code in config.xml and make a php file in model folder .I want to run the cron on local host xampp windows. When I run ...
0
votes
2answers
21 views

Magento 2: Cron configuration error?

Every time the cron runs it logs this error: [Magento\Framework\Exception\LocalizedException] Invalid Document Element 'group': Missing child element(s). Expected is ( job ). Line: 24 cron:run [-...
0
votes
0answers
29 views

Send all emails with cron/queue

I'm using magento 1.9.3.6 and I've read that from magento 1.9.1 supposedly all emails were going to be queued, however only the order/invoice/order-update emails appear affected. I can't find an exact ...
0
votes
0answers
35 views

Cron send mail problem

I meet a problem when using cronjob send an email. My code: public function sendMailCancel($order){ if($this->_state->getAreaCode()== \Magento\Framework\App\Area::AREA_CRONTAB){ $...
1
vote
2answers
46 views

How to capture a \Magento\Framework\Exception\NoSuchEntityException in a module

I have set up a cron job in a custom module in which reads from a XML file, search the product by Sku and then update prices. The problem is that even when i catch the exception of Magento\Catalog\...
2
votes
1answer
33 views

Inside admin when i click on system i'm throwing an error on m2 2.2.5

I've tried to change the ID name but it did not work. 1 exception(s): Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists Exception #0 ...
0
votes
0answers
31 views

Debug cron script with n98-magerun2

I'm trying to debug a cron script using N98-magerun2. I used this tool to do this several times with satisfaction, but since today I'm no more able to debug. It stops here n98-magerun2.phar:4, {main}(...
0
votes
1answer
111 views

Magento 2 : Schedule Status : suspended

I'm on Magento 2.2.4 with php7. I have a cron job already set that reindexes it all twice a day. I usually also reindex manually and when i see a suspended index I reset it. But, when I do reindex:...
1
vote
1answer
44 views

Magento 2: Question about set reindex (update on schedule or update on save)

I have a script that is responsible for automatic updating of states with an external storage (automatically adds products and automatically updates states) every 15 minutes. How to set index? Please ...
0
votes
0answers
22 views

Store emulation issue

This is my code: foreach ($collectionData as $index => $data) { $appEmulation = Mage::getSingleton('core/app_emulation'); $initialEnvironmentInfo = $appEmulation->...
1
vote
1answer
70 views

Magento 1.9 cron timeout 240 seconds

I got a cron job which creates products. There are many products, so the cron runs more than every 4 hours. I create my products in batches of 250 and with paging. If I create every batch/page single ...
1
vote
0answers
120 views

Magento Cron throws error after upgrade from 1.9.1.0 to 1.9.3.10 with php 7.2

Upgraded multistore Magento from 1.9.1.0 to 1.9.3.10 to be compliance with PHP 7. But now, if I turn on cache for Configuration https://monosnap.com/file/QcFj8vBFIpp3JhBZtDItE83P01AHNp# Cron.php ...
1
vote
2answers
45 views

Why do you have to stop Magento 1 cron jobs during migration to Magento 2

I am preparing for migration from Magento ver. 1.9 to Magento ver. 2.2. I am trying to fully understand the process and wondering what are the reasons that you have to stop the cron jobs? All the ...
4
votes
0answers
57 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
1answer
111 views

Send custom email by using cron job magento2

I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details. I am new to Cron jobs so can you please explain it. Thanks in advance
1
vote
0answers
286 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....
0
votes
1answer
62 views

Magento 2 - Delete Product Images Configurable Product

I seem to have an issue deleting all images programatically from configurable products. I know the bad practice way that works fine on simple products $imageProcessor = $objectManager->create('\...
0
votes
0answers
43 views

Magento 2: set cron job result programmatically

I configured a cron job in the correct way, it works fine. But now, I would like to print error in the "status" column and my error message in the "messages" column of the 'cron_schedule' table ...