On a new installation of kubuntu 12.04, attempting to launch kmail gives me following error followed by it shutting down. KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection. $ "/usr/bin/kmail(2788)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files" kmail2(2788)/nepomuk (library) {anonymous}::GlobalModelContainer::init: Connecting to local socket "/tmp/ksocket-ill/nepomuk-socket" "/usr/bin/kmail(2788)" Soprano: "QLocalSocket::connectToServer: Invalid name" kmail2(2788)/nepomuk (library) {anonymous}::GlobalModelContainer::init: Failed to connect to Nepomuk server via local socket "/tmp/ksocket-ill/nepomuk-socket" "/usr/bin/kmail(2788)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files" "/usr/bin/kmail(2788)" Soprano: "Unsupported operation (2)": "Invalid model" "/usr/bin/kmail(2788)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files" "/usr/bin/kmail(2788)" Soprano: "Unsupported operation (2)": "Invalid model" "/usr/bin/kmail(2788)" Soprano: "Invalid iterator." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" kmail2(2788) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now. The error was: Failed to fetch the resource collection." kmail2(2788)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)"
This seems to be some setup problem. kmail does not crash here but exits due to the mentioned error. Can you check if akonadi is already running when you start kmail and try again, please ? Also, what akonadi resources are configured ?
About 30 processes are running that have akonadi in their names. And kmail will reliably crash on startup on a new kubuntu install without messing with akonadi resources for me.