![]() Registered Member ![]()
|
Hello,
I created some new IMAP identities / accounts in KMail, but suddenly I get following error when starting KMail:
This happened after I shut down KMail, and later tried to start it again but noticed the old process was still running in the background. I then killed the both processes through task manager. Is there an easy fix for this ? EDIT: forgot to add: this error also pops up when opening Kontact, so it's not limited to KMail. TIA, Bart. |
![]() Registered Member ![]()
|
Hi!
You need to provide more information. Which distribution you use, what the logs say, akonadis status, etc. It could just be wrong permission setting, normally »achieved« using `sudo` with graphical tools which you should never ever do. Check it with
No output is good output. If anything is listed, correct the permissions. |
![]() Registered Member ![]()
|
Hey, thanks for your reply.
I doubt it's a permission problem, I got KMail up and running for a day or 2 until the program didn't shut down properly or something, and the troubles began. Anyway, here's some output I gathered: Permission check:
Akonadi status:
System info: (through neofetch)
var/log/messages.txt output
|
![]() Registered Member ![]()
|
There is a problem with mysql for your resourceID4. The first thing to try would be running
If not, there is a possibility to try different things. One would be to work in the mariaDB/mysqlDB directly using
|
![]() Registered Member ![]()
|
Thanks for the suggestions. Unfortunately, the akonadi commands didn't fix the problem.
I managed to connect to that mysql socket and query / list some tables and data, but I have no clue where to go from there... Some output:
And since the error log mentioned 'CollectionTable':
|
![]() Registered Member ![]()
|
Can you check the ouptut of `select id,remoteId,parentId,resourceId from collectiontable where name='trash';`? I cannot see a duplicate entry in your output.
As it is the trashbin of your (imap)-account, you could perhaps just remove it or disable the full ID 4. |
![]() Registered Member ![]()
|
Hmm... no duplicate to be found here ![]()
I suppose it's safe to flip 'enabled' to 0, just to check if it fixes anything ? |
![]() Registered Member ![]()
|
Do you have a manually installed mysql/mariadb on this system too? Seems like the database itself does not know this error, at least not at this socket/database/table.
Did you log the output of akonadictl fsck? |
![]() Registered Member ![]()
|
No, no other mysql instances or databases that I installed manually. I didn't record fsck output the first time, didn't seem to be anything special in it... I just ran it again now and it gives:
I re-installed akonadi-server and Kmail (without deleting anything under $HOME/) but that didn't change anything either. However I did found out today, in directory $HOME/.config/akonadi there's 1 file constantly being deleted and re-written. Filename = agent_config_akonadi_imap_resource_2, which corresponds with one of my IMAP accounts? It's the only one that does that, not sure why... Thanks for hanging on ! |
![]() Registered Member ![]()
|
Okay. I really do not know why. Is it an IMAP-account? Then you could just delete it and add it as a new one if the mails are left on the server. But I remember a lot of hassle with gmail-accounts over the past years.
Sorry to have no ideas left ![]() |
![]() Registered Member ![]()
|
They're 2 non-Gmail IMAP accounts yes, but I think I solved it now ![]() I found an older thread on the web that kinda described the same problem. The 'solution' was to go to folder $HOME/.local/share/akonadi_maildir_resource_0/ where the last foldername matches the resource name (resourceId 4 from my query). There you'll see the Local Folders (I suppose) and I just renamed 'trash' to 'trash_REN'. So now the trash folder was re-created on KMail startup, and all is good. Oh, and the other weird thing with the "agent_config_akonadi_imap_resource_2" file being re-written constantly, was due to a wrong password in my settings for that account. Thanks for all the suggestions though, I learned something new at least ![]() |
![]() Registered Member ![]()
|
me too. Thanks for sharing the solution! Renaming a folder is a good to know idea ![]() |
![]() Registered Member ![]()
|
I had a nearly identical problem and the proposed solution worked like a charm. Thanks for documenting it!
|
![]() Registered Member ![]()
|
IN A NUTSHELL
IN DETAIL I faced the same problem after I changed the `Trash folder` in my IMAP profile. Name of `Trash folder` on server was the same as local `Trash folder`. So I see an error message on every startup of kmail and then kmail crushes. Solution suggested by bartvaes was not suitable for the KDE5. But it was useful to find out the correct solution.
In KDE5 now akonadi_maildir_resource_0 is just a file not a dir.
akonadi_maildir_resource_0 contains nothing useful.
akonadi_maildir_resource_0rc contains path to the DB tree.
I go to $HOME/.local/share/local-mail and then rename the `Trash folder`: trash --> trash_loc. I have next versions of packets: plasmashell 5.20.5 akonadictl 5.15.3 (20.08.3) kmail2 5.15.3 (20.08.3) |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]