Skip to main content

Questions tagged [cronjobs]

The tag has no usage guidance.

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

Magento 1.9 deleting session from Plesk panel

The var/session folder constantly stores a large amount of data, which causes a lot of innode utilisation on the server, I cannot enter the session folder because it is too big. So I would like to ask ...
alessandro gallo's user avatar
0 votes
0 answers
25 views

How many cron can run together of same groups in magento 2

I want to know how many crons of the same group and different groups are run parallel in Magento 2. As we have too many crons our cron execution is failing and missed execution. We have already 11 to ...
Divyarajsinh Dodiya's user avatar
4 votes
2 answers
459 views

Magento 2 Cron jobs are stuck in Pending status

We have use Magento:2.4.3-p1 version , my issue is new cron generating but "pending" status. After attempting to update product attributes in bulk I have a "stuck" system message ...
Sutariya Parth's user avatar
0 votes
2 answers
89 views

persistent magento cron - /bin/sh: 1: /usr/bin/php8.1: Permission denied,

Magento 2.4.5 Plesk obsidian when running the cron job in plesk it runs fine without errors, however do not update the logs in /var/logs in magento. manually running the cron job via ssh is fine /opt/...
Chris's user avatar
  • 1
0 votes
1 answer
185 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 "...
James Edward Lewis II's user avatar
0 votes
1 answer
273 views

Is this the right command to have a cron job reindex my Magento 2 site automatically 4 times an hour?

Magento 2.4.5-p1 I have a problem which I'm guessing stems from some illegal characters in some of my product fields which results in the products in categories NOT loading every once in a while. ...
Allysin's user avatar
  • 260
1 vote
1 answer
167 views

creating cronjob that cancel orders that are older than 24 hours

I want to execute cronjob if the orders are 24 hours old and and turning pending payment status to cancel. how to do that? I have this code script but doesn't want to work the way it suppose to, what ...
Bayzel's user avatar
  • 187
1 vote
1 answer
405 views

Cron class not found

My cronjob is defined as follows: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
Tim Bezhashvyly's user avatar
0 votes
2 answers
272 views

Remove cronjobs from old module - Magento 2

We had a module that created 3 specific cronjobs. This module was located in the app/code folder and we recently removed the entire module by removing the folder and then run the upgrade command. But ...
JGeer's user avatar
  • 1,420
-2 votes
1 answer
147 views

How i create cron script for import product using csv?

Give me idea for creating cron script for importing product csv file
Alok Tiwari's user avatar
2 votes
3 answers
10k views

Magento2: How to check if cron job is working or not?

How can I check if my cron job is created or not? I have created a module that is creating shipment of orders with status processing, my question is how can I check if the cron job is working or not? ...
Afzal Arshad's user avatar
1 vote
0 answers
2k views

Queue Consumer not starting automatically (third party integration)

We are doing PIM integration (Inriver Integration) and as per its working when we trigger a bulk sync from PIM(Inriver) to Magento, PIM(Inriver) calls various Magento APIs in asynchronous way. So, in ...
Narendra Vyas's user avatar
0 votes
3 answers
861 views

best way to run shell commands like "bin/magento c:f" by using cron job magento2

I want to run some shell commands like c:f , c:c etc by using cron.
nihal malik's user avatar
0 votes
1 answer
81 views

How To Set up Custom Cron Job in Magento 2?

Can anyone explain the methods to doing this job done? Thank you in advance.
Kuldeep Sharma's user avatar
0 votes
1 answer
51 views

What is the normal method of sending Order Confirmation Emails out in Magento 2?

Magento 2.4.2-p1 Porto theme Amasty's Email settings extension We installed Magento 2.4.2-p1, then the Smartwave Porto theme and then we had Amasty install 9 extensions including SMTP Email Settings ...
Allysin's user avatar
  • 260
0 votes
0 answers
158 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 ...
Allysin's user avatar
  • 260
0 votes
2 answers
537 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/...
Allysin's user avatar
  • 260
0 votes
1 answer
1k views

How Magento 2 cron jobs work?

I have a question about cron jobs in Magento. I have a Magento 2 site already installed. By running this database query: select job_code from cron_schedule GROUP BY job_code I get several cron jobs ...
jstuardo's user avatar
  • 609
0 votes
0 answers
243 views

Magento 2 - Why do I always have to manually reindex?

I have setup my cronjob and it runs fine. But sometimes we have to manually execute php bin/magento indexer:reindex to manually reindex everything, otherwise new customers are not showing in the ...
Black's user avatar
  • 3,390
0 votes
2 answers
286 views

How to setup Cronjob For Magento in AWS (Ubuntu OS)?

Recently i had moved my website from Bluehost to AWS. Now i have to create cronjobs for magento in AWS (Ubuntu OS). please help me how to setup the cronjobs in Linux and if possible please share me ...
somutesting's user avatar
0 votes
1 answer
268 views

How to notify admin user after cronjob finished?

I have a cronjob that imports product data. This can take up to 40 minutes. Is there a way to notify the admin user who is logged in? I don't want the admin users to manually edit products during the ...
Max's user avatar
  • 17
0 votes
1 answer
111 views

Prevent hanging cronjobs together with stack protection with flock

So I have couple of things to make sure crons are running ok. Protection against stacking -> flock (manual) Monitoring cron availability -> https://healthchecks.io/ Prevent "hanging" ...
Akif's user avatar
  • 1,551
1 vote
0 answers
147 views

Setting cron job for files and folder permissions

Each time a new file is generated at var/cache/mage-tags/* it does not have the correct rights and the customers can't access the online store. The only way to make it back to normal is to log in by ...
Иван Димитров's user avatar
0 votes
1 answer
337 views

Magento 2 cronjob doesn't seen to work

I'm using Magento 2 v 2.3.3 with Ubuntu. I have cron job activated but for some reason doesn't it seem to work and my website is taking up alot of server memory. On my var/lib/mysql it's taking up ...
Nicklas Gilbertsson's user avatar
4 votes
1 answer
2k views

Magento 2 - Cronjob Deadlock issue

I am facing an interesting issue. I have some custom cronjobs. If I run them manually with magerun2 (n98-magerun), they will be executed with success. If I let Magento to schedule it and execute it, ...
Attila Naghi's user avatar
  • 4,033
0 votes
2 answers
2k 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\...
fudu's user avatar
  • 1,298
0 votes
0 answers
177 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 ...
Anonymous Record's user avatar
0 votes
1 answer
53 views

how to setup cronjob in magento 1.9.3

I am trying to set a cronjob for export order to another website in Magento 1.9.3 please, anyone, have an idea then plz share it with me.
Deep Shah's user avatar
  • 567
1 vote
1 answer
94 views

How to import products using csv file

I want to import all products from csv to my magento 1.9.x store so can anyone have idea so please share with me. Thanks in Advance.
Deep Shah's user avatar
  • 567
2 votes
1 answer
3k views

URI is not valid and cannot be converted into a string

I'm struggling with an error that is thrown in the debug.log. The problem is that multiple indexers are not updated allthough the cronjobs are running. Re-indexing by CLI is working properly on all ...
bluebyte's user avatar
4 votes
1 answer
3k views

catalog_product index does not exist yet. Make sure everything is reindexed

In our production site using Magento 2.3.4 and Smile-SA elasticsuite extension with elasticsuite 6.x. After manual reindex site working well. But some time shows an error. main.CRITICAL: ...
Saditha Udayanga's user avatar
0 votes
1 answer
2k 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://...
Prits's user avatar
  • 625
2 votes
2 answers
3k views

Unable to send emails. Could not acquire lock for cron job: sales_send_order_invoice_emails

Unable to send any kind emails (order, invoice, tracking). I get confirmation that it was sent, but nothing received. Same with "Contact us" from frontend. cron.log: main.WARNING: Could not ...
Aliokas's user avatar
  • 21
0 votes
1 answer
812 views

Magento 2.3.4 How to change the order status from COMPLETE to CLOSED after 5 days with a cronjob?

Since Yotpo plug-in triggers Automatic Review Email upon Magento changing order status to COMPLETE, I need to further change the status from Complete to Closed after 5 days so that the Automatic ...
CodeForGood's user avatar
2 votes
0 answers
280 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=...
MagentoDev's user avatar
2 votes
0 answers
235 views

Cron 'catalogrule_apply_all' locks cron 'indexer_all_invalid' and catalogsearch_fulltext keeps processing Magento 2.3.5

Took me quite some time to debug this. Every night (default) at 0:00 catalogrule_apply_all is run by cron, and resets all indexes for all store. As a consequence catalogserach_fulltext is launched (...
Matthew's user avatar
  • 56
0 votes
1 answer
338 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> * ...
Denys Maksiura's user avatar
0 votes
1 answer
468 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 ...
MagentoDev's user avatar
0 votes
1 answer
159 views

Magento 2.3.4 [SOLVED] can't delete crontab created in development mode

When we created the store in development mode, a conjob was created. On moving to the definitive domain, we noticed errors in the cron tasks and did an install: cron again But now I have two cronjobs ...
Juanjo's user avatar
  • 21
3 votes
0 answers
1k views

Magento 2 catalog_product_alert schedule entries not being created

All store configuration is properly setup, the cron is running, everything else is working, but there are no catalog_product_alert schedule entries being generated or back in stock alerts sent. I ...
siux's user avatar
  • 186
0 votes
1 answer
171 views

Magento2 /bin/sh: /home/appleserver2/public_html/magento2/var/log/update.cron.log: No such file or directory

i have delete magento2 installation by directly deleting the directory and database. however i am getting email in every second and the mail content is as below /bin/sh: /home/appleserver2/...
ujjawal's user avatar
0 votes
0 answers
170 views

PHP Script in Magento 2 Custom Module Works in Browser but Not Working through Cron

We have a custom module that executes a php script. When running the script through an observer event, the script runs without a problem. When running the script through Cron, the script runs but does ...
George's user avatar
  • 51
0 votes
1 answer
188 views

Cron Error Magento 2: Please set a website ID

I have custom cron, which initially had an error: Please set a website ID. I got rid of this issue by doing below: $this->emulation->startEnvironmentEmulation($store_id, \Magento\Framework\...
Ajwad Syed's user avatar
  • 1,591
0 votes
2 answers
687 views

How to run magento 2.3 scripts through cron

I have made one script (addproducts.php) in my Magento root folder for adding products programmatically. For now, I am hitting this script in URL as localhost/addproducts.php. What should I do to ...
Nafsss's user avatar
  • 760
1 vote
0 answers
108 views

magento 1.9,error when start cron.sh "no php in (/usr/bin:/bin)"

I'm trying to run cron.sh file, to earn my crons, but i have problem. I have this errors: which: no php in (/usr/bin:/bin) /var/www/vhosts/mysite.com/mysite.com/cron.php: line 1: ?php: No such file ...
Denis Maksiura's user avatar
0 votes
1 answer
144 views

Magento 2: How to disable cron jobs?

I want to disable some Cron jobs by group or specific cron tab in my staging environment because of some reason. Please someone suggest me a solution, how to do that?
Ranganathan's user avatar
  • 3,220
1 vote
1 answer
2k views

How to get bundle product price by product id ? Magento2

In the code below, I get the product price by identifier, but only the first product price is returned for different product id. Can help me ? public function getBundlePriceByid($product_id){ ...
Robinio's user avatar
  • 771
1 vote
1 answer
1k views

Magento 2 : How to run 2 cron jobs at the same time?

In my crontab.xml I have 2 different cron jobs which are invoking 2 different methods scheduled to run on the minute. When I do the command "bin/magento cron:run" only one job is running. Below is my ...
R.P.'s user avatar
  • 99
2 votes
1 answer
1k views

How i Can Schedule A cron Job on the Basis of Admin Configurations Values

I created a cron job as per standard method Vendor\Module\etc\crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
Waqar Ali's user avatar
  • 2,349
0 votes
1 answer
53 views

Magento2: Reset specific indexer by cronjob

Sometimes the indexer catalog_product_category doesn't automatically run when assigning new products to a category, so products aren't displayed at the shop. I've to manually reset this indexer in the ...
Joris's user avatar
  • 43