Questions tagged [cron]
Denotes a question related to the cron system
1,005
questions
2
votes
2
answers
1k
views
Stores->Configuration->Advanced->Advanced Not showing up
I'm trying to set up a custom cron job as per this tutorial, but Stores -> Configuration -> Advanced -> Advanceddoes not exist on my backend.
This is what the Advanced menu looks like for me:
...
1
vote
2
answers
713
views
Does Magento 2 launch all RabbitMQ consumers only by cron?
I am very surprised by the fact that I found that it seems that Magento 2 launches all RabbitMQ consumers only by cron.
I expected to see RabbitMQ as a separate application that accepts tasks from PHP ...
0
votes
1
answer
1k
views
Magento2 - Cron Job not working
Cron Job is not working. Below is crontab.xml file:
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
1
answer
2k
views
Zend_Mail_Protocol_Exception: Must issue a STARTTLS command first
I am running magento 1.9.1 website on AWS EC2 Ubuntu machine. Customer registration emails are going out but transnational emails are not going.
I configure SMTP by AWS SES service with SMTP Pro ...
0
votes
1
answer
1k
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 ...
5
votes
1
answer
2k
views
How to capture automatically Paypal authorization payment?
The payment action of PayPal it's set to authorization (I need it, I can't set to sale), therefore then I need to capture the payment.
I know that I can do it manually from the invoice sending page, ...
6
votes
2
answers
3k
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....
3
votes
1
answer
846
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 (...
9
votes
12
answers
41k
views
Magento 2: New added products not showing
I need some help I have added new products in the Backend and they are showing in the DB but not showing on the front page.
Also, previously out of stock products are not showing as well after ...
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&...
0
votes
3
answers
5k
views
Cron jobs are not executing
In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php ...
14
votes
4
answers
31k
views
Magento 2 : Execute Cron
How can I execute Cron from command line manually.
In Magento 1.x we can run cron like :
www.testsite.com/cron.php
but in magento 2 how can I do this ?
Please also help me for how can I execute ...
0
votes
2
answers
1k
views
Is there any way to flush cache (periodically) using Magento 2 cron?
I need to flush some types of cache (or maybe all of them) by Magento cron tasks (not system native), also I might need it to be done periodically, is there any way to do this?
0
votes
1
answer
2k
views
Index - ready but 11619 in backlog
We have a indexer in Magento 2.3.3 that is giving us a difficult time.
We tried many times reset and reindex that indexer but does not help.
| Bol.com Offer Export | Ready | ...
0
votes
3
answers
2k
views
Magento 2: There are no commands defined in the "cron" namespace
Magento 2.4.3-p1
When I run bin/magento cron:run on the command line all is fine. No issues.
When I let it run by the system's cron it does not work and I get this in the /var/log/magento.cron.log all ...
1
vote
1
answer
2k
views
import product data programmatically using csv
I am new in magento 2
I am trying to import product data programmatically using csv file.
The Error is shown below
My Folder and code structure are following.
This is My registration file.
Vendor/...
3
votes
1
answer
2k
views
Magento 2: System upgrade fails Readiness Check (always_populate_raw_post_data = 0)
I am trying to upgrade Magento 2.07 to 2.1. I pass all the checks apart from the one below:
Your PHP Version is 5.6.22, but always_populate_raw_post_data = 0. $HTTP_RAW_POST_DATA is deprecated from ...
2
votes
4
answers
3k
views
How Can I Schedule custom cron in every 5 minutes.?
cron_groups.xml
<?xml version="1.0"?>
<group id="custom_crongroup">
<schedule_generate_every>5</schedule_generate_every>
<schedule_ahead_for>10</...
1
vote
1
answer
2k
views
Magento 2 Task "Update attributes for 2 selected products": 1 item(s) are currently being updated.1 item(s) have been scheduled for update
Magento version 2.3.5
Does anyone know how to solve this?
Cron is working fine I cross-check with indexing and when run this command -
php bin/magento queue:consumers:start product_action_attribute....
1
vote
2
answers
1k
views
How to check /root/cron.php/ is working or not
I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.
but i don't know to check cron schedules are working or not. Any manual ...
0
votes
0
answers
69
views
Magento2: How to execute Cron in non-root container on Kuberentes?
I've used the Bitnami Magento Helm chart to install Magento 2 on the Kubernetes cluster.
By default, the pod and the container are configured not to use root users which is good from a security point ...
3
votes
1
answer
570
views
magento 2: cron to run after exception also
I have created a custom module which has cronjob to run after certain interval:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
3
votes
3
answers
5k
views
Cron job hang - how to debug?
I have some cronjob that sometimes gets stuck in running status.
That makes me think that for some reason they produce an error but I cannot find any related log. ( the column messages in ...
1
vote
2
answers
4k
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
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
31
views
Cron job hangs n 'in process' status
I have implemented a bridge between an external system and Magento, retrieving product details for the external system and save it after processing to Magento.
My problem is that when there are more ...
0
votes
1
answer
43
views
Magento cron jobs fail because of attempts to write to the wrong part of the filesystem
I noticed for a while that although I could run the commands in my crontab just fine, they would not run from cron itself; when I looked at magento.cron.log, I found lines like this:
Directory "...
3
votes
3
answers
7k
views
Indexer Issue - idle (741 in backlog)
Some categories meta title & description is not setting.I am getting backlog in index status. any idea to fix this issue?
5
votes
3
answers
4k
views
Magento2 : Cron run not working
Below given is crontab.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="...
1
vote
1
answer
2k
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
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....
1
vote
1
answer
1k
views
Magento 2 Custom cron not working
I am trying to run custom cron but,
I got below error in system.log while execute cron:run command.
main.WARNING: Could not acquire lock for cron group: default, skipping run [] []
crontab.xml ...
0
votes
0
answers
22
views
Submit to cron schedule from other cron jobs
How do you submit a job for the cron scheduler from another (cron)job?
I have several cron jobs running with different time schedule. But I would like to submit a bunch of jobs whenever som logic is ...
20
votes
7
answers
23k
views
Magento 2 run a specific Cron without cron:run CLI command?
To make a long story short xdebug will not reliably stop on the breakpoints in my cron files when using the typical:
php bin/magento cron:run
Xdebug is all setup properly and sometimes it will work ...
2
votes
1
answer
966
views
Magento 2 - How to create the batch file to export product to csv file
In Magento 2, How to create the batch file to export product to csv file?
May you show me step by step, Thanks!
2
votes
3
answers
11k
views
How to Solve: "Could not acquire lock for cron job: X" in Magento var/log/cron.log
With my M2 instance indexers in "Update on Schedule" mode... var/log/cron.log receives this warning near constantly:
Could not acquire lock for cron job: indexer_update_all_views [] []
The cron ...
1
vote
1
answer
1k
views
Magento 2: I need to run observer function through Cron job
I want to run an observer function through a Cron job. Can anyone share the simple observer function.?
Here is my code
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1
answer
2k
views
How do I send a email from the cron job? Magento 2 Unable to send mail
I did create a cron job with custom sql query. It will send an email notification to our support email. Can someone tell me what's wrong my email coding, from the log it said I am unable to send mail?...
2
votes
2
answers
7k
views
Magento 2 Cron jobs are stuck in Pending
I currently have a problem with the cron in my Magento 2 (2.2.7 installation).
Orders are coming through but any which come through from an extension called "Adyen" are getting stuck in the "Payment ...
6
votes
2
answers
11k
views
Cron jobs stuck in running status
Somehow our automated email reminder rules have stopped working meaning that our Abandoned cart emails have stopped sending. If I look in the cron_schedule table I see a few rows that have a status ...
1
vote
1
answer
233
views
Magento 2 Cron Script Execute From CLI
How can I execute my cron class in command line especially for testing ?
Normally one could php -f myfile.php
OR
Calling a class method:
php -r 'include "/path/to/file.php"; ClassName::...
1
vote
2
answers
5k
views
How to Use RabbitMq in Magento2 CE
I have follow this link to knows about RabbitMq is used in Magento2EE. for Instead of Mysql+cron Process in Magento2CE.
I annualized about some drawbacks while using Mysql+Cron in Magento 2 CE. ...
0
votes
1
answer
66
views
cart price rule exact expiration date
Is there a way to get the exact cart price rule expiration date (the hour and minutes), I see that magento only stores the years, month, and day for to_date field.
0
votes
1
answer
1k
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/...
0
votes
0
answers
232
views
Magento 2 update inventory programmatically using cron
I want to update the product inventory. Get inventory from another platform using cron once got inventory need to update in Magento but what is the best way to update some time I will get more than ...
0
votes
0
answers
26
views
Adding new store, Indexer issue on Magento 2.4
By adding a new store in my Magento 2.4.5-p1 EE, the indexers change to invalid status. This seems normal. If I execute a manual indexing via the CLI (bin/magento indexer:reindex), everything goes ...
0
votes
1
answer
303
views
How does the cron functionality work in Magento 2, and how can I configure and manage cron jobs effectively?
I'm looking to gain a better understanding of how the cron functionality operates in Magento 2 and how I can utilize it for scheduling and automating tasks within my store. Specifically, I have the ...
0
votes
0
answers
38
views
Create a cron to change "Out of Stock" status
I want to create a module or script which will run via cron once in a day to check the products whose qty is greater than 0 but with an "Out of Stock" status, and change it to "In Stock&...
0
votes
0
answers
86
views
Magento2 cron of custom group does not get scheduled automatically
I have a default ddev magento2.4.6 environment running locally on my mac.
My custom module should be scheduled and executed as cron, which works fine as long as I run it from terminal via php n98-...
5
votes
3
answers
15k
views
Cron job always "missed"
My website has this cron job set to run every 30 mins and the cron.php/sh is set to run every 15 mins on the server. But I always get "missed" for this cron job. My cron configuration time setting is:
...