After last week's struggle with the new version and my conf file, I got everything working. Now however dovecot crashes on me every few hours.
The logs show a bunch of this kind of warning, which I find mention of on the internets:
Feb 07 15:13:47 imap(58317): Warning: Time moved forward 48.803640 seconds Feb 07 16:30:27 master: Warning: Time moved forward by 694.039203 seconds - adjusting timeouts. Feb 07 16:52:47 imap(61246): Warning: Time moved forward 293.443011 seconds Feb 07 16:52:47 master: Warning: Time moved forward by 1279.423507 seconds - adjusting timeouts. Feb 07 17:25:39 imap(61286): Warning: Time moved forward 1942.575589 seconds Feb 07 17:25:39 imap(61288): Warning: Time moved forward 172.563346 seconds Feb 07 17:25:39 master: Warning: Time moved forward by 1912.666999 seconds - adjusting timeouts. Feb 07 17:49:32 imap(61286): Warning: Time moved forward 1402.761862 seconds Feb 07 17:51:13 master: Warning: Time moved forward by 1473.582569 seconds - adjusting timeouts. Feb 07 17:51:13 imap(61286): Warning: Time moved forward 70.823888 seconds Feb 07 17:53:07 master: Warning: Time moved forward by 53.843767 seconds - adjusting timeouts. Feb 07 18:44:22 imap(61286): Warning: Time moved forward 1386.259444 seconds Feb 07 19:11:41 master: Warning: Time moved forward by 615.609964 seconds - adjusting timeouts.
Note the very large jump dovecot claims is happening in all of these, up to half an hour, with a minimum of 48 seconds in this bunch. You can see that it even does a pair of these in rapid succession, like at 17:25:39 above, and will do >10 within the space of an hour.
These seem eventually to be followed by a crash ("eventually" because I'm running this on my laptop which isn't always open and running). The crash log entries all start with something like this:
Feb 07 16:17:53 imap(58315): Panic: file ./time-util.h: line 40 (timeval_add_usecs): assertion failed: (usecs >= 0)
The reports will end with one of these:
Feb 06 17:45:07 log(48089): Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0)
Feb 07 16:17:53 imap(58317): Fatal: master: service(imap): child 58317 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
One more detail, I usually do sudo brew services start dovecot
to run dovecot and this results in the crashes. When I was testing this on Saturday, I started it with sudo dovecot -F
instead, so that I would see problems in the terminal. It went all day without crashing and I finally stopped and restarted it with the brew method. That's not a rigorous test, but it is suggestive.
Happy to provide more info, but I'm hoping this is sufficient to suggest a course of action.
dovecot 2.4.0 installed via homebrew macOS 13.6.9
J