Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
1answer
183 views

Magento 2 Currency Rates Cron not run automatically

In Magento 2.1.8 website . currency rates does not automatically(cron) not working. You can also show my "Scheduled Import Settings" into Below image
-1
votes
1answer
337 views

How can I run a new cron job to clear cache every 12 hours? [duplicate]

How can I run a new cron job to clear cache every 12 hours? Can anyone help?
-2
votes
2answers
291 views

Installing Cron Scheduler on Magento

How can I Install a Cron Scheduler on Magento?
0
votes
1answer
466 views

Magento 2 : How to solve Catalog Rule Product Status: REINDEX REQUIRED ( NO SSH access )

I have problem with Catalog Rule Product Status: REINDEX REQUIRED. I'm using Magento 2.2.3 & DirectAdmin without SSH access. Also, I triad through Admin panel & it's not working. My Cron-...
1
vote
0answers
69 views

Update procusts and customer data in csv

I need to add a functionality to import products and customers periodically (lets say once a 6 hours), from a given csv files. Can I write an external script for those imports? I tried to import ...
1
vote
1answer
319 views

i had error while starting the cron job

I had an error on starting cron job. getting this error, now im unable to do anything in magento :( Could not open input file: cron:run n:run my cron job for magento is below, * * * * * /usr/bin/...
2
votes
1answer
497 views

Cron stops running and I have to restart using SSH

Magento ver. 1.9.3.8 In my Cpanel I have 2 cron jobs set to run */5 * * * *. /usr/local/bin/ea-php56 /home/myusername/public_html/cron.php -mdefault >/home/myusername/public_html/var/log/...
0
votes
1answer
269 views

schedule cron on every night at 9pm

I have written job code on crontab.xml <job name="vendor_out_for_delivery_notifiation" instance="Bakeway\VendorNotification\Helper\Data" method="sendPushNotificationForUpcomingOrderCron"> ...
0
votes
2answers
169 views

Can't run CRON PDOException Magento 1.9.3.8

I'm using the Magento Module AOE Scheduler do control my crowns. All the jobs in the cron are running without errors when I run them manually but the cron never runs. When I check the cron directly ...
1
vote
2answers
2k views

How can I setup cron job in Wamp Windows? [duplicate]

How can I configure the Magento 2 cron job in Wamp Windows? For upgrade Magento 2 asking cron in Wamp localhost.
0
votes
0answers
61 views

Magento transactional emails are not being sent & cron jobs are not working

Magento is not sending any emails, no confirmation mails, no invoice mails, no shipment mails or anything. The server sends email by command line and the contact form works, but transactional mail is ...
2
votes
0answers
282 views

Magento 2 - Pending Payment order lifetime issue [closed]

My cron is running correctly and I have configured the Magento 2 pending payment lifetime to 30 minutes. This isn't working as stock levels aren't being reset and orders aren't changing in status. ...
3
votes
3answers
1k views

How can I check the cron jobs running on my site?

How can I check the cron jobs running on my site on terminal? Magento ver. 1.6.2.0
0
votes
1answer
787 views

Cron Job has not been configured yet error on setup

Every time when I need to install anything (Module). I see this readiness check process and I see that the check returns an error. I exchanged. setup_cronjob_status with this All problems are fixed ...
1
vote
0answers
23 views

magento 2 e mails not sending since https

We have a Magento 2.1.11 website which started with http. The automatic emails worked fine, but as soon as we put a redirect to https then they stopped sending. Please can anyone help?
-1
votes
1answer
454 views

One or more indexers are invalid .Make sure your Magento cron job is running [duplicate]

On windows with xampp installed on c . Did try all others answers didnt work for me.please answer step by step as im not too computer savy !thx !
1
vote
0answers
478 views

1.9 - Cron job failing

I've setup a custom module that will automatically change the group of sellers on my site depending on their sales and orders. The script runs fine when manually executing it, however when setting up ...
0
votes
1answer
253 views

Magento 1.9.3.2 Invalid Cron Expression

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 ...
0
votes
1answer
110 views

How to programatically find files in a folder

I am creating a cron job for a Magento 2 site. This cron job will search for files in /var/custom_folder/ and will then process them. I already have the cron job setup and can handle processing ...
1
vote
0answers
255 views

Cron script readiness check failed while updating the Module

When I tried to update my module, Readiness check fails. My cron job is already running. Error from Updater Application Cron Script: Found non-writable path(s): generated/code/Magento/Cron ...
3
votes
1answer
5k 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
703 views

magento 2: How to edit a cronjob/crontab schedule in the admin backend

I have been searching almost all day and i can't seem to find how i can change a cronjob/crontab its settings/schedule without using cache:reflush after changing the crontab.xml file. This is so I ...
0
votes
0answers
190 views

Magento 1.9 cron maximum execution time exceeded

I've got custom module to generate feeds for google shopping and others. When i'm running from magento cron i've got this error: PHP Fatal error: Maximum execution time of 1800 seconds exceeded in.....
3
votes
2answers
115 views

Reindexing does not go through - Magento2 on Localhost - Using MAMP

Unfortunately, I stopped by some issue I cannot find the answer for, no matter how much I search online. When I attempt to reindex through terminal using the following code: php bin/magento indexer:...
1
vote
1answer
1k 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
0answers
472 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/...
1
vote
1answer
402 views

Duplicate cron job created

I have a scheduled cron job that is set to run every day at 12:00am. The job runs correctly as per scheduled time, but the same job is again created at 12.01am. So technically the cron is run twice. ...
3
votes
1answer
98 views

Magento2: force cron job to run as admin scope only?

We have a custom CRON command defined in the etc/di.xml file but we noticed that when it runs it fires frontend events. The job runs data export. We see that if we use the admin UI to run a standard ...
0
votes
3answers
147 views

Cronjob function is not executed

I have created a custom module and set a cronjob, like this: Mymodule/Sales/etc/config.xml <crontab> <jobs> <mymodule_sales_synch_orders> <schedule> ...
1
vote
1answer
250 views

Cron job permission issue?

crontab.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <...
1
vote
0answers
96 views

How to call Admin Backend Controller via cron job in Magento 2

I want to automate the import in magento 2. How can I call vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php via cron?
0
votes
2answers
1k views

Cron jobs high cpu usage

This jobs run all time and consuming 25% cpu power each
1
vote
2answers
294 views

CRON with settings from multiple stores

In Magento 2, what is the cleanest way to have the same CRON job run for every store, and pull relevant configuration settings from the appropriate store? Would it be to add a loop inside Vendor/...
0
votes
2answers
489 views

Magento2.2.0 cron not running

I have a magento2.2.0 based website and I am trying to get the cron jobs running. Used Ubuntu server with no control panel (AWS EC2 hosting). So, I ssh'ed into the instance and went to sudo crontab -...
0
votes
0answers
511 views

Magento 1.9 how to set products to out of stock if quantity is 0 using php?

The website I am currently working on has a bug where it will not update the in stock status to out of stock when the quantity is zero. Importing a product that has zero quantity and then a reindex ...
2
votes
0answers
40 views

How to run my custom code before a cron job (catalogrule_apply_all) WITHOUT overriding Magento's core?

Plain and simple: my module must do stuff before Magento's own catalogrule_apply_all (meaning: Mage_CatalogRule_Model_Rule::dailyCatalogUpdate()). I see no event rised neither in this method itself ...
0
votes
0answers
134 views

How to use cron jobs in observer?

How to use Magento 2 cron jobs in observer file? I cannot get some values in cron file. Can anyone help me out how to configure cron in observer.
2
votes
1answer
254 views

Session is not working in cron file

namespace send\sms\Cron; use Magento\Framework\ObjectManagerInterface; class Run /*extends send\sms\Controller\Customr*/ { public function execute() { $om = \Magento\Framework\App\...
2
votes
0answers
55 views

How to get Customer Id in Cron job function?

namespace Cron\Test\Cron; class Example { protected $customerSession; /** * Construct * * @param \Magento\Framework\View\Element\Template\Context $context ...
3
votes
2answers
2k views

Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are running

im running magento 2 (2.2.1) on nginx and enable the cronjob by default. php bin/magento cron:install i dont customize any configuration regarding schedule of cronjobs. after running the machine a ...
2
votes
0answers
81 views

After Hostforweb migration - Order Confirmation Emails are not being sent; Everything else works fine!

Magento 1.9.1 Aschroder.com SMTP Pro Email Extension Sendgrid.com We were affected by the Hostforweb recent meltdown (migrating the site to New York having an outage and then being assigned new IP's ...
0
votes
2answers
313 views

Magento 2 : Readiness check error during installation

I am getting readiness check error during magento installation.Can any help to fix this issue? Where can I find another php.ini file for command line in xampp? I've read also that this could be ...
1
vote
0answers
16 views

How do I target a class in the Model directory of a custom plugin with crontab in Magento 2

As the title suggests I'm having some trouble targeting three custom classes I want to run on a schedule. The crontab.xml below returns the following error: PHP Fatal error: Uncaught Error: Class '...
1
vote
0answers
310 views

CPU usage on Heartbeat Cron (every minute) [closed]

Magento 2.2: The heartbeat cron jobs that run every minute spike CPU to 100% for a second. Is this normal? I have other services running on my server (2 core 4MB Linode) and the Magento cron job ...
2
votes
3answers
125 views

Run custom PHP file via Cron job

I am after taking over a Magento 2 site from another developer. Once a day they pointed their browser to a PHP script in the root directory that would create/update certain products. Instead of ...
2
votes
2answers
667 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 ...
1
vote
1answer
539 views

How to run cron file via browser in magento2

I have created a logic that look seems fine if I run that via controller file. But I am getting an error while running via cron (checked via log file), using magento2 cron process. ModuleName/Cron/...
1
vote
1answer
71 views

Why do i have to always run the commands to clean cache in Magento 2.1.8?

Whenever I make any change to CSS of my Magento store, it doesn't seem to be updated. I also tried to clean the cache from the Magento admin dashboard but it didn't work. Now I always have to run ...
1
vote
1answer
109 views

Reset overlay button (cronjobs)

Inside System > Scheduler > Job Configuration: then you click on a specific cronjob. What does the button reset overlay do inside that panel? Magento ver. 1.14.1.0
1
vote
0answers
257 views

Cronjob module not finish running

I made a module to check if there are orders placed and if so then export them via another class. I can see the task getting created in the cron_schedule table however only the first one starts ...