Help me understand this cron message

Discussion in 'Troubleshooting' started by trainsem, Dec 9, 2011.

  1. trainsem

    trainsem Member

    Joined:
    Aug 5, 2011
    Messages:
    48
    The poor English throughout the program and docs makes it harder to understand than necessary.

    I think it is saying that the last cron job is more than a day old. I don't know if the 11:29 AM is taken from the system clock, in which case it is today, less than 15 minutes ago. My server is in the US but I run it on Australian time.

    What are the "very serious problems" I should fear?

    My cron setting via cPanel is 0 * * * *

    http://www.example.com/amember/cron.php >/dev/null 2>&1


    Since the output is sent to /dev/null, how do I check if the job was run or not?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    trainsem,
    We will appreciate advice how to modify that message so it will be more clear for users!
    Message means that cron job was executed more then one day ago.

    Problems mentioned in the message will be for daily and hourly tasks executed by aMember.
    Most common issue will be with automatic emails not being sent by aMember.
    Also some plugins use cron to run internal daily tasks as well.

    In regards to your cron setting. It is not correct as far as I can see.
    Change it to:
    0 * * * * /usr/bin/lynx -source http://www.example.com/amember/cron.php >/dev/null 2>&1
    Also have a look here for other examples:
    http://www.amember.com/docs/Cron
  3. trainsem

    trainsem Member

    Joined:
    Aug 5, 2011
    Messages:
    48
    Actually, my cron setting is:
    I lost part of it during the copy/paste.

    As for how to write a better error message, something like this would be better:
    I also raised this in a ticket (and still see the error).
  4. trainsem

    trainsem Member

    Joined:
    Aug 5, 2011
    Messages:
    48
    The error was fixed via the ticket, but has appeared again.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Are you sure your host allows you to run that command via cron? (ie. allows you to execute the lynx command that command has access to internet based resources.)

    An easy option could be to log on to your aMember account here on amember.com, go to the Cron tab and add your full URL to your cron (ie. http://www.example.com/amember/cron.php). This essentially does the same thing your local cron job does, but avoids having to know the specifics of how your host's shell / cron works.
  6. trainsem

    trainsem Member

    Joined:
    Aug 5, 2011
    Messages:
    48
    It's my VPS account, and I have been running cron tasks for Moodle, which is still running in parallel with eFront. Yes, the external cron option remains but I'll wait for aMember tech support to reply to my ticket. (This is a minor problem at the moment. My aMember users can't get to the eFront courses at the moment.)

Share This Page