Cron jobs are not executing












0














In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php file through ssh and jobs has been scheduled but this jobs are not executing and status of this jobs are still pending.



Please Help me in debbuging this issue.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
    – Murtuza Zabuawala
    Sep 12 '16 at 15:49










  • @ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
    – Pradeep Sanku
    Sep 13 '16 at 5:58










  • try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
    – Murtuza Zabuawala
    Sep 13 '16 at 6:13
















0














In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php file through ssh and jobs has been scheduled but this jobs are not executing and status of this jobs are still pending.



Please Help me in debbuging this issue.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
    – Murtuza Zabuawala
    Sep 12 '16 at 15:49










  • @ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
    – Pradeep Sanku
    Sep 13 '16 at 5:58










  • try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
    – Murtuza Zabuawala
    Sep 13 '16 at 6:13














0












0








0


1





In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php file through ssh and jobs has been scheduled but this jobs are not executing and status of this jobs are still pending.



Please Help me in debbuging this issue.










share|improve this question













In my website till the last week crons was working fine and suddenly stopped working and even stopped scheduling in the cron_schedule table. so i had truncated cron_schedule and executed php cron.php file through ssh and jobs has been scheduled but this jobs are not executing and status of this jobs are still pending.



Please Help me in debbuging this issue.







magento-1.9 cron






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 12 '16 at 15:21









Pradeep SankuPradeep Sanku

7,75612955




7,75612955





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
    – Murtuza Zabuawala
    Sep 12 '16 at 15:49










  • @ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
    – Pradeep Sanku
    Sep 13 '16 at 5:58










  • try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
    – Murtuza Zabuawala
    Sep 13 '16 at 6:13


















  • Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
    – Murtuza Zabuawala
    Sep 12 '16 at 15:49










  • @ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
    – Pradeep Sanku
    Sep 13 '16 at 5:58










  • try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
    – Murtuza Zabuawala
    Sep 13 '16 at 6:13
















Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
– Murtuza Zabuawala
Sep 12 '16 at 15:49




Might be some cronjob has 500 internal error after that it wont run any task , this might be the case
– Murtuza Zabuawala
Sep 12 '16 at 15:49












@ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
– Pradeep Sanku
Sep 13 '16 at 5:58




@ murtuza i had commented all custom cron jobs and still my cron jobs are default cron jobs are not working. any suggestions
– Pradeep Sanku
Sep 13 '16 at 5:58












try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
– Murtuza Zabuawala
Sep 13 '16 at 6:13




try to run your cronjob manually by bin/sh /mahentoroot/cron.sh via ssh and see what error is coming
– Murtuza Zabuawala
Sep 13 '16 at 6:13










2 Answers
2






active

oldest

votes


















0














It sounds like you have two issues.




  1. Cron jobs are no longer scheduled in the cron_schedule table; and

  2. Cron jobs are no longer executing.


For #1, you should check whether someone changed the server configuration that called cron.sh. You want to ensure that some crontab on your system lists a command like this.



*/5 * * * * sh /path/to/your/magento/site/root/cron.sh


You can commonly find cron jobs by running commands like this. Note that you'll need sudo permissions.



echo Display system-wide crontab
sudo cat /etc/crontab

echo Display crontabs for all users on system
for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done


More details available in this post.



How to configure Magento cron job



https://blog.amasty.com/configure-magento-cron-job/






share|improve this answer





















  • How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
    – Gem
    Feb 28 '18 at 5:39



















0














To schedule, configure and to now status of cron you can use cron scheduler module.



you can try this module --




https://github.com/AOEpeople/Aoe_Scheduler







share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f135928%2fcron-jobs-are-not-executing%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It sounds like you have two issues.




    1. Cron jobs are no longer scheduled in the cron_schedule table; and

    2. Cron jobs are no longer executing.


    For #1, you should check whether someone changed the server configuration that called cron.sh. You want to ensure that some crontab on your system lists a command like this.



    */5 * * * * sh /path/to/your/magento/site/root/cron.sh


    You can commonly find cron jobs by running commands like this. Note that you'll need sudo permissions.



    echo Display system-wide crontab
    sudo cat /etc/crontab

    echo Display crontabs for all users on system
    for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done


    More details available in this post.



    How to configure Magento cron job



    https://blog.amasty.com/configure-magento-cron-job/






    share|improve this answer





















    • How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
      – Gem
      Feb 28 '18 at 5:39
















    0














    It sounds like you have two issues.




    1. Cron jobs are no longer scheduled in the cron_schedule table; and

    2. Cron jobs are no longer executing.


    For #1, you should check whether someone changed the server configuration that called cron.sh. You want to ensure that some crontab on your system lists a command like this.



    */5 * * * * sh /path/to/your/magento/site/root/cron.sh


    You can commonly find cron jobs by running commands like this. Note that you'll need sudo permissions.



    echo Display system-wide crontab
    sudo cat /etc/crontab

    echo Display crontabs for all users on system
    for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done


    More details available in this post.



    How to configure Magento cron job



    https://blog.amasty.com/configure-magento-cron-job/






    share|improve this answer





















    • How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
      – Gem
      Feb 28 '18 at 5:39














    0












    0








    0






    It sounds like you have two issues.




    1. Cron jobs are no longer scheduled in the cron_schedule table; and

    2. Cron jobs are no longer executing.


    For #1, you should check whether someone changed the server configuration that called cron.sh. You want to ensure that some crontab on your system lists a command like this.



    */5 * * * * sh /path/to/your/magento/site/root/cron.sh


    You can commonly find cron jobs by running commands like this. Note that you'll need sudo permissions.



    echo Display system-wide crontab
    sudo cat /etc/crontab

    echo Display crontabs for all users on system
    for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done


    More details available in this post.



    How to configure Magento cron job



    https://blog.amasty.com/configure-magento-cron-job/






    share|improve this answer












    It sounds like you have two issues.




    1. Cron jobs are no longer scheduled in the cron_schedule table; and

    2. Cron jobs are no longer executing.


    For #1, you should check whether someone changed the server configuration that called cron.sh. You want to ensure that some crontab on your system lists a command like this.



    */5 * * * * sh /path/to/your/magento/site/root/cron.sh


    You can commonly find cron jobs by running commands like this. Note that you'll need sudo permissions.



    echo Display system-wide crontab
    sudo cat /etc/crontab

    echo Display crontabs for all users on system
    for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done


    More details available in this post.



    How to configure Magento cron job



    https://blog.amasty.com/configure-magento-cron-job/







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Sep 12 '16 at 19:44









    jtherkeljtherkel

    161




    161












    • How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
      – Gem
      Feb 28 '18 at 5:39


















    • How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
      – Gem
      Feb 28 '18 at 5:39
















    How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
    – Gem
    Feb 28 '18 at 5:39




    How to test if cron working or not, i have schedule every morning auto clear cache, but not working.
    – Gem
    Feb 28 '18 at 5:39













    0














    To schedule, configure and to now status of cron you can use cron scheduler module.



    you can try this module --




    https://github.com/AOEpeople/Aoe_Scheduler







    share|improve this answer


























      0














      To schedule, configure and to now status of cron you can use cron scheduler module.



      you can try this module --




      https://github.com/AOEpeople/Aoe_Scheduler







      share|improve this answer
























        0












        0








        0






        To schedule, configure and to now status of cron you can use cron scheduler module.



        you can try this module --




        https://github.com/AOEpeople/Aoe_Scheduler







        share|improve this answer












        To schedule, configure and to now status of cron you can use cron scheduler module.



        you can try this module --




        https://github.com/AOEpeople/Aoe_Scheduler








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 26 '18 at 8:25









        Shashank KumrawatShashank Kumrawat

        1,3701341




        1,3701341






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f135928%2fcron-jobs-are-not-executing%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            An IMO inspired problem

            Management

            Has there ever been an instance of an active nuclear power plant within or near a war zone?