Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

Magento 2 CRON JOB

I want to separate newsletter from other jobs, creating new custom cron_group with the job for sending newsletter emails will do the thing?
1
vote
1answer
38 views

Magento 2 independent cron job queue

Sending newsletters via cron job queue, blocks sending important emails to the customers, is there a way to make independent cron job queue which will be run only if core queue is empty or something ...
1
vote
0answers
500 views

Cron deleting expired quotes

Magento has a cron job for the deletion of expired quotes which hasn't changed since the first version I got in touch with, i.e. 1.6. The cron job is located in Mage_Sales_Model_Observer::...
3
votes
1answer
730 views

How to disable “Cron Job” logging into system.log file in Magento 2

My logs are being flooded with cron jobs updates. How can I disable this? [2019-02-27 06:28:02] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2019-02-27 06:28:02] main....
1
vote
1answer
49 views

Why are there 3 cronjobs that needs to be added to crontab

Starting from the official documentation: https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-cron.html#create-the-magento-crontab Somewhere in there is this... that ...
0
votes
0answers
117 views

Indexer status and backlog

When I run indexer:status from command line to look at the status of my indexes i notice some are like this: | Catalog Product Rule | Ready | Schedule | working (7414 in backlog) | 2019-02-19 01:37:...
4
votes
1answer
36 views

Magento 1.9 cron running, but stops on one method

I have a small bug and have no clue where or how to debug. I have one cron task which runs on production but stops or stuck always on one method. On local env it works like a charm, but on prod not. ...
0
votes
1answer
29 views

How to check if extension has cronjobs and start them?

I installed the extension algolia search. But I think its cron job is not running anymore since we moved to another hoster, the term "algolia" is not in the Aoe-Schedueler List. How can I check if ...
1
vote
0answers
19 views

Cron dosen't sending newsletter

I run manually cron via cron:run first I got the error that email address isn't valid when I correct that, now in cron.log I don get nothing about newsletter sending, I don't receive the email either. ...
2
votes
2answers
26 views

how to pass cron job result to a controller controller

I need to filter products based on 3 attributes and display those attributes to storefront, I've about 25000 products, so filtering them in each request takes 20 seconds. I thought about creating a ...
2
votes
1answer
91 views

Crons not working in Magento 2.2.6

I am using Magento 2.2.6 with a theme. www.rbhomoeoshop.com The store is using rule to offer x amount of discount on each and every product. There is no condition for discount. after every 2 or 3 ...
1
vote
1answer
115 views

Magento 2 - Need cronjob output

I am developing a new cronjob, since it is in development phase I want to check the output of cronjob after every edits. Right now I am creating a log file at the end of cron, and I am executing cron ...
1
vote
2answers
385 views

Get products collection in cronjob

I have a cron file like Col.php. I want to get products collection in my cron file. code in my file: public function execute() { $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
2answers
179 views

How to automatically run custom module CRON only?

I've to insert/update/delete some data in my custom tables in each 6HR. so i'm using a custom module with CRON and in that module i've written script to insert/update/delete the things. So for ...
0
votes
0answers
27 views

Cron Jobs Not Running

I'm having trouble configuring cron jobs for a client's website. The person working on it previously setup these cron jobs (MAGENTO v2.1.8 CE) : /usr/local/php70/bin/php-cli /home/XYZ/public_html/...
1
vote
2answers
46 views

How to set cron job periodically in magento?

I have below cron job code. Currently, it is running for every 30 minutes. <job name="customer_details" instance="my_file_name" method="my_method"> <schedule>*/30 * * * *</schedule&...
2
votes
1answer
192 views

Magento 2.2.5 - 2.2.7 excesive cron logging in system.log

Magento 2.2.5 brings excesive logging to system.log which can grow up to 100 - 150 MB in 1 month. This will obviously be a problem for many shops. There is an official response to this on github (...
1
vote
2answers
124 views

cron error Cannot instantiate interface magenot 2

I'm getting the following error on magento cron execution: Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Lock\LockManagerInterface in /home/mywebsite/public_html/vendor/...
2
votes
1answer
227 views

1.9.2 catalog price rule - Cron not working.. Discounts disappear

Applied Catalog price rules but they are being removed within 24 hr period. So far I have; *added end dates to rules *re-indexed *flushed cache *change time zone code (as per other posts suggestions) ...
1
vote
0answers
31 views

update.log so big

I'm using 2.3 one day my update.log will be 1gb ago. and i open this file showing this message. how can i fix it,thank you! [2019-01-31 17:00:02] update-cron.ERROR: Cron readiness check ...
0
votes
1answer
429 views

Magento 2.2.3 cron Errors how to solve?

we are running website Magento 2.2.3 CE version. We are getting an error in cron.log please advise? cron.log Warning: require_once(/srv/public_html/update/vendor/autoload.php): failed to open ...
0
votes
0answers
14 views

Cron job to remove unwanted report files

There are lots of invoice pdf files that gets created in magento2/var/ path in my site. Is there a way to remove these files on a weekly basis by running a cron job. This will help reduce so much ...
0
votes
0answers
25 views

Mage::getSingleton('adminhtml/session')->addError() in cron

Is there a way to show message in admin inside job started in cron? Code below doesn't work. Mage::getSingleton('adminhtml/session')->addError($msg)
0
votes
0answers
13 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 ...
2
votes
1answer
219 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: /...
0
votes
0answers
14 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
36 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
972 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/...
2
votes
1answer
922 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
134 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
50 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
162 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
19 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
188 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?
2
votes
1answer
217 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
496 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
2answers
73 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 <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
2
votes
0answers
99 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
310 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()->...
2
votes
1answer
500 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
44 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
49 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
46 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
25 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
382 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
277 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
151 views

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

Our a magento 2.2 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. In this database... select count(status) from ...
0
votes
1answer
33 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
55 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 ...
0
votes
0answers
34 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 ...