The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Job stopped running

Discussion in 'General Discussion' started by MasterGberry, Sep 4, 2012.

  1. MasterGberry

    MasterGberry Member

    Joined:
    Sep 4, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I set up a cron job back in April to backup some files to an FTP server. I recently found out that this cron job stopped working in June...it's september now, needless to say I am so thankful my server didn't crash, because all of my files were supposed to have been backed up....

    I checked the processes, and crond is running, and i checked the logs for my cron job trying to be executed, and it doesn't appear that it was executed at all...my question is why?

    It's set to go off at 2:15 AM everyday and execute the following command:

    Code:
    wget http://www.website.com/tasks/backup
    (website.com is my website obviously)

    I tested the wget command manually and it worked, so nothing is wrong with the php script, just for some reason the cron job stopped running...help? Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have this configured as a cron job under the account, or as a root cron job? Could you post the full cron job as it's configured?

    Also, you may want to restart the "crond" service via:

    Code:
    # service crond restart
    Thank you.
     
  3. MasterGberry

    MasterGberry Member

    Joined:
    Sep 4, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi. the server has been restarted several times in the past months, so i am not so sure it's the crond service, but rather the configuration of it, since it has not worked on any of the reboots...

    Here is a ss of the cron job: 7YjhgO.png

    It is set up under the user account, not root.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. MasterGberry

    MasterGberry Member

    Joined:
    Sep 4, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi. I just submitted a ticket, on average how long do they take to be completed?
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What is the ticket number? To follow up, we would need the number of the ticket submitted.

    As for the length of time, it depends on the day of the week and how many other tickets are in queue.
     
Loading...

Share This Page