Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

Why code different behaviour of Scheduled cron and command in Magento2

Following code I'm using for low stock mail for store wise in daily. $collection = $this->lowStockFactory->create() ->joinAttribute('name', 'catalog_product/name', 'entity_id',...
1
vote
1answer
20 views

Magento 2.3.5: Attribute value is changing automatically after every hour

I have created a custom attribute with Yes/No values in Magento 2.3.5. Its value is changing automatically after every hour from Yes to No. I can't figure out what is changing its value. Can any know ...
1
vote
0answers
74 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....
0
votes
1answer
12 views

How to handle if curl request throws error in magento 2

I am receiving a response from using a curl request. But how do I check whether my curl request throws an error or not? because it takes 15 minutes to give a response from API.(but it works fine while ...
0
votes
1answer
34 views

Magento\Framework\Filesystem\Driver\File doesn't work in Cron Job Magento 2

Does any one know why $this->driverFile->isExists('pub/media/') doesn't work in Cron Job ? I've a Cron Job look like this: <?php namespace Namespace\Module\Cron; use Namespace\Module\Helper\...
0
votes
0answers
33 views

Import Product Programmatically

For product import, I used to create a CSV file from the text file (from customer) via programming. Then I place it in var/import folder Now, For Magento 1.9 My code was : $profile = Mage::getModel('...
0
votes
1answer
18 views

Do I need to disable cron jobs?

I have installed the cron job as proposed. Now I'm wondering if there are reasons when I should disable it temporarily, so that nothing gets in conflict. Is that necessary at all or is Magento able to ...
0
votes
1answer
15 views

Magento2: issue with cron run \ privilages

After upgrade magento to 2.4 I add privilages: cd <your Magento install dir> // 644 permission for files find . -type f -exec chmod 644 {} \; // 755 permission for ...
0
votes
0answers
10 views

Magento 2 email generated by cron not loading config vars

So I have set up a config to store the environment-specific URL path to images and it works fine to load a header image for emails driven by API calls but for a cron generated email it does not. Not ...
0
votes
1answer
98 views

Magento2.3 Could not open input file update/cron.php does not exist

I have a Magento2.3 based website and I did a mass update of products 2 days ago. However still at the top of the Magento admin panel I see a yellow bar that says Task "Update attributes for 50 ...
0
votes
0answers
21 views

Cron job is running but not updating Inventory

I am using mass product import and export Extension from Wyomind https://www.wyomind.com/magento2/mass-product-update-import-magento.html I have scheduled tasks to run csv profile after every 30 ...
0
votes
1answer
46 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?...
0
votes
1answer
23 views

Create a custom magento cron job

Is it possible to create a custom magento cron job. The task I want it can be done by run sql query using php to process some logic of the sql result send out email to customer service. cron job ...
0
votes
1answer
69 views

How to run cron once a day at midnight

I want to run a cron once a day at midnight so have added this command to crontab -e. 00 00 * * * /usr/local/bin/php /home/../public_html/bin/magento cron:run --group="crongroup" but not ...
0
votes
0answers
67 views

Magento 2.4 Export Invoice csv export programmatically with cron to FTP

In the Admin Panel Sales > Invoices, one can manually export a list of invoices to a CSV file. Unfortunately, sales invoices cannot be scheduled by default for exports like products or customers. ...
0
votes
2answers
98 views

RabbitMQ and cron_consumers_runner

If you are running RabbitMQ in M 2.3/2.4 and have the env.php section set up for amqp: 'queue' => [ 'amqp' => [ 'host' => '127.0.0.1', 'port' => '5672', '...
0
votes
1answer
31 views

Sending PDF via email works when command run on console, but not when run by a cron job

I've become stuck, I want to send a custom report via email in a pdf format. It's strange because it works correctly when I run the command via the console, but when it's run via a cron job nothing ...
2
votes
0answers
47 views

consumers_wait_for_messages not adhered to

I'm trying to run my message queue consumer in a cronjob but the process never exits which means my cronjob never exits either. Looking at the docs https://devdocs.magento.com/guides/v2.3/config-guide/...
3
votes
2answers
407 views

Magento 2 not spawning consumer processes i DB (RabbitMQ)

I have setup Magento 2.4 with RabbitMQ. You can see my configuration here. 'queue' => [ 'amqp' => [ 'host' => 'rabbitmq.host', 'port' => '53003', 'user' => '...
1
vote
1answer
116 views

How to enable asynchronous indexing in production mode?

I want to enable the asynchronous indexing, but the option is inside the Admin menu below, which is available just in developer mode. Stores > Settings > Configuration > Advanced > ...
0
votes
0answers
27 views

Magento to compiling issue | Requested class did not generate properly

Firstly please don't label it as duplicate as I have tried everything suggested in other answers. Issue is that content of generated dir does not generate properly. Because generated dir is never ...
0
votes
2answers
228 views

Should cron jobs get terminated or run forever?

When I do ps aux | grep queue I get the following list of processes that were started via cronjobs: webmast+ 2309182 0.0 0.0 366472 4592 ? S Sep29 3:29 /usr/bin/php /var/www/html/emark/...
0
votes
0answers
161 views

ElasticSearch indexer_update_all_views error with index

I'm using ElasticSearch 6.8 + ElasticSuite in a Magento 2.3 Cloud, it's multistore. I'm seeing many errors in my cron history related to the job indexer_update_all_views, when I check the file var/log/...
0
votes
1answer
15 views

Is there any way to kick off a very specific cron process in Magento 2 using command line?

We're working on troubleshooting a bug where product back in stock alerts aren't sent on our production or staging environment, but they are in dev(after a custom patch was applied to all three). ...
0
votes
1answer
18 views

Magento Cloud Indexer and Catalog issue

I'm having a lot of issues during the reindex of my catalog in Magento Cloud, sometimes I saw error logs related to ElasticSearch. How could I know if I need to request some improvement related to ...
0
votes
2answers
169 views

How to disable any specific cronjob in magento 2.3.4?

Sometimes indexing cron process went away and a similar thing happens for the consumers_runner and yotpo_yotpo_orders_sync cron job so I want to disable the consumers_runner and ...
1
vote
1answer
119 views

Magento Business Intelligence service errors

Every day we are seeing the following error appear at the top of the Magento admin interface: The message states: Failed to synchronize data to the Magento Business Intelligence service. [Retry ...
0
votes
0answers
290 views

Magento 2.4 strange issue with crons

After upgrading to magento 2.4 and monitoring some days now I noticed in admin that mass update attributes in catalog are having strange behaviour. When I update some attributes in catalog I get the ...
0
votes
0answers
24 views

Multiple magento vhost listening to same queue in different rabbitMQ vhost - Cron is not working

I have setup 2 vhosts for Magento 2.2. Both listen to same rabbitMQ instance with different vhosts. However, the queue names are same (separate queues are created in eah vhost). Now, when we run the ...
0
votes
0answers
67 views

How to run a Cron on particular button click on Magento 2?

I want to run a Cron on particular button click which I have to create in Magento Backend. Basically i want to run cron when i click that button and it will take some data from a txt file and create a ...
3
votes
1answer
120 views

Magento 2 scheduled task “log_clean” stuck in running state: “Class log/cron does not exist”

I am running M2 v 2.3.5-p1 In my cron_schedule table I have an entry as follows: 11929 log_clean running Class log/cron does not exist 2020-08-29 00:48:04 2020-08-29 01:00:00 As you can see it has a ...
0
votes
1answer
47 views

Debugging cron error .update_in_progress.flag: failed to open dir: No such file or directory

I've got a Magento2 instance running from 1 year. Since last week I'm receiving once/twice a day an email whith the following cron error In File.php line 405: FilesystemIterator::__construct(/var/....
0
votes
2answers
111 views

cron schedule table is empty after truncate

in my website send mail is not working so I truncated the cron_schedule table (before there are entries about sales order emails), the reason I truncated because the admin panel wasn't loading its ...
0
votes
0answers
30 views

Magento 2.4 | Cron job getting missed multiple times

Please review the attached screenshot. After upgrading Magento with latest version, we are facing this issue with cron. Cron getting missed multiple times. We have follow the below steps but still ...
0
votes
3answers
69 views

How to get data from core_config_data table in Magento 2?

I have created a cron and in that i want to get some values from core_config_data table in my Cron File. My Cron file is : <?php namespace Mageplaza\HelloWorld\Cron; use Psr\Log\LoggerInterface;...
0
votes
1answer
177 views

How to run cron job at a particular time in Magento 2?

I want to create a cron job which update product price which are disabled and the cron run at a specific time 1 time in a day. I have created a custom basic module from taking reference from https://...
0
votes
0answers
12 views

Cronjob executing but not doing anything

Junior dev here. I installed a module which uses cron jobs. The cron job gets executed but there are no changes done to the system. If everything worked correctly, I would be able to import products ...
1
vote
1answer
23 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 ...
0
votes
1answer
18 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 ...
2
votes
0answers
44 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=...
0
votes
1answer
27 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 ...
1
vote
0answers
35 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 ...
0
votes
1answer
19 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
3answers
130 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, ...
1
vote
0answers
15 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
1answer
46 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
0answers
22 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
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
2k 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
0answers
131 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 ...

1
2 3 4 5
19