Bug 388170 - Often in kmail the information bar shows a hanging message about synchronizing the trash folder of a specific IMAP account
Summary: Often in kmail the information bar shows a hanging message about synchronizin...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.7.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-23 12:08 UTC by Freek de Kruijf
Modified: 2022-08-19 09:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2017-12-23 12:08:52 UTC
I have quite large IMAP account on a server with dovecot (~12000 messages) .
After starting kontact/kmail and after a while the information bar at the bottom of the window shows a message indicating that the trash folder of that IMAP account is being synchronized. The progress shown is not 100%, it varies, but it does not change anymore. A click on the arrow to show more info shows only the progress bar of synchronizing the trash folder of that particular IMAP account at 100%. However it stays that way.
I tried command "akonadictl fsck", which sometimes shows irregular things, but a second time, these are gone.
Currently "akonadictl vacuum" hangs after showing "optimizing table CollectionTable..."
Also kontact/kmail does not show new messages. It shows turning dots in front of the inbox.
After quite a while I give the command "akonadictl stop", which sometimes shows a bug report, but even after installing the requested debug package, it shows a that the bug report is not usable. akonadiserver crashed with a Segmentation fault (11). Now akonadi vacuum continues but hangs in "optimizing table PartTable...". "akonadictl status" shows "stopped".
The bApplication: akonadiserver (5.7.0)

Qt Version: 5.9.3
Frameworks Version: 5.40.0
Operating System: Linux 4.14.6-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
<Vertel ons in detail wat u aan het doen was toen het programma crashte.>

The crash can be reproduced every time.

-- Backtrace:
A useful backtrace could not be generatedug report is:

akonadictl vacuum still hangs.
In kmail I can start akonadi again and things look normal apart from the message in the messages bar where only the filter agent hangs.
After deleting some messages in the inbox of that IMAP acount I have the situation back where the message bar shows 59% progress, but clicking the arrow on that bar shows 100% progress on synchronizing the trash folder. The number of messages in the trash folder is not updated after deleting the messages in the inbox.
Comment 1 Freek de Kruijf 2017-12-23 12:59:40 UTC
After the description in #1 I logged out and in again to start akonadi fresh.
Before starting kontact I did a "akonadictl fsck" and "akonadictl vacuum"; both finished OK. However fsck reported a few duplicated messages in that trash folder. I decided use akonadiconsole. I selected the IMAP account with the problematic trash folder and activated Settings...->Configure Natively. Selecting tab Advanced I noticed that the field for the Trash folder was empty. Trying to configure the Trash folder of that account, which should have been there, I got nothing to choose from. I canceled the configuration action. Pressed Restart went back to Settings...->Configure Natively, and found that field for the Trash folder contained the Trash folder of the IMAP account, as it should have. Currently, a few minutes after the Restart, it shows Folder Trash being synchronized (149%). A Restart at the bottom of the console does not work. Toggling off and on does work and shows the account connected. However the configuration again shows an empty Trash folder field. Using the context menu I restarted the agent and it shows Ready and the field shows again the right Trash folder.
Comment 2 Freek de Kruijf 2017-12-23 13:40:45 UTC
I checked the number of messages in the Trash folder on the dovecot server. The number there was 10 more than what was shown in kmail. So I decided to lower the number of days messages should be kept. This lowered the number in kmail to 2304, however nothing happened on the dovecot server. I still have the original amount 2375.
Comment 3 Freek de Kruijf 2022-08-19 09:11:40 UTC
Apparently solved