I am still getting panics. Today I'm seeing this panic only when 'eM Client' connects. Not other imap clients. It's almost as if there's a malformed message in my mailbox which might be causing this. I spent some time trying to do things like delete the last 20 messages or so but no luck.
I tried to enable debugging in 10-logging but i get nothing at all in the log file /var/log/dovecot. Yes I've restarted dovecot.
I'm running the version from here: https://repo.dovecot.org/ce-2.3-latest/debian/bullseye
Any ideas??
Mar 26 19:23:14 strange dovecot: imap(mgrant)<2743779>
I could really use some help debugging issue. It seems like dovecot is panicing because of some specific message(s) in my inbox. I can't find any easy way to get either my mail client or dovecot to tell me what it doesn't like. The mail client just says dovecot disconnects in the middle of the conversation. Meanwhile, dovecot panics.
Is there some way to turn on imap logging so dovecot tells me step by step which message got requested and which one it's sending to the client?
I've run 'doveadm -v force-resync -u me@myserver.com me' many times. It returns very fast. I don't know if that's normal or not. Regardless, it does not help.
Is there some method to go through a mailbox (it's an mbox single-file mailbox) and sort out any problems?
Clearly dovecot is freaked by something in there, I just can't figure out what.
I can not migrate the entire server to maildir. I would be willing to migrate just my inbox to maildir to see if this fixes it. Any help on how to do this? Can this be done such that my ~/mail/* files remain as mbox files?
Michael Grant
Am 27.03.24 um 18:49 schrieb Michael Grant via dovecot:
I could really use some help debugging issue.
Timo gave some debugging tips in a similar case cf. https://dovecot.org/pipermail/dovecot/2023-March/126229.html
In case you know how to use gdb, that should work and might get a reproducer so this error can be mended for everybody.
------ Original Message ------ From "Daniel Lange" DLange@debian.org To "Michael Grant" mgrant@grant.org Cc "dovecot@dovecot.org" dovecot@dovecot.org Date 27/03/2024 18:14:11 Subject Re: panics
Am 27.03.24 um 18:49 schrieb Michael Grant via dovecot:
I could really use some help debugging issue.
Timo gave some debugging tips in a similar case cf. https://dovecot.org/pipermail/dovecot/2023-March/126229.html
In case you know how to use gdb, that should work and might get a reproducer so this error can be mended for everybody.
This was helpful thanks. I do know how to use gpb, but hoping it won't come to this. I was thinking of how to do that anyway. There must be way to start dovecot (in gdb) so it does not fork and runs on a non-standard port so I could configure the imap client to contact it on, for example, port 1993. If someone knows how to do that, let me know.
I used 'doveadm backup' to convert the mbox inbox to Maildir. It had several errors. I removed the cache, tried again, and it seems now to be a clean Maildir.
Is it possible to specify a Maildir inbox but an mbox ~/mail folder (e.g. ~/mail/Trash, ~/mail/Junk ...etc as mbox files)? Is that possible to configure in a line in the dovecot userpasswd file on a per user basis?
On 27/03/2024 21:10 EET Michael Grant via dovecot dovecot@dovecot.org wrote:
------ Original Message ------
From "Daniel Lange" DLange@debian.org To "Michael Grant" mgrant@grant.org Cc "dovecot@dovecot.org" dovecot@dovecot.org Date 27/03/2024 18:14:11 Subject Re: panics
Am 27.03.24 um 18:49 schrieb Michael Grant via dovecot:
I could really use some help debugging issue.
Timo gave some debugging tips in a similar case cf. https://dovecot.org/pipermail/dovecot/2023-March/126229.html
In case you know how to use gdb, that should work and might get a reproducer so this error can be mended for everybody.
This was helpful thanks. I do know how to use gpb, but hoping it won't come to this. I was thinking of how to do that anyway. There must be way to start dovecot (in gdb) so it does not fork and runs on a non-standard port so I could configure the imap client to contact it on, for example, port 1993. If someone knows how to do that, let me know.
I used 'doveadm backup' to convert the mbox inbox to Maildir. It had several errors. I removed the cache, tried again, and it seems now to be a clean Maildir.
Is it possible to specify a Maildir inbox but an mbox ~/mail folder (e.g. ~/mail/Trash, ~/mail/Junk ...etc as mbox files)? Is that possible to configure in a line in the dovecot userpasswd file on a per user basis?
gdb /usr/lib/dovecot/imap r -u username
Aki
Am 27.03.24 um 18:49 schrieb Michael Grant via dovecot:
I could really use some help debugging issue.
Timo gave some debugging tips in a similar case cf. https://dovecot.org/pipermail/dovecot/2023-March/126229.html
In case you know how to use gdb, that should work and might get a reproducer so this error can be mended for everybody.
This was helpful thanks. I do know how to use gdb, but hoping it won't come to this. I was thinking of how to do that anyway. There must be way to start dovecot (in gdb) so it does not fork and runs on a non-standard port so I could configure the imap client to contact it on, for example, port 1993. If someone knows how to do that, let me know.
gdb /usr/lib/dovecot/imap r -u username
I tried what you said above. It seems to start IMAP running on stdin connected to my username.
It's not clear to me how to debug this like that. Any recommendation?
In the client, I can easily set a different port like 1993. What I was imagining was to start dovecot (or imap?) in gdb then connect with the client, authenticate as myself, let it sync up it's folders, and then watch the crash and poke around and try to print out the message and folder.
Would it be easy for you to maybe print out the message and folder in the assertion that is failing? Maybe this is easier for me to recompile dovecot with that instead of trying to get into debug in the correct child and all?
participants (4)
-
Aki Tuomi
-
Daniel Lange
-
mgrant@grant.org
-
Michael Grant