Version: 4.5 (using KDE 4.5.0) OS: Linux I am running the Arch Linux KDE packages at version 4.5.1. I upgraded to KDEPIM 4.4.93 from the Arch [kde-unstable] repository. I started without any KMail configuration. I set up a GMail account as D-IMAP and did serverside subscription to "All Mails", but no other folder. When I tried to synchronize emails, no progress was visible. Eventually, I exited KMail. When I restarted KMail, it opened a popup window that complained "Could not fetch root collection of resource akonadi_maildir_resource_0." Clicking "OK" results in KMail exiting. I thus ran Akonadi Console. It shows the "GMail" resource as "Synching collection 'All Mail' (100%)". Aborting, restarting and toggling online and offline mode does not fix the issue. The Akonadi Console Debugger shows this: 0xb0b0f8a8 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0x94ae160 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0x94ae160 0 LOGIN "EntityTreeModel-1399111144" EntityTreeModel-1399111144 (0x94ae160) 0 OK User logged in EntityTreeModel-1399111144 (0x94ae160) 1 LIST 0 INF (MIMETYPE (message/rfc822)) (STATISTICS true ANCESTORS INF) EntityTreeModel-1399111144 (0x94ae160) * 53 52 (NAME "All Mail" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/All Mail" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((52 "/[Gmail]") (51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692" uidnext "45817" collectionflags "\\Answered \\Flagged \\Draft \\Deleted \\Seen" uidvalidity "1") EntityTreeModel-1399111144 (0x94ae160) * 52 51 (NAME "[Gmail]" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/[Gmail]" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692") EntityTreeModel-1399111144 (0x94ae160) * 51 0 (NAME "GMail" MIMETYPE () REMOTEID "imap://firstname.lastname@gmail.com@imap.gmail.com/" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((0 "")) AccessRights "" noselect "1") EntityTreeModel-1399111144 (0x94ae160) 1 OK List completed 0xb0b11568 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0xb0b0f830 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0xb0b0f830 0 LOGIN "EntityTreeModel-699370096" EntityTreeModel-699370096 (0xb0b0f830) 0 OK User logged in EntityTreeModel-699370096 (0xb0b0f830) 1 LIST 0 INF (MIMETYPE (message/rfc822)) (STATISTICS true ANCESTORS INF) EntityTreeModel-699370096 (0xb0b0f830) * 53 52 (NAME "All Mail" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/All Mail" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((52 "/[Gmail]") (51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692" uidnext "45817" collectionflags "\\Answered \\Flagged \\Draft \\Deleted \\Seen" uidvalidity "1") EntityTreeModel-699370096 (0xb0b0f830) * 52 51 (NAME "[Gmail]" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/[Gmail]" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692") EntityTreeModel-699370096 (0xb0b0f830) * 51 0 (NAME "GMail" MIMETYPE () REMOTEID "imap://firstname.lastname@gmail.com@imap.gmail.com/" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((0 "")) AccessRights "" noselect "1") EntityTreeModel-699370096 (0xb0b0f830) 1 OK List completed 0xb0b34d50 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0xb0b10970 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0xb0b0f840 * OK Akonadi Almost IMAP Server [PROTOCOL 26] 0xb0b34d50 0 LOGIN "kmail2-1573736397" 0xb0b0f840 0 LOGIN "KMail Kernel ETM" kmail2-1573736397 (0xb0b34d50) 0 OK User logged in KMail Kernel ETM (0xb0b0f840) 0 OK User logged in KMail Kernel ETM (0xb0b0f840) 1 LSUB 0 INF (MIMETYPE (message/rfc822)) (STATISTICS true ANCESTORS INF) KMail Kernel ETM (0xb0b0f840) * 53 52 (NAME "All Mail" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/All Mail" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((52 "/[Gmail]") (51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692" uidnext "45817" collectionflags "\\Answered \\Flagged \\Draft \\Deleted \\Seen" uidvalidity "1") KMail Kernel ETM (0xb0b0f840) * 52 51 (NAME "[Gmail]" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/[Gmail]" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((51 "imap://firstname.lastname@gmail.com@imap.gmail.com/") (0 "")) collectionquota "2142916608 7858031616" imapquota " %%%% STORAGE % 7673859 %%%% STORAGE % 2092692") KMail Kernel ETM (0xb0b0f840) * 51 0 (NAME "GMail" MIMETYPE () REMOTEID "imap://firstname.lastname@gmail.com@imap.gmail.com/" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((0 "")) AccessRights "" noselect "1") KMail Kernel ETM (0xb0b0f840) 1 OK List completed kmail2-1573736397 (0xb0b34d50) 1 BEGIN kmail2-1573736397 (0xb0b34d50) 1 OK Begin completed KMail Kernel ETM (0xb0b0f840) 2 LSUB 0 1 () () KMail Kernel ETM (0xb0b0f840) * 10 0 (NAME "Birthdays & Anniversaries" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "akonadi_birthdays_resource" REMOTEREVISION "" RESOURCE "akonadi_birthdays_resource_2" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) AccessRights "") KMail Kernel ETM (0xb0b0f840) * 51 0 (NAME "GMail" MIMETYPE (inode/directory) REMOTEID "imap://firstname.lastname@gmail.com@imap.gmail.com/" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" CACHEPOLICY (INHERIT false INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) AccessRights "" noselect "1") KMail Kernel ETM (0xb0b0f840) * 9 0 (NAME "Personal Contacts" MIMETYPE (inode/directory text/directory application/x-vnd.kde.contactgroup) REMOTEID "/home/firstname/.local/share/contacts/" REMOTEREVISION "" RESOURCE "akonadi_contacts_resource_0" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) AccessRights "a") KMail Kernel ETM (0xb0b0f840) * 1 0 (NAME "Search" MIMETYPE () REMOTEID "" REMOTEREVISION "" RESOURCE "akonadi_search_resource" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ) KMail Kernel ETM (0xb0b0f840) 2 OK List completed kmail2-1573736397 (0xb0b34d50) 2 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) KMail Kernel ETM (0xb0b0f840) 3 SELECT SILENT 53 KMail Kernel ETM (0xb0b0f840) 3 OK Completed kmail2-1573736397 (0xb0b34d50) 2 OK List completed KMail Kernel ETM (0xb0b0f840) 4 FETCH 1:* ANCESTORS INF EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD) kmail2-1573736397 (0xb0b34d50) 3 ROLLBACK kmail2-1573736397 (0xb0b34d50) 3 OK Rollback completed KMail Kernel ETM (0xb0b0f840) 4 OK FETCH completed kmail2-1573736397 (0xb0b34d50) 4 BEGIN kmail2-1573736397 (0xb0b34d50) 4 OK Begin completed KMail Kernel ETM (0xb0b0f840) 5 LSUB 1 1 () (STATISTICS true ANCESTORS INF) KMail Kernel ETM (0xb0b0f840) 5 OK List completed kmail2-1573736397 (0xb0b34d50) 5 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) kmail2-1573736397 (0xb0b34d50) 5 OK List completed kmail2-1573736397 (0xb0b34d50) 6 ROLLBACK kmail2-1573736397 (0xb0b34d50) 6 OK Rollback completed kmail2-1573736397 (0xb0b34d50) 7 BEGIN kmail2-1573736397 (0xb0b34d50) 7 OK Begin completed kmail2-1573736397 (0xb0b34d50) 8 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) kmail2-1573736397 (0xb0b34d50) 8 OK List completed kmail2-1573736397 (0xb0b34d50) 9 ROLLBACK kmail2-1573736397 (0xb0b34d50) 9 OK Rollback completed kmail2-1573736397 (0xb0b34d50) 10 BEGIN kmail2-1573736397 (0xb0b34d50) 10 OK Begin completed kmail2-1573736397 (0xb0b34d50) 11 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) kmail2-1573736397 (0xb0b34d50) 11 OK List completed kmail2-1573736397 (0xb0b34d50) 12 ROLLBACK kmail2-1573736397 (0xb0b34d50) 12 OK Rollback completed kmail2-1573736397 (0xb0b34d50) 13 BEGIN kmail2-1573736397 (0xb0b34d50) 13 OK Begin completed kmail2-1573736397 (0xb0b34d50) 14 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) kmail2-1573736397 (0xb0b34d50) 14 OK List completed kmail2-1573736397 (0xb0b34d50) 15 ROLLBACK kmail2-1573736397 (0xb0b34d50) 15 OK Rollback completed kmail2-1573736397 (0xb0b34d50) 16 BEGIN kmail2-1573736397 (0xb0b34d50) 16 OK Begin completed kmail2-1573736397 (0xb0b34d50) 17 LSUB 0 INF (RESOURCE akonadi_maildir_resource_0) (STATISTICS true) kmail2-1573736397 (0xb0b34d50) 17 OK List completed kmail2-1573736397 (0xb0b34d50) 18 ROLLBACK kmail2-1573736397 (0xb0b34d50) 18 OK Rollback completed Please let me know how I can help in discovering what goes wrong. I will keep KMail the way it is to preserve its state. Reproducible: Always
Can confirm. Scenario is the same for me: 1. Installed ArchLinux in VM 2. Enabled kde-unstable repository 3. Updated to test kdepim-kmail-4.4.93-1 4. Started it, it shown the first-run account setup wizard 5. Entered my kde email (dimsuzkde@gmail.com) + passwd 6. Leaved an option "Check for settings online" 7. Looks like the settings were obtained correctly (wow!) 8. Pressed "Check Mail" 9. Was presented with an error message: "Could not fetch root collection of resource akonadi_maildir_resource_0" The log currently has *a lot* of repeating messages: kmail2(2011) KMKernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Could not fetch root collection of resource akonadi_maildir_resource_0." kmail2(2011)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Could not fetch root collection of resource akonadi_maildir_resource_0.)" It even run out of konsole's scrollback, and contains only these messages.
Hello, I frequently install then remove kdepim and semantic-desktop (KDE and KDEPIM 4.7.0 on Gentoo), and I might have triggered this problem for myself (not saying it's a bug necessarily 'cause it would be my fault) on my most recent install by incompletely deleting akonadi/nepomuk/kdepim config files during the last removal. (It was akonadi_maildir_resource_3, but oh well.) Going into System Settings > Personal Information > Akonadi Resources Configuration, and deleting the "Local Folders" maildir resource, fixed the problem for me. KMail recreated it and was fine after that. (I didn't know to look at akonadiconsole though.) If the bug's already fixed for you, then great (and hopefully this trick will help someone in the future)!
This one sounds like a corrupted database case. It happened back in the days before kdepim 4.6 final was actually released. I would advise starting with a fresh akonadi config on 4.7 and see if that still happen. In any case didn't hit that one in a very long time (or only when I did a mistake on my development setup ;) ), it just works for me so closing as such.