Your Magento cron seems to not be running - magento

I have copied production to staging and updated the local.xml file and the base_urls. Its now giving me warning
Warning! Your Magento cron seems to not be running. You need this
for your Moogento extensions to run well.
New to magento don't know how to proceed please guide.

Make sure the cron is running on your staging environment.
Run crontab -e in your console and inside the editor add this line
*/5 * * * * sh /path/to/magento/root/cron.sh

Related

Ultimo console errors in Magento 2

I'm trying to install ultimo on my copy of Magento 2. The theme is appearing in the content configuration panel but it doesn't seem to apply the theme and I'm getting a large number of console errors such as those in the following screenshot:
This may be because I have been unable to enable the theme properly as I'm having some issues with the SSH.
When I try to enter the following command
bin/magento module:enable Infortis_Base Infortis_Brands Infortis_Cgen Infortis_Dataporter Infortis_Infortis Infortis_Ultimo Infortis_UltraMegamenu Infortis_UltraSlideshow
It keeps coming up with messages such as:
-bash: bin/magento: No such file or directory
I should probably also mention that on this occasion the server where the files are stored is being run by a third party and controlled through a Plesk panel.
If anyone could clarify what it is that I'm doing wrong here I would greatly appreciate it.
Thanks
verify that you are executing the command from the right location, maybe you did not change the directory to DocRoot where magento is installed:
# cd /var/www/vhosts/domain_name/httpdocs/
After that execute the command query once again
go to your magento root via cd command
then fire below command
php bin/magento module:enable Infortis_Base Infortis_Brands Infortis_Cgen Infortis_Dataporter Infortis_Infortis Infortis_Ultimo Infortis_UltraMegamenu Infortis_UltraSlideshow
if still you face issue this may be permission issue then you can reset file/folder permission via below
https://magento.stackexchange.com/questions/91870/magento-2-folder-file-permissions
Thank you to everyone who posted. It was actually a combination of the answers provided by other contributors plus something from my server provider.
I had to CD into httpdocs (the magento installation folder) and enter the below command
/opt/plesk/php/7.0/bin/php bin/magento module:enable Infortis_Base Infortis_Brands Infortis_Cgen Infortis_Dataporter Infortis_Infortis Infortis_Ultimo Infortis_UltraMegamenu Infortis_UltraSlideshow
Then run 'setup:upgrade', this seems to have fixed the issue and I can now use Ultimo.

Magento cron job stuck sometines

We are having 1 strange issue with cron in magento 1.9.3.
We set cron to run once per minute. It is working proper when we set. But it automatic stops working and cron set to once per 15 minutes on server.
Is there any issue with admin config or this is problem of hosting server?
cron command is php -f Path/To/File/cron.php >/dev/null 2>&1
Also tried using cron.sh but still have same issue..
Please advice..

cpanel cron job not working in codeigniter project

My Codeigniter Project Cron Job Not Working Correct
/usr/local/lib/php /home/{username}/public_html/index.php MyCron index
but my Cron Not work Correct
and call Default Home Controller
i need to call my MyCron Controller and index Function
So please help me
This could be because a couple of things. First of all, it could be because you have the wrong path for php. The path on my server is:
/usr/bin/php
You can find your path by typing:
whereis php
Second of all, it could be because you haven't installed the packages neccesary on your server. You need the package php cli
sudo apt-get install php5-cli
Lastly, your cron controller may contain errors, I recommend checking your log file, if you see any errors. For me, the crontab job that is working is:
0 10 * * * /usr/bin/php /var/www/<MY_PROJECT_NAME>/index.php Cron
So yes you can indeed use capitalized words when calling your controller.
Your controller should not be capitalised
/usr/local/lib/php /home/{username}/public_html/index.php mycron index
also index method should not be required as it is the default method.

Magento : how to run cron manually in local machine?

I want to run the Magento cron by manually . I can remember in Drupal we can do it manually without setting the cron job in the server. Same like i want to do run the magento's cron in my local system. How i can do this??
use your browser to hit http://yourdomain.com/cron.php or php-cli to execute cron.php in the root of the application.
From your magento root, run
bin/magento cron:run

Cron job set up on multiple instances of magento

Does anybody have any experience with Magento module level cron jobs across multiple instances of the application?
I know Magento adds the cron records to the cron_schedule table - would each instance of the Magento application add it's own call to the module level cron?
All application instances are looking at the same database.
Thanks for any insights.
If you have several copies of Magento with a common database then you have a multi-site install. Only add a cron job for one server, there is no need to have crons for any other.
Magento does not call the cron for you, you still need to edit the server's crontab. From the Magento Wiki:
To execute all these configured tasks, the cron.php file located in the Magento root will need to be run periodically, for example every 15 minutes. Basically, this script will check if it needs to run any tasks, and if it needs to schedule any future tasks.
In UNIX/BSD/linux systems you will need to add this line (or a similar line) to your crontab:
# for debugging purposes only:
MAILTO=your.user#your.server.com
*/5 * * * * /bin/sh /absolute/path/to/magento/cron.sh
# /absolute/path/to/bin/php - replace with path to your PHP5 CLI executable
# example: /usr/local/php5/bin/php-cli
# in order to find what is the PHP CLI executable you can try to the following command in shell:
# which php
# /absolute/path/to/magento/cron.php - replace with path to Magento installation
# example: /home/user/public_html/magento/cron.php

Resources