Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
1
vote
1answer
12 views

Best practice for setting up CRON:INDEX from admin

Magento Cron for all groups are currently set for Each Minute. Magento Support recommends this too. However I am facing Server Slowness issues specially in the admin when this is turned on to each ...
2
votes
3answers
3k views

Cron job hang - how to debug?

I have some cronjob that sometime get stuck in running status. That make me think that for some reason they produce and error but I cannot find any related log. ( the column messages in cron_schedule ...
7
votes
5answers
14k views

Magento2: run cron job every minute

System cron starts Magento 2 cron every minute: $ crontab -l */1 * * * * /usr/bin/php /home/user/prj/mage2/bin/magento cron:run >> /home/user/prj/mage2/var/log/cron.log I see new line Ran jobs ...
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
17 views

Command line enable / disable static blocks

I would like to be able to enable and disable static blocks via the command line, is there a utility that provides this functionality. My use case is to configure a cron job to periodically enable ...
1
vote
3answers
113 views

Run cron for indexation every hour

This is the first time I want to run cron for indexation every hour. I found multiple tutorials but none of them give me what I'm looking for or skip some steps. I'm using OVH as a web hosting, ...
0
votes
1answer
726 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 * * ...
0
votes
1answer
981 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-...
1
vote
2answers
835 views

Export daily sales report via command line

I was curious if there is a way to export sales reports to a CSV via the command line. I can handle the cron setup to make it run daily, I'm just curious how you would go about doing this in the shell....
2
votes
1answer
897 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, ...
3
votes
1answer
149 views

Create Magento 2 cron job task programmatically

To sync data between 2 portal, we need some action manually trigger, on click of button need to schedule a cron via programmatically. I have found solution but it is for Magento 1. For Magento 2 what ...
0
votes
1answer
11 views

Magento 2: Unable to unserialize value. Error: Syntax error

I'm creating Order export cron module for Magento 2.3. I'm getting below error Cron-job "monthly_report" threw exception InvalidArgumentException In Json.php line 39 ...
2
votes
0answers
38 views

How to set the CRON for every 4 hours?

I have created a custom cron group and below is the code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
1
vote
0answers
12 views

Import add and update products with their attributes in a CSV file and cron job Magento2

I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
16
votes
4answers
13k 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
1answer
802 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
1answer
15 views

Schedule cron job every day

how start cronjob every day? I'm not too strong in schedule <crontab> <jobs> <ebayautopurchase_deleteproducts> <schedule><cron_expr> * ...
1
vote
2answers
113 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 ...
4
votes
3answers
210 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
744 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!
5
votes
1answer
1k 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
0answers
11 views

M2: issue with cron table with language translator

I added a large number of CRON tasks to the translation table. Now when I open this table I see an error: Manage Cron Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : CData ...
0
votes
2answers
769 views

Unable to execute cron.php via SSH nor CRONTAB

I recently hosted my website using Magento, upon setting up my cron.php i get the following output : /home/xxx/webapps/abc/cron.php: line 1: ?php : No such file or directory /home/xxx/webapps/abc/...
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, ...
0
votes
1answer
17 views

Debugging Magento 2 cron errors when no message is left?

Quite often when I'm attempting to create a CRON job I'll mess up along the way and the job will fail to run. Typically I'd check my logs and see where I went wrong, put the missing semicolon back, ...
0
votes
1answer
351 views

Magento 1.9.3.2 Invalid Cron Expression

I hope someone can help because I'm really struggling. My Magento cron is throwing an error: #0 /app/code/core/Mage/Cron/Model/Schedule.php(68): Mage::exception('Mage_Cron', 'Invalid cron ex...') #1 ...
13
votes
2answers
9k 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
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
0answers
17 views

Cron job is only working when I run the cron command manually

I have created a cron job and its only working when I run the below command: php bin/magento cron:run But the cron should run automatically. What Could be the issue and why the cron is not running ...
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
0answers
11 views

Magento 1 - Automatically update backend/admin settings on a certain date and time

In germany the taxes are getting lowered because of corona at 01.07.2020 on 00:01 o'clock. The problem is, that no one works in our company in this time, so we have to automate the setting change. ...
1
vote
3answers
40 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?
1
vote
1answer
206 views

Indexer status (7414 in backlog)

When I run indexer:status from the 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:...
0
votes
3answers
4k 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 ...
0
votes
0answers
26 views

Magento 2 Captcha Images Not Deleting (thousands of files using space)

We've got a Magento store running on version 2.2.5. The captcha images that are generated in /pub/media/captcha do not seem to be automatically deleting once expired. I know that the ...
0
votes
1answer
21 views

Magento 2.3.3 not sending any mails

My Magento 2.3.3 is not sending any emails from the solution. As far as I can see, the cron job is running, the mail settings looks fine and are enabled. I think I have tried it all, but no luck, it ...
0
votes
0answers
8 views

Why would cron be sending MANY Emails from root@server to user@server?

Magento ver. 1.9.3.7 Porto theme We were (Email) blacklisted so I started digging around and on one of our Magento accounts, there are many Emails (1460 every day) which are being sent like this: ...
0
votes
1answer
22 views

how often that magento 2 reindex cron job run?

Anyone know how often that Magento 2 Reindex Cron job run daily? thanks
1
vote
1answer
888 views

Unable to set up cron job on GoDaddy hosting

I am trying to set up my indexer using GoDaddy hosting with cPanel. The indexer is not refreshed and asks me to check that the cron job is running. How do I set up the cron job?
1
vote
1answer
677 views

Fatal error: cron install error

i'm getting this cron install error, how can i fix it?thankyou!! php bin/magento cron:install --force Fatal error: Uncaught Error: Call to a member function getMessage() on null in /home/XXX/...
2
votes
2answers
868 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 -> Advanced does not exist on my backend. This is what the Advanced menu looks like for me: This ...
0
votes
0answers
12 views

How often should Cron schedule run in Magento2 for 10,000+ products?

I have a Magento2 site with 13,000 products loaded. Looking at the server CPU usage, I can see that it is currently consuming ~60% CPU at all times. I have looked at the processes using the "top" ...
1
vote
2answers
816 views

Cron does not update currency rates

I'm using this module to replace webservicex currency rates importer: https://github.com/philwinkle/Philwinkle_Fixerio It is working ok when I hit import and save in the backend. But I want to run ...
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
1answer
24 views

How to solve slow performance, slow and long running CRONs in Magento Cloud?

I'm having these two main issues below in my Magento 2.3.2 Enterprise Cloud. Heavy SQL load and site performance issues. Long-running and stuck CRON. How could I solve it?
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&...
2
votes
1answer
109 views

why message queue consumer never exiting when --max-messages specified?

I'm using Magento 2.3.4 with RabbitMQ configured in the env.php to process my message queues, I start consumer using: bin/magento queue:consumers:start ConsumerName --max-messages 1 But the consumer ...
1
vote
4answers
4k views

Separate cron job for reindex all?

I've set up the cron job for magento. Do I have to set up a separate cron job for reindex? I'm running Magento 1.9.1
0
votes
0answers
11 views

Indexer with custom cron_group

We have created a new custom indexer as per requirement. And now we need to schedule that indexer with custom cron_group which can be scheduled according to business. We don't want to schedule with ...
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="...

1
2 3 4 5
19