Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Scheduler Not Running

  1. #1
    techex's Avatar
    techex is offline Sugar Community Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    409

    Default Scheduler Not Running

    I am trying to get the scheduler to run properly.

    I have setup the Cron Job and it is running every min.

    /subdomains/sugar/cache/modules/Schedulers/pid.php is being successfully updated every minute.

    From the Admin interface active schedulers configured to run as frequently as possible are not showing logs that they have ever been run.

    Where shall I check next!!?

    Thanks in advance.

    Rich

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Scheduler Not Running

    Can you invoke cron.php manually (by running it from the command line)?
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    techex's Avatar
    techex is offline Sugar Community Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    409

    Default Re: Scheduler Not Running

    Yep, running it from the cmd line has the same effect, I think the cron.php is running sucessfully as its updating pid.php...

    Thanks for your support.

    Rich

  4. #4
    hileon's Avatar
    hileon is offline Sugar Team Member
    Join Date
    May 2008
    Location
    Shanghai
    Posts
    187

    Default Re: Scheduler Not Running

    do you have active the tasks will be run in the scheduler

    http://developers.sugarcrm.com/docs/...3.html#1375645
    Last edited by hileon; 2009-05-18 at 09:03 AM. Reason: typos
    Open source, open data, open life in the commercial environment.



  5. #5
    techex's Avatar
    techex is offline Sugar Community Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    409

    Default Re: Scheduler Not Running

    Absolutly..

    Rich

  6. #6
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Scheduler Not Running

    Any other scheduled job running or they all show the same behaviour? Which user is running the cron job? root?
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  7. #7
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default Re: Scheduler Not Running

    I'm also having the same problem:
    Mails are in queue, scheduler is set to:
    Run Nightly Mass Email Campaigns : * * * * * - as soon as possible.

    my cron: * * * * * cd /srv/www/vhosts/sugar; php -f cron.php > /dev/null 2>&1

    Only if I manualy execute php cron.php, the job is logged in job log, for that scheduler...but the mails don't get send.


    Any clues?

    Thank you

  8. #8
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Scheduler Not Running

    I had the same issue on my Linux box. I was setting the cron up to run from teh www-data user, are you doing this. In order for thr cron.php to run successfully for me I have to run it as root.

    If you run the cron.php from the web browser you should see it working and another work around I had was to use wget to run the web broweser command from my crontab.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  9. #9
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default Re: Scheduler Not Running

    Yes it's a linux box.
    How do i set up cron properly?

    Now i have this line in crontab:
    * * * * * cd /srv/www/vhosts/sugar; php -f cron.php > /dev/null 2>&1

    Mails only get sent if i click send queued mails.

    Thank you

    Using opensuse 11.0, Sugar CE 5.2c

  10. #10
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Scheduler Not Running

    Do these following tests:

    • Run the cron.php by hand and check if the emails are sent, check if there is any error message at the tail of sugarcrm.log regarding the cron script;
    • Check if cron is running on your server, add the line

    * * * * * date > /tmp/cron.test.txt

    And check if the file /tmp/cron.test.txt is created after few minutes

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Scheduler jobs not running
    By TheShark in forum Help
    Replies: 2
    Last Post: 2009-06-22, 03:53 AM
  2. error coming while running scheduler
    By VeonConsulting in forum Developer Help
    Replies: 1
    Last Post: 2007-11-07, 08:26 AM
  3. Local Server Running SugarCRM, Pulic Server Running Mambo
    By C12H22O11 in forum Web Self Service Portal
    Replies: 1
    Last Post: 2007-03-09, 04:57 PM
  4. Inbox poller scheduler stops running
    By trueblade in forum Help
    Replies: 4
    Last Post: 2006-05-21, 11:47 PM
  5. Replies: 4
    Last Post: 2006-04-11, 12:24 PM

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
  •