cron job stopped working after update

Discussion in 'Installation/Configuration' started by Sergio Cesar, May 17, 2018.

  1. Sergio Cesar

    Sergio Cesar New Member

    Had cron working on original installation of ubuntu 16.04, upon upgrade to 3.1.1 about 2 weeks or so ago and cron stopped working after the update.
    Try to troubleshoot but got nowhere, today I found that I needed to update to 3.1.9 and I was hoping it would fix the problem but no joy.
    I see the file in /etc/cron.d and it looks ok.
    I created a new cron to run a few minutes ahead but nothing.
    cron logs are empty, I have no indication if it is running or not. I have rebooted the server and restarted cron.
    where else can i look?
    btw it sure would be nice if the date is also part of the error log when it runs.
    here is what I see in the file below
    many thanks for the help.
    [email protected]:/var/www/xxxx.net# cat /etc/cron.d/ispc_web4
    MAILTO=''
    SHELL='/bin/sh'

    30 7 * * * web4 /usr/bin/wget --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O /var/www/clients/client3/web4/private/cron_wget.log 'http://www.xxxc.net/cgi-bin/qbwebtimer/gps-cron.php' >>/var/www/clients/client3/web4/private/cron.log 2>>/var/www/clients/client3/web4/private/cron_error.log #xxx.net

    28 7 * * 1-5 web4 /usr/bin/wget --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O /var/www/clients/client3/web4/private/cron_wget.log 'http://www.xxx.net/cgi-bin/qbwebtimer/list-open-tickets.php' >>/var/www/clients/client3/web4/private/cron.log 2>>/var/www/clients/client3/web4/private/cron_error.log #xxx.net
    27 7 * * 1-5 web4 /usr/bin/wget --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O /var/www/clients/client3/web4/private/cron_wget.log 'http://www.xxx.net/cgi-bin/qbwebtimer/list-todo-tickets.php' >>/var/www/clients/client3/web4/private/cron.log 2>>/var/www/clients/client3/web4/private/cron_error.log #xxx.net
    40 20 * * * web4 /usr/bin/wget --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O /var/www/clients/client3/web4/private/cron_wget.log 'http://www.xxx.net/cgi-bin/qbwebtimer/list-open-tickets.php' >>/var/www/clients/client3/web4/private/cron.log 2>>/var/www/clients/client3/web4/private/cron_error.log #xxx.net
     
  2. Jesse Norell

    Jesse Norell Well-Known Member

    check to see if your crown daemon is running
     
  3. Sergio Cesar

    Sergio Cesar New Member

    Yes. I have a job running
    /usr/sbin/cron -f
     

Share This Page