Registered Member
|
I've been using Akonadi and Kontact since 2012. I've had 9 email accounts connected to KMail via POP3. Over the years I've created quite a rich email directory structure with thousands of emails.
I've been experiencing some problems with Akonadi from time to time, but a recent trouble has put me in a state of despair, no exaggeration. The troubles started when my hard drive got full. I've got LVM thinly provisioned volumes and this unfortunately might happen. It actually happened to me once before, leaving Akonadi not operational, but I did have a backup from a few hours earlier, which solved the issue back then. This time I've got a backup from when I tried to start Akonadi and from a few weeks ago. As I've said, Akonadi server became not operational after a reboot when my hard drive got full. I made a full backup of this faulty state, i.e. etc. directories. This is a log of what happens when starting Akonadi from a faulty state:
To restore the faulty state, I've written a small script syncing files from a faulty state backup:
Using the script I can always go back to the above mentioned faulty state and try some things. When I delete the Akonadi database, I can easily turn off syncing by commenting a last line. I've basically tried to restore my emails (actually Akonadi/KMail email visibility, because emails are there in the 8.7 GiB directory) in three ways.
Ok, that's all I've tried so far. I appreciate your comments on how to make Akonadi not replace my own directories with its own default directories. It's really important to me, before solving the issue I won't check my email via KMail. Thanks a lot for your answers! |
Registered Member
|
I've just seen the problem again, with offline (I don't do online when checking Kontact so that no new mails mess up with already messed up tree) Kontact.
The directory structure stayed OK for a day (after restoring from the backup and deleting I run
a few times, had all the account and filter directories set correctly). When I opened the email identities pane, the directories started vanishing again, replace with a default directory tree, and the directory was created again. The log of the event:
|
Registered Member
|
|
Registered Member
|
No, the archive agent is off. So far I've inspected the logs from the faulty state and it turns out they complained about the
file. Removing the file made akonadi start and I could see all the folders there, with the proper settings for accounts and filters. Yet the joy was too early since the folders started disappearing again! What I did now was to pull a backup of that file from an earlier backup and try starting, stopping, fsck-ing and vacuuming akonadi. The folders are there with the proper settings, but the results of
depend on whether Kontact is running or not. If it's running, it seems OK, but when not, there are some scary results which were there when the folders were starting to vanish. I'm slowly getting to the point of letting Kontact download the new emails and see what happens, yet I've developed what I can call "the Akonadi syndrome" - excessive fear of seeing folders vanishing. But I must finally do it. |
Registered Member
|
Well, the problem seems to be resolved, I've been using Akonadi for a month or so after the following trick:
Interestingly, deleting the above file leaves Akonadi working for a moment, but the folders start vanishing anyway. The file needs to be pulled from a working Akonadi state backup. Now I hope the dreadful error never comes back. Since I've got a spare machine at work, I'll see what happens when importing my mail tree into the newest Kontact suite, under Tumbleweed, which I'm really eager to try anyway. |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]