Questions tagged [cron]

Denotes a question related to the cron system

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

Magento 1.9 Customer Login Stopped Working

Server: Dedicated, Apache 2.4, Nginx, Redis, CPanel/WHM, Site using FPC extension Mirasvit We have an Magento 1.9 site with the above setup - since last week all of sudden customers are no longer to ...
0
votes
0answers
12 views

Cron issue when installing components

I am having a problem when i try to install component through web setup wizard. My php version is 7.1.29 I am using Magento 2.3.2 In Step 1: Readiness Check i get the following result Check Updater ...
1
vote
2answers
26 views

Magento2: existing quote doesn't load through a cron job

I want to get an existing quote through a cron job, but it returns null. Want get through this $this->quoteFactory->create()->loadByCustomer($custoemrId) or $this->quoteFactory->...
1
vote
0answers
31 views

Cron job doesn't work Magento2

I created a module and want to use it through cron, and in the end I call the cron: run command, here are my files, what is wrong here? namespace AutoAddtocart\BundleAddtocart\Cron; class ...
2
votes
1answer
32 views

M2 | Why we need to execute cron:run twice executing first time?

I created a custom cron job and tested on local server, where it needs to run bin/magento cron:run two times simultaneously and then that custom job is created and scheduled. why is it like that ...
0
votes
0answers
15 views

M2 | Cron is not auto executing on server

I created custom cron job, all jobs are running fine on local server but on staging jobs are scheduled but always stay pending or missed. I can execute cron from backend using third party extension ...
0
votes
3answers
27 views

Magento Setting Up Cron “Error during saving of crontab: sh: line 6: crontab: command not found”

I don't have much knowledge in Magento, but I'm spending a lot of time trying to set up crontab. I tried to follow the steps available on the Magento website, but early on when I try to run the ...
0
votes
0answers
12 views

Magento 2.3 Order Invoice Email Not Being Sent via Cron Job

Magento 2.3.1 cron job code: sales_send_order_invoice_emails status: successful Anyone cares to share a way to solve this? If you know anything about the cron sending out email after catching the ...
0
votes
0answers
26 views

Magento Command Run Using .bat file

How to Use Magento 2 CMD Command using the .bat file I am Wrtting this Commands but still it is not working D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento cron:run D:\xampp7.2\php\php....
0
votes
1answer
22 views

Auto Cron is Not Working When I want to add Data into DataBase

Here Data Was Successfully Addded Into Database When i Run php bin\magento cron:run Command But AutoMatically Data Wasn't Added. vendor\module_name\Cron\Test.php use Psr\Log\LoggerInterface; class ...
2
votes
1answer
31 views

how magento 2 generats and archives log files in file system in server?

I have been searching in internet for this question "how Magento 2 generate log files and make archive files when the day passes is there an cron or configuration in admin area so I can change it for ...
0
votes
0answers
35 views

Magento 2 : Export CSV is not working

I have created the below code for the export of the CSV in my cron class file. But I unable to get it export file and when I checked in database it was showed me to status running for my job_code ...
1
vote
1answer
45 views

NOT_FOUND - no queue 'async.operations.all' in vhost '/' : RabitMQ : Magento 2.3 EE

I am integrating RabbitMQ with magento 2.3. EE , When I try to run cron It is giving me below error NOT_FOUND - no queue 'async.operations.all' in vhost '/' Can anyone help me on this.
0
votes
1answer
9 views

Difference between \Magento\Framework\App\Shell vs \Magento\Framework\Shell

I was trying to execute shell commands from the Magento application and came across the following class class in the framework \Magento\Framework\App\Shell and \Magento\Framework\Shell Not sure ...
0
votes
2answers
33 views

“indexer_update_all_views” cron job runs seemingly forever

We are currently having the problem that the indexer_update_all_views cron job seemingly runs forever - even though there aren't that many entries in the backlog of the indexer. Last time we let the ...
1
vote
1answer
46 views

Magento 2 - Bulk update stock programmatically - Using database query [duplicate]

I have 10 products; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. I want to be able to bulk change 1, 3, 4, 5 and 9 to 0 quantity and out of stock and 2, 6, 7, 8 and 10 to 100 quantity and in stock. How can I do ...
1
vote
2answers
100 views

Magento 2.3.2 CE and Cron jobs, flock and RabbitMQ

Last few days I was chasing an interesting bug in production system running Magento 2.3.2 CE Where as per community recommendation I run cron jobs like this flock --timeout=0 /run/lock/...
3
votes
2answers
168 views

Magento 2.2.8 - sitemap.xml contains “pub” DIR in the URL, It should be without “pub” directory in the URL

Preconditions app/etc/env.php 'directories' => [ 'document_root_is_pub' => true ], 'MAGE_MODE' => 'production', document_root_is_pub is true MAGE_MODE is have production value ...
3
votes
0answers
52 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
0answers
34 views

Cron job not working for magnto 2

My crons are not working on my magento2.3 site. What can be the issue? I tried installing a new cron also, still, the same issue exists. I want to enable the cron for index management. The indexing is ...
1
vote
1answer
42 views

Magento 2.3 How to automate custom cron job from custom module?

I am working on Cron from custom module to send email from custom cron job, I created it as below but the cron job is nor working on the server. <?php namespace Name\Module\Cron; use Magento\...
0
votes
1answer
41 views

Trigger a cron job on custom form submit in magento 2?

Can I trigger a cron job at the time of form submission? Actually, I need to download a product pdf when the form gets submitted. But my pdf file has a large amount of data. So the site gets slow ...
0
votes
1answer
56 views

Magento 2.1.7 - Problem on Readiness Check on “Check Cron Scripts”

I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version... All the checks are ok! It says to: "Your PHP version is correct (...
1
vote
1answer
73 views

how to create a cron to execute a script every 1 min magento 2

I have created a script that deletes duplicated option for custom attribute because this attribute product will generate duplicated value after every save or edit of the product so how to proceed to ...
5
votes
2answers
665 views

Magento 2 Bulk Actions not Starting

After trying to update attributes for 4 products in Magento 2.3.2 the Bulk Actions log shows that the update tasks have not started. My Magento cron jobs appear to be running ok, why are bulk action ...
0
votes
1answer
14 views

How to configure the indexer to run over the night?

I would like to run my indexer to run over the night since I'm already using the reindex by schedule, how could I do that?
0
votes
1answer
40 views

Run cron jobs programmatically

In the Magento 2 CLI, the command to run cron jobs is cron:run --group="[cron group]" However, I was not able to find how this translates into actual PHP code, i.e. where cron:run is mapped to. Is ...
2
votes
1answer
62 views

Magento 2 Error while running Cronjob : Integrity constraint violation

I have 2 cronjobs that serve data from suppliers to a Magento store (Magento 2.2 (Community)). This has been running for a few weeks without any issue, but this morning I got a whole list of error ...
2
votes
0answers
24 views

ELB + ECS + EFS + RDS amazon,cron job with magento 1.9

We are migrating our Magento 1.9 to AWS. We have already implemented an RDS MySQL database, an EFS for static and PHP files. Alsa with we has a load balancer connected with for the moment 2 servers ...
0
votes
0answers
23 views

Magento2: How can I make custom import / export product functionality?

I want to make custom import / export functionality? 1) Schedule or Cron wise Import Export. 2) Upload product from Google Sheet. Any one can do help in this?
0
votes
2answers
306 views

cache_dir “/var/www/html/Magento2/var/cache/” is not writable

I'm running a fresh Magento2.3 install on ubuntu 18.04. I managed to edit sample data yesterday, but today I had a go at adding a new product. After saving - I got the error : One or more ...
1
vote
1answer
21 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 method's class: php -r 'include "/path/to/file.php"; ClassName::...
0
votes
0answers
46 views

Magento 2 No such entity error in Cron job for sending password reset Email

I have tried below code to send all customer reset password link <?php namespace Vendor\Module\Cron; use Magento\Customer\Api\AccountManagementInterface; use Magento\Customer\Model\...
4
votes
0answers
33 views

Magento 2 Send Order Emails Without Cron

Due to some issue order emails are not sending with cron and always remain with pending status. So I have to send it without cron. I have changed it to Send Asynchronously from Admin configuration. ...
0
votes
0answers
69 views

“There are no commands defined in the cron namespace” even though I don't have any crons running

I have the Magento_Cron module disabled, so as far as I know, no cron jobs should be running in my environment. Every minute or so, the text... There are no commands defined in the "cron" namespace....
1
vote
1answer
20 views

Magento 1.9 cron scheduler change timezone

i'm a magento newbie. I wrote a cron job code in my custom module's observer file and ran cron job from terminal. Scheduled jobs are entered into cron_schedule table. But the scheduled time is in UTC. ...
1
vote
1answer
33 views

Magento always creates new entries

I have a little problem. I am currently working on an synchronize job for cron. The sync function just gets the newest elements from an api and updates in the Magento db. The Magento version is: 2.3....
1
vote
1answer
30 views

Does a cron job with no schedule ever fire?

Consider this in crontab.xml which I've found in a third party plugin... <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
3
votes
3answers
367 views

How to enable or disable crons in Magento 2?

I checked in cron_schedule table, cron are disabled. I want to enable or disable crons. How can I do that?
0
votes
2answers
34 views

mangento 2 Cron Job is not scheduled with fix time

I want to execute cron every day at 10.05 so i have define crontab.xml as below <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
1
vote
1answer
26 views

Dependancy injection and shared/unshared object and cron job

Something interesting happens to Magento2 code and I cannot realise what I missed. The same code works flawlessly via browser and does not work via cron. (in adminhtml area) I calculate the result in ...
0
votes
2answers
31 views

Error on running cron in Magento 2

If i run the cron command php bin/magento cron:run im receiving the below error. [Magento\Framework\Exception\LocalizedException]...
1
vote
1answer
24 views

Cron script error on readness check

> Check Cron Scripts Cron script readiness check failed. Hide detail > > Error from Updater Application Cron Script: > > Found non-writable path(s): /var/www/html/pub/media/.htaccess &...
1
vote
2answers
34 views

Cron Failure - Mage_Core_Exception

I get this from the error log all the time. Cron Failure catalog_product alert: ---EXCEPTION--- exception 'Mage_Core_Exception' with message 'Invalid callback: Model for productalert/observer:...
2
votes
1answer
26 views

bin/magento cron:install not writing to crontab

I have ran bin/magento cron:install and then show Crontab has been generated and saved but I run crontab -l, nothing was written into cron, any ideas?
0
votes
1answer
52 views

Magento Cron reindexing issue

We are facing an strange issue that products in listing pages are not showing in frontend. we are importing products from zoho and we have setup crons as update by schedule. Suddenly products got ...
0
votes
0answers
13 views

Configurable Images - Removed After Cron Run

I have 2 M2 sites hosted in Magento Cloud and one of the sites has an issue where random product configurable images are being removed from the root directory leaving the category view of the product ...
1
vote
2answers
72 views

Reindex Not Happening Automatically Magento 2.3

Every time I update a product stock in magento it updates perfectly in the backend but only when I manually run a reindex via SSH does it update on the front end. Very annoying when I am sometimes ...
0
votes
1answer
47 views

Calculate attribute value in indexer or cron?

This is my observer and its updating my custom attribute every time when I save attributes on catalog_product_attribute_update_before event. namespace MyVendor\MyModule\Observer; class ...
1
vote
1answer
31 views

Cron Job doesnt start when DeploymentConfig in __construct parameter

i have one Problem that i cant understand. I have a Cronjob that should read in the Env.php via DeploymentConfig. When i add DeploymentConfig in the Job __construct, the Job wont start. Doesnt start: ...