Results 1 to 6 of 6

Thread: cron job not working

  1. #1
    nkendrick is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    109

    Default cron job not working

    Hi Folks,

    I do not think that our cron job is running properly as no-one is getting or receiving mail when events such as cases are assigned to them. I have just run the cron job on the command line and got:

    PHP Notice: Undefined index: REMOTE_ADDR in /var/www/intranet/html/sugar/log4php/LoggerManager.php on line 92

    This is on SugarCRM Open Source version 4.0.1

    MYSQL is 4.1.12
    PHP 4.4.2
    Apache 2.0.52

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: cron job not working

    'REMOTE_ADDR' is only defined when the script is run from a browser and will not be defined if the script is run from a command line. I wish I could be more help than that but I don't use the EMail part so I havent looked at the cron code yet.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    wagnerbl is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    330

    Default Re: cron job not working

    Your error is just an E-Notice so not to worry about (they do not stop the script and most of the time they are disabled).
    Try to go on www.yoursite.com/crm/cron.php and report back the error (if any).

  4. #4
    TypeRite is offline Junior Member
    Join Date
    Jan 2006
    Posts
    1

    Default Re: cron job not working

    Hi,

    My inbound email mailbox monitoring does not work, either. No connections are made to the remote IMAP server, and the "last run" field in the schedule entry is never updated.

    I am using SugarCRM 4.0.1 on a Debian GNU/Linux Sarge server with PHP 4.3.10 and MySQL 4.0.24. SugarCRM is accessed through an Apache virtual host entry that is configured with SSL and listens to port 443. I am using the default scheduler entries that come with SugarCRM 4.0.1 (Check Mail run every minute, Run Mass Email Campaign on the hour, Prune Databases at midnight, and Refresh Jobs every 12 hours). I have created an inbound email mailbox to monitor that checks an IMAP mailbox with the possible actions set to "Create [Any]".

    cron runs "/usr/bin/php -f cron.php" from the directory where SugarCRM is installed as the www-data user which has read-write privileges on the said directory. This is run every minute. I've tried using wget to access cron.php and the downloaded file is empty.

    What could be wrong? Any debugging tips?

    Thanks!

    --> Jijo

  5. #5
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: cron job not working

    Hi nkendrick,

    Quote Originally Posted by nkendrick
    ...
    I do not think that our cron job is running properly as no-one is getting or receiving mail when events such as cases are assigned to them.
    ...
    Assignment notifications are not reliant on InboundEmail or the Scheduler to send out. You need to enable notifications for both the entire system (Admin -> Configure Settings) and in each user's My Account they need to also enable Assignment Notifications.

    It goes without saying that if they do not have an email address, they will not receive notifications.

    Of course, if you're making them use Sugar as an email client, *then* you have an entirely different Help thread to start

  6. #6
    wagnerbl is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    330

    Default Re: cron job not working

    Quote Originally Posted by TypeRite
    Hi,

    My inbound email mailbox monitoring does not work, either. No connections are made to the remote IMAP server, and the "last run" field in the schedule entry is never updated.

    I am using SugarCRM 4.0.1 on a Debian GNU/Linux Sarge server with PHP 4.3.10 and MySQL 4.0.24. SugarCRM is accessed through an Apache virtual host entry that is configured with SSL and listens to port 443. I am using the default scheduler entries that come with SugarCRM 4.0.1 (Check Mail run every minute, Run Mass Email Campaign on the hour, Prune Databases at midnight, and Refresh Jobs every 12 hours). I have created an inbound email mailbox to monitor that checks an IMAP mailbox with the possible actions set to "Create [Any]".

    cron runs "/usr/bin/php -f cron.php" from the directory where SugarCRM is installed as the www-data user which has read-write privileges on the said directory. This is run every minute. I've tried using wget to access cron.php and the downloaded file is empty.

    What could be wrong? Any debugging tips?

    Thanks!

    --> Jijo
    Depends, what's your IMAP server, if it is cyrus you are in the same boat as i am, i had to remake all of the inbound email to work on sockets so it works very well now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •