The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
1
vote
2answers
117 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
2answers
148 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
469 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
795 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
587 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
57 views

how to remove item from cart after 10 Minutes using cron job

i have tried to delete item from cart after 10 Minutes but it does't work ` $productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')->...
1
vote
1answer
245 views

Magento 2 after x days of order place , need to send new email to the customers

Magento 2 - How can I send new mail to customer, if any order has been placed by banktransfer and more that 7 days since order placed. I need to send mail using Crons. This is my code: <?php ...
0
votes
1answer
93 views

Magento2: error cron log

I have found any issue in magento.cron.log Warning: proc_open(): fork failed - Resource temporarily unavailable in /home/czasowe/domains/czasowewyprzedaze.pl/public_html/vendor/symfony/console/...
0
votes
1answer
247 views

Calling helper functions from within cron job file

I am trying to run tests on helper functions, so I created a cron job to test them. I have already verified that the cronjob itself is set up correctly (it is running when I have simple logging ...
1
vote
0answers
82 views

Schedular Error Invalid callback

I have added a one schedule task for reindexing. I have used the same code given here. But whenever I added this module in scheduler it gives error like Invalid callback: Model for ...
1
vote
0answers
54 views

Emails not sending, Cron Working

I have a problem with emails not sending I had a problem with cron yesterday 'No heartbeat task detected' and solved it by amending the cron.php file as directed by the xtento site by adding $...
0
votes
1answer
293 views

Cron not working, No Heartbeat task found Check if cron is configured correctly

non of my scheduled talks are working, no emails are being sent. in System> Scheduler I get an error message No heartbeat task found. Check if cron is configured correctly AS far as I can tell ...
1
vote
1answer
307 views

I am getting error running this command php bin/magento indexer:reindex

I am getting this error while running this command.php bin/magento indexer:reindex here is the error PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /opt/lampp/htdocs/magento2.2....
1
vote
1answer
54 views

Setting the Indexer Scedule when using “Update by schedule"

I understand that using Update by schedule refers to the cron schedule for timing, when changing the Mode under Index Management. But I require some clarification. M1 In M1, you would set the ...
0
votes
1answer
49 views

Magento 2 how to change customers group based on order status with cron jobs

If customer order status is pending and more than 30 days, how to change customer group to wholesale in CRONs? CRONs should run at every one minute. This is my code public function execute() { ...
0
votes
1answer
46 views

I need to set up the cron job, but I don't know my magento file system owner username [closed]

I am stucked in crontab -u -e because I don't know file user name? How to find it, thanks
2
votes
1answer
26 views

Get user by email or return null in cron

How can i get user by his email, or return null if not found? I need to do this in cron. This code works $CustomerModel = $objectManager->create('\Magento\Customer\Api\...
1
vote
1answer
957 views

Cron job error SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

Suddenly and without reason, I get error via the mail concerns a cron job that could not be executed. Here is the report : *[Magento\Framework\DB\Adapter\DeadlockException] ...
0
votes
0answers
351 views

Magento1: max_execution_time problem

For some reason we face a max_execution_time error of 60 seconds, when running some cronjobs. Already checked php.ini file and both local and master value of max_execution_time are set to: 220000. ...
0
votes
1answer
45 views

Magento CE 1.9 Script for setting stock

I need a script that will check all magento products and set them to instock if the qty is greater than 0. The plan is to run this as a scheduled cronjob so that it will be checking for any products ...
1
vote
2answers
914 views

Cron job is not running automatically

I am trying to implement cron job to write a log file with 1min interval. I have an issue while doing the same. I notice that cron job is not running automatically. Each time when I run "PHP bin/...
1
vote
1answer
655 views

Magento 2.2.5: Error on cron:run after every production deployment

Since we upgraded Magento to 2.2.5, after every deployment to production (which includes git pull..., composer update & all other relevant Magento CLI commands for production deployment), our ...
1
vote
0answers
40 views

CRON Issues Since Upgrade to PHP 5.6

we have a live magento 1.8 site which has been running fine until recently, where we were unable to send emails via Sparkpost - this was identified as being an issue with TSL1.0. we have forced ...
0
votes
2answers
220 views

Cronjob not working(custom module) in windows in magento2

I have set my cronjob code and i am running command php bin/magento setup:cron:run --group="customgroupname_cron" but getting below error [Symfony\Component\Console\Exception\RuntimeException] ...
0
votes
1answer
120 views

What is the cron job that cancels the expired orders? Magento 1.9

I know that magento has cron jobs by default for specific tasks, I need the cron job to cancel unprocessed orders that have a time greater than 48 hours. Please help me
1
vote
1answer
45 views

Every time I am running cron:run command than cron is working in magento 2

I have set cron in index group its working fine but every time i am running cron:run command. crontab.xml <?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights ...
0
votes
0answers
300 views

How to setup Cron to update product Qty in Magento 2

I have created a controller for update Qty. <?php namespace Vaibhav\Sortby\Controller\Index; use Magento\Framework\App\Filesystem\DirectoryList; class Stock extends \Magento\Framework\App\...
0
votes
1answer
524 views

Magento 2: Reindex script does not work with cronjob

Ok, true desparation here. Since the reindex via default cron simply does not want to work (Reindex gets scheduled by cron but never executed) I decided to create a separate cron just to trigger the ...
1
vote
1answer
540 views

Reindex gets scheduled by cron but never executed

For magento 2.2.4 my cron.sh looks like this (crontab is not available in this environment): #!/bin/bash PHP_BIN=`which php7-71STABLE-CLI`; DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && ...
1
vote
1answer
739 views

Cron readiness check failure! Found non-writable paths - for non-existant directory

In ver 2.2.5 of Magento CE, var/log/update.log contains errors similar to: update-cron.ERROR: Cron readiness check failure! Found following non-writable paths: /unqualified-path/magento2/.github []...
0
votes
1answer
115 views

Product alerts cron warnings

Very recently I had to perform a minor upgrade on an extension (eBizmarts Mailchimp) in my Magento 2.1.7 installation. It went smoothly, as usual, even though it is terrifying to do this for fear of ...
1
vote
0answers
155 views

Create Order programatically, not working via cron

I am working on to create order programatically using cron. If run this cron using n98-magerun2.phar plugin its works fine. sudo -u www-data ./n98-magerun2.phar sys:cron:run "cron_name" But, ...
1
vote
1answer
117 views

Magento cron or mysql event scheduler which one is best based on perfomance?

I know in some case we have to run Magento cron as if it is some file or logic base. But If I just want to perform some task regarding just database like want to update or delete some record from ...
0
votes
2answers
34 views

Cron Job In Magento

How to run controller action in Cron Job? I am trying to run cron every five Minute, but cron is not working. I put the code below, Please check :- */5 * * * * root wget -O - http://www.example....
0
votes
0answers
95 views

Magento 2 : Corn job is not executing

I have created a module which has a Tests.php file. I wanted to run this execute() method from Tests.php class to be executed once every Day. I have created a Corn job, But it is Not Executing as ...
1
vote
0answers
47 views

Product attribute values resetting at midnight everyday

I've posted something similar before and no one replied with a decent answer, so I'm posting a new thread so it will have some fresh eyes. I'm having huge problems with Magento 2, every night at ...
3
votes
0answers
62 views

What are the different Magento 2 cron jobs doing?

Magento 2 specifies three cron jobs to be run: * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> <magento install dir&...
2
votes
0answers
55 views

My deployment scripts are utilizing all the ram and taking forever

Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu. Why are these ...
1
vote
3answers
59 views

How to configure CRON using Magento 2?

I have created a module with CRON job but no CRON set on my server how we can set CRON in Magento 2 using SSH.
2
votes
0answers
274 views

Magento 2 Cron job not running with constructor

I am currently developing a drop shipping module for our Magento 2.2.3 store. For this I am creating a cron job to send a post request to my API that pulls in all the orders where a Magento 2 order ...
0
votes
3answers
850 views

Magento 2: Check if a cronjob is already running

What is the best way to check, if a cronjob is already running? I need a cronjob that checks, if there are new files in a folder and then do some stuff to this files. The cronjob should check every ...
0
votes
0answers
77 views

report_viewed_product_aggregated_monthly and report_viewed_product_aggregated_yearly not updated

I have written code to change the sorting logic in Toolbar.php using report_viewed_product_aggregated_monthly. It is working fine, actually the tables report_viewed_product_aggregated_monthly and ...
1
vote
2answers
854 views

Magento2: CRON Job is scheduled but Not Running

I have created a Cron job followed this question Installed the Extension and check it from admin back it says the job is pending. Below is the screenshot and my code in detail, Please let me know if ...
0
votes
2answers
1k views

Magento2: How to create a cron Job and make to run daily

I have created a Module, Now I wanted that module or controller to run daily once. I have created below Code. \app\code\Autosynch\synchProduct\etc\crontab.xml <?xml version="1.0"?> <...
1
vote
2answers
362 views

Setting store scope when running script via cron

I am sending emails with a script executed on cron and have attempted to set the current store with: $stores = $this->_storeRepository->getList(); foreach ($stores as $store) { $this->...
1
vote
0answers
32 views

Cron jobs interfering with load testing

I'm load testing a Magento site using Gatling. The site is hosted on 4 Amazon EC2 machines behind an application load balancer. If all of my cron jobs are disabled, the site can take a good amount of ...
0
votes
0answers
492 views

Create a cron job for importing csv files in magento 2

I am trying to schedule a cron job for importing csv files which consists of the product details. But the cron is not working. can anyone help me resolving this issue? I am using the following code ...
2
votes
0answers
113 views

Installed cron scheduler but I see now that cron is having issues

I'm looking at the timeline & I see that cron keeps stopping & the cron jobs are not running. I get this message "Last heartbeat is older than one hour. Please check your settings and your ...
0
votes
0answers
21 views

Aoe_Scheduler Errors when trying to access the module on admin

Installed Aoe_Scheduler and now getting a http 500 error when trying to access the module on Admin. Can anyone help?
1
vote
2answers
680 views

Magento 2: Calling Restful Web service GET and POST

Any one knows how to call restful web service from Magento 2? Please guide me with a format how it can be done. Any links to guide me with examples of POST or GET etc. I want to Call below URL in ...