1 2 Previous Next 17 Replies Latest reply: Mar 11, 2013 9:54 PM by Tim_McManus
Stress Test Level 4 Level 4 (1,265 points)

The test-server is running up for over a week now, but today, the logs get spammed with the following message:

 

com.apple.launchd: (org.dovecot.fts.update) Throtteling respawn: Will start in 10 seconds

 

The error message only appears, when Mail service is running. Mail is fetched with fetchmail to account in the OD. This setup was running for 4 days, without any problems, and now i'll get that message every 10 seconds, over and over again. Restarting the the service didn't solve the problem, either restart mail service didn't.

 

Having a look with Server Admin there're no messages in the queue.

 

Any ideas why this is happening? And why this is happening just right now? Din't made any changes in the configuration. Just played around with iCal, Calendar Server and Shared calendars.

 

Have access to the Mail Server, Webmail etc. only that message is appearing.

  • 1. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    I have seen this issue too, on three different Lion servers (10.7.1) on which mail services are enabled. I'm not yet sure what the problem (if any) is, and how to fix it.

     

    I am going to paste a sample log message below, since "throttling" is misspelled in your original post, and may keep this thread from being found by those searching for this issue:

     

     

    com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 1 seconds
    

     

     

     

    Rusty

  • 2. Re: org.dovecot.fts.update   is crashing
    jimmydburr Level 1 Level 1 (0 points)

    Anyone heard anything on this? I'm getting this same exact thing in my logs too. Lion Server / Mac mini / 10.7.1.

  • 3. Re: org.dovecot.fts.update   is crashing
    Stress Test Level 4 Level 4 (1,265 points)

    @Rusty: Thanks for that

     

    When i'm looking in the LaunchDaemon org.dovecot.fts.update.plist: launchd is starting the following process:

     

    /usr/libexec/dovecot/update-fts-index.pl --syslog --queued

     

    When starting that command as root on the server i didn't get an error in the syslog.

     

    As an other option there is set the "QueueDirectories" as "/var/db/dovecot.fts.update".

    Looked in this directory i have a file ".<username>.INBOX" with 0kb.

     

    So I unloaded the org.dovecot.fts.update with "launchctl"

    Backuped that file and removed it.

    Reloaded the org.dovecot.fts.update with "launchctl"

     

    No the process is running fine - no errors are given in the syslog. The file isn't created anymore, but mail-server is still running fine and mails are still all visible.

     

    For testing I moved back the backup, and immidiatelly the process is crashing again.

     

    Didn't know exactly what that process and db-file should do?

     

    As long as this is a test server, i would say: removed that file and the process is running back fine

  • 4. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    Amazing work, Stress Test.

     

    I'm going to test this on one of my own installations, and I'll report back here.

     

    Rusty

  • 5. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    Ah, interesting.

     

    That file didn't exist on my test system. The contents of /var/db/dovecot.fts.update/ were already empty, and yet the logs continue to complain:

     

     

    com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 7 seconds
    

     

     

     

    Rusty

  • 6. Re: org.dovecot.fts.update   is crashing
    Stress Test Level 4 Level 4 (1,265 points)

    Very strange.

     

    After a reboot the file is back there and the logs a spammed by the error.

    Deleting that file will immediatelly stop the error. After a few hours the file is back in the dir (0kb) and the error is back.

     

    EDIT:

    Had a look in the logs, and the error reapears as soon as fetchmail is fetching a mail. Deleting the file would stop the error until a new mail arrives.

     

    @Rusty do you have mail-service active? Are you fetching your mails with fetchmail?

  • 7. Re: org.dovecot.fts.update   is crashing
    Stress Test Level 4 Level 4 (1,265 points)

    @Rusty

     

    Do you also see the error appearing when you start the proccess in terminal:

     

    /usr/libexec/dovecot/update-fts-index.pl --syslog --queued

     

    ?

  • 8. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    Mail service is active.

     

    Mail is being fetched by a variety of IMAP clients.

     

    Fetchmail is not in use.

  • 9. Re: org.dovecot.fts.update   is crashing
    jimmydburr Level 1 Level 1 (0 points)

    Same error here... Lion Server 10.7.1 running Mail service with active OD accounts. Mail is being fetched with Mail.app from a variety of client OS including Lion, Snow Leopard, and Leopard. Error messages began cropping up after running the server for a few days.  Here's a log excerpt from System.log.

     

    Sep 15 08:17:14 smtp com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 9 seconds

    Sep 15 08:17:25 smtp com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 8 seconds

    Sep 15 08:17:35 smtp com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 9 seconds

    Sep 15 08:18:13 smtp com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 2 seconds

    Sep 15 08:18:22 smtp com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 4 seconds

     

  • 10. Re: org.dovecot.fts.update   is crashing
    Stress Test Level 4 Level 4 (1,265 points)

    @jimmydburr

     

    What do you see, when you enter following in the Terminal.app (Applications > Utilities)

     

    sudo ls -la /var/db/dovecot.fts.update/

     

    followed by your admin-password.

  • 11. Re: org.dovecot.fts.update   is crashing
    Stress Test Level 4 Level 4 (1,265 points)

    Rusty Ross wrote:

     

    Mail service is active.

     

    Mail is being fetched by a variety of IMAP clients.

     

    Your server is a mail-server with a public IP-address where the mails are sent to? Or how do you get the mails to the server?

  • 12. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    Stress Test wrote:

     

    Rusty Ross wrote:

     

    Mail service is active.

     

    Mail is being fetched by a variety of IMAP clients.

     

    Your server is a mail-server with a public IP-address where the mails are sent to? Or how do you get the mails to the server?

     

    That's right. A fully-public MTA.

     

    Also note that I have observed this issue on multiuple Lion Server boxes, all of which basically fit the same criteria as the specific machine I am describing here.

  • 13. Re: org.dovecot.fts.update   is crashing
    ckillian Level 1 Level 1 (5 points)

    So based on my reading[1] - here is what I think is happening.  (The short story - this is behaving as expected.)

     

    When email is received by dovecot, it modifies a file in the queue directory, triggering launchd to update the full text search index. 

     

    Launchd, wisely, doesn't want to re-run the update script too often for efficiency purposes, so if a new file is placed in the queue directory within 8-10 seconds after the prior script finishes (e.g. from a new email), will delay running the update script.

     

    So, in my opinion, the main problem is the spamming of the logs with the launchd messages.

     

    [1]: http://hintsforums.macworld.com/showthread.php?t=89795

    >    05-19-2008, 05:55 PM       

    > the "Throttling respawn" message is an intentional behavior of launchd; it tries to conserve system resources by preventing a job from running more frequently than every 8 or 10 seconds (if you need something that needs to check in with the system more frequently than that, you can either override the respawn limit or construct your script as a stay-open script, rather than as a triggered or timed script).  as to why you're getting this message...  at a guess, either your script is taking longer than 300 seconds to execute (which will keep launchd continually trying to launch it, and continually choking because the job is already running), or you've got some other trigger than the 300 second one which is getting in the way.  

  • 14. Re: org.dovecot.fts.update   is crashing
    Rusty Ross Level 2 Level 2 (175 points)

    Thanks for this, ckillian. Makes alot of sense.

1 2 Previous Next