Roundcube: UID SORT: Internal error occurred. Refer to server log for more information

RobertFZHosting

Verified User
Joined
Jan 30, 2024
Messages
5
Hi,

One of my email users informs me that he gets this error message when logging in to Roundcube. It only seems to happen in the INBOX folder, the other folders are fine.

I've followed a couple of guides, using a script to reset permissions, see below, but that doesn't seem to do the trick. The error message was also visible on a couple of cPanel forums, but obviously those scripts don't exist. cd /usr/local/directadmin/scripts + ./set_permissions.sh all

If I look in the mail.log I see the follow error message, which after searching seems to have to do with : Mailbox cache file mentioned in the error is broken or corrupted

"Error: Mailbox INBOX: failed: Cached message size larger than expected (95016 > 0, box=INBOX, UID=34492) (read reason=)"

There are way too many individual files/messages to repair, so I need something like a complete fix that rebuilds the cache I guess.


Any ideas how to do this? Or is it just easier to backup the mail files, remove the mailbox and add it back again?
 
I moved all the files to another subfolder and now the problem has moved to that sub-folder. The inbox works fine and I can see new email coming in.

Does that mean there is an issue with one of the underlying files instead of the cache? Because the Inbox cache is working fine now? Then now how do I fix the underlying folder.
 
It turns out it was a number of 0 byte files, once I simply removed the files (0 byte emails don't have valid content anyway) the folders started working again.

I'll leave this up for reference in case anyone in the future has the same problem.
 
Back
Top