Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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
3answers
4k 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 ...
0
votes
2answers
143 views

Force start / add sales_clean_quotes to cron job list in Magento 2

We started to have some issues with our quotes not being cleaned correctly. I checked list of cron jobs and could not find sales_clean_quotes in the list. We are currently running Magento 2.3.3. How ...
0
votes
0answers
14 views

Magento 2: Default Cron Only sales_clean_quotes not scheduling

I have to fetch some issues with our quotes not being cleaned correctly and it's day by day increase table size. I checked a list of cron jobs and could not find sales_clean_quotes in the list "...
0
votes
0answers
15 views

How to make a configurable cron job that can be set from Magento 2 admin?

I want to make a configurable cron job that I can set from the admin panel but execute function that I define in cron does not run after a particular interval.
5
votes
1answer
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, ...
2
votes
2answers
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: ...
0
votes
1answer
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/...
2
votes
4answers
87 views

Product attribute update que stock

I was trying to do a mass update to add products to a specific store view in a Magento enterprise cloud 2.3.4 website. However, now I am just getting the below message on the top of all admin panel ...
0
votes
1answer
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 ...
4
votes
1answer
2k 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&...
5
votes
1answer
2k 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....
2
votes
1answer
183 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
1answer
31 views

Class ... does not exist In classReader.php line 34 in magento2

Just got a problem while compiling: Compilation was started. Area configuration aggregation... 5/9 [=======>-----] 55% 1 min 326.0 MiB In ClassReader.php line 45: Impossible to process constructor ...
0
votes
1answer
1k 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
3answers
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 ...
16
votes
3answers
17k views

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry - Magento 2

I'm trying to setup my crons for Magento 2.2.2, but nothing seems to be updating. I have created cron in cPanel, like below, each once per minute: /usr/local/bin/php /home/userishere/public_html/bin/...
0
votes
0answers
10 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
0answers
9 views

Magento Cron Job is Running a Command It Shouldn't Be?

We have four CLI commands: submit, receive, cancel and import. The first three: submit receive and cancel are all set up to run via the cron job. However, I keep seeing in the logs that the import ...
19
votes
4answers
18k 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 ...
0
votes
0answers
15 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
1
vote
1answer
27 views

Magento 2 : Cron hanging - can't debug

Running into an issue on Magento 2.4.3. Where cron jobs appear to be running correctly but when I run the below I keep seeing cron jobs hanging stuck for an hour, days or more, I have to manually kill ...
2
votes
3answers
2k 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?
4
votes
2answers
2k views

Can someone give detailed explanation about scheduling in Magento 2 cron job?

I am using Magento CE 2.0.0. I set up cron job for my custom task but I could not make it run every 15 minutes. So can someone provide detailed explanation about how to correctly set up schedule? ...
0
votes
0answers
10 views

Why aren't Magento sale grids using Mview (and indexer)?

By default Magento implement Mview/indexer for some grids for example customer grid. But for sale grids (sale, invoice, credit memo, shipment) Magento use a cron job to insert/update new data (if ...
3
votes
1answer
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 ...
0
votes
0answers
18 views

Magento crontab vs Magento Cron (Scheduled Tasks)

I am working with the Magento2 Cron functionality, I have created a cron in the crontab.xml (Every 5 mins) default group <job instance="Namespace\ModuleName\Cron\ServiceOrdersStatusUpdate"...
8
votes
11answers
36k 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 ...
0
votes
1answer
33 views

How to avoid to have many missed and pending cron jobs?

This below is how my cron_schedule table looks like, how could I avoid having so many cron jobs pending or missed?
0
votes
1answer
2k views

Most Cron Jobs show as missed

I recently installed a new Magento 2.2.6 website on a VPS server. Everything seemed to install correctly. The issue I have now is the logs in the var folder are not being populated (update.cron.log, ...
1
vote
2answers
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 ...
2
votes
3answers
4k 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 ...
0
votes
1answer
59 views

How to clear queued email messages so they don't send

While moving from M1 to M2 a number of sales-related emails are generated and stack up in the queue. I don't want these messages to be sent to customers regarding "old" orders. How can I ...
1
vote
2answers
877 views

Magento 2 Custom cron job is ignored

I have followed the tutorial on Magento dev docs to create a custom crontab. Checking the cron_schedule table and various logs, I can see that cron is successfully running M2 jobs (e.g. indexer, ...
0
votes
1answer
16 views

How to find the queue of CSV to export?

I'm running a Magento 2 Commerce and trying to export it via admin panel it didn't work, it seems like it's running forever in the background. How could I check the export queue and clean it? Is it ...
1
vote
2answers
3k 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 ...
5
votes
2answers
3k 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="...
0
votes
0answers
35 views

Crons setup, Amasty's SMTP Email Settings extension installed and working but no Order Confirmation Emails going out

Magento 2.4.2-p1 Porto theme SMTP Email Settings extension by Amasty We had Amasty install the 'SMTP Email Settings' extension which appears to be working = when doing a test - it says: Connection ...
0
votes
2answers
36 views

Setting up cron jobs in Magento 2 via cPanel?

Magento 2.4.2-p1 I'm trying to set up the cron job that does the Order Confirmation Emails via cPanel. In our Magento 1.9.4, it looks like this: /opt/cpanel/ea-php70/root/usr/bin/php /home/...
1
vote
1answer
59 views

How to use curl in magento 2 cron?

I have cron set up which will run to import the data using the curl. I want to use curl using magento's way
0
votes
1answer
936 views

delete session files older than one day, not working

I would like to clean session files older than one day. I clean with cron with this find /path/to/magento/var/session/ -mtime +1 -exec rm {} \; and my cron setting is to run once a day, so 0 0 * * ...
1
vote
1answer
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
1answer
2k views

Magento System.log - Unknown connection name amqp [] []

I am following this documentation for the custom cron job https://devdocs.magento.com/guides/v2.3/config-guide/cron/custom-cron-tut.html I should get the below message in the system.log as part of ...
2
votes
3answers
2k 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</...
0
votes
1answer
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
1answer
64 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
1answer
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....
0
votes
1answer
66 views

How to detect CRON issues from the server side?

It seems like we're having CRON issues, I usually check it via this command below. ./n98-magerun2.phar sys:cron:history How could I check it more precisely?
0
votes
1answer
347 views

Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in cron job magento2

I have a cron job in magento 2, since I have added dependencies it has stopped running. I am getting the error Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no ...
-1
votes
1answer
298 views

How to Magento cron setup

I have Magento 1.9. community edition running. I want to run product export automatically using datafeedmanager. I have setup cron jon in datafeed manager but cron is not running. Please help me to ...

1
2 3 4 5
20