I have a Dovecot installation on a Fedora 4. With the last update from Dovecot RC10 to Dovecot RC27, the daemon kills itself every night with this error: Mar 17 05:23:11 mail dovecot: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill m yself now. The error appears just after the night maintenance script executes a ntpdate syncronization ntpdate is version 4.2.0a at 1.1196-r Well, 6 seconds are little more than a blink in human perspective, even if it is a long time for a computer point of view. Couldn't be possible to add a configuration option to avoid the suicide? Any other option other than suicide is better, because there could be situations of really unattended servers. Ciao, luigi -- / +--[Luigi Rosa]-- \ She was a lovely girl. Our courtship was fast and furious. I was fast and she was furious. --Max Kauffmann
Den 19-03-2007 09:52, Luigi Rosa skrev:> I have a Dovecot installation on a Fedora 4. > With the last update from Dovecot RC10 to Dovecot RC27, the daemon kills > itself every night with this error: > > Mar 17 05:23:11 mail dovecot: Time just moved backwards by 6 seconds. > This might cause a lot of problems, so I'll just kill m > yself now. > > The error appears just after the night maintenance script executes a > ntpdate syncronization > > ntpdate is version 4.2.0a at 1.1196-r > > > Well, 6 seconds are little more than a blink in human perspective, even > if it is a long time for a computer point of view. Couldn't be possible > to add a configuration option to avoid the suicide? > > Any other option other than suicide is better, because there could be > situations of really unattended servers. > > > > > > Ciao, > luigi >You could probably patch ioloop.c to accept more than 5 seconds of adjustment and then recompile. According to the commit[1] it seems IOLOOP_MAX_TIME_BACKWARDS_SLEEP determines a time limit in seconds, in which dovecot will hang waiting for time to get back to at least what is was (assuring that nothing is done "in the past".) References: [1] http://www.dovecot.org/list/dovecot-cvs/2007-March/007948.html [2] http://www.dovecot.org/list/dovecot/2006-May/013641.html [3] http://www.dovecot.org/list/dovecot/2007-March/020369.html -- Vennlig hilsen Christian Skarby Interhost ANS -------------- next part -------------- A non-text attachment was scrubbed... Name: christian.skarby.vcf Type: text/x-vcard Size: 281 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070319/82bde76b/attachment-0002.vcf>
Other nice option is using a true ntp synchronization which will not do that. Correct solution is when the time is slowly drifting time instead of big jumps. Running any ntp client in daemon mode should solve this. L??a -----Original Message----- From: dovecot-bounces at dovecot.org [mailto:dovecot-bounces at dovecot.org] On Behalf Of Luigi Rosa Sent: Monday, March 19, 2007 9:53 AM To: Dovecot Mailing List Subject: [Dovecot] Dovecot 'suicide' I have a Dovecot installation on a Fedora 4. With the last update from Dovecot RC10 to Dovecot RC27, the daemon kills itself every night with this error: Mar 17 05:23:11 mail dovecot: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill m yself now. The error appears just after the night maintenance script executes a ntpdate syncronization ntpdate is version 4.2.0a at 1.1196-r Well, 6 seconds are little more than a blink in human perspective, even if it is a long time for a computer point of view. Couldn't be possible to add a configuration option to avoid the suicide? Any other option other than suicide is better, because there could be situations of really unattended servers. Ciao, luigi -- / +--[Luigi Rosa]-- \ She was a lovely girl. Our courtship was fast and furious. I was fast and she was furious. --Max Kauffmann
Christian Skarby said the following on 19/03/2007 10.40:> You could probably patch ioloop.c to accept more than 5 seconds of > adjustment and then recompile. According to the commit[1] it seems > IOLOOP_MAX_TIME_BACKWARDS_SLEEP determines a time limit in seconds, in > which dovecot will hang waiting for time to get back to at least what is > was (assuring that nothing is done "in the past".)My point is: could Dovecot restart itself insted of killing itself? Ciao, luigi -- / +--[Luigi Rosa]-- \ Dr. No: East, West, just points of the compass, each as stupid as the other. --007 Dr. No
Hello Luigi, Luigi Rosa, 19.03.2007 (d.m.y):> I have a Dovecot installation on a Fedora 4. > With the last update from Dovecot RC10 to Dovecot RC27, the daemon > kills itself every night with this error: > > Mar 17 05:23:11 mail dovecot: Time just moved backwards by 6 seconds. > This might cause a lot of problems, so I'll just kill m > yself now. > > The error appears just after the night maintenance script executes a > ntpdate syncronization > > ntpdate is version 4.2.0a at 1.1196-r > > Well, 6 seconds are little more than a blink in human perspective, > even if it is a long time for a computer point of view. Couldn't be > possible to add a configuration option to avoid the suicide?I would not recommend using ntpdate to regularly adjusting the clock. Use ntpd or openntpd instead. Both adjust the time in "slighter" steps than ntpdate does: They work by accelerating or slowing down the system clock so that there won't appear "time jumps" as you mentioned them. Gruss/Regards, Christian Schmidt -- Leute, die selber Zwiebeln essen, k?nnen nicht gut beurteilen, ob andere Zwiebeln gegessen haben oder nicht. -- Thornton Niven Wilder
>dovecot: Time just moved backwards by 6 secondsSo this will show up when systems move from daylight savings time to standard time ?>As others mentioned, using ntpd avoids this problem entirely.Not entirely. If you need to restart ntpd, the time can jump when catching up with 'step-tickers'.