Cron Jobs not running

Discussion in 'General' started by CK13, Jan 15, 2015.

  1. CK13

    CK13 New Member

    I think my cron jobs stopped running.
    I added a new site and set up wordpress using the aps installer, but it never installed it, it's been hours since then. Same thing with a backup.
    How can i fix/investigate this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    /usr/local/ispconfig/server/server.sh

    You can see the pending jobs in the job-queue
     
  4. CK13

    CK13 New Member

    After running /usr/local/ispconfig/server/server.sh it executed the jobs.

    Thank you for your time.
     
  5. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    This is usually done by cron. You should check your crontab and also the crond.
     
  6. CK13

    CK13 New Member

    This is in the crontab:
    Code:
    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.
    
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    
    
    # Example of job definition:
    # .---------------- minute (0 - 59)
    # |  .------------- hour (0 - 23)
    # |  |  .---------- day of month (1 - 31)
    # |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
    # |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
    # |  |  |  |  |
    # *  *  *  *  * user-name command to be executed
    49 * * * * root cd / && run-parts --report /etc/cron.hourly
    24 3 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    48 2 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    40 1 28 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #
     
  7. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    If this is the crontab for root, you missed the cronjobs for ispconfig:
    Code:
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    30 00 * * * /usr/local/ispconfig/server/cron_daily.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    
     
  8. CK13

    CK13 New Member

    I added those lines to the crontab.
    Now it works. Thank you very much for the help.
     

Share This Page