Bug 289966 - KMail exits at start since it cannot fetch root collection of akonadi (imap) maildir resource
Summary: KMail exits at start since it cannot fetch root collection of akonadi (imap) ...
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-27 23:25 UTC by Johannes Buchner
Modified: 2012-01-02 15:32 UTC (History)
3 users (show)

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 Johannes Buchner 2011-12-27 23:25:39 UTC
+++ This bug was initially created as a clone of Bug #250039 +++

I am running akonadi 1.6.2, kmail 4.7.3 and have a very similar issue as in Bug #250039: Creating an IMAP resource fails and KMail crashes/exits on startup.
I tried to clean up akonadi but it still has this 'Failed to request resource "akonadi_maildir_resource_0"' issue.
What can I do?

user@myhost ~ $ rm -rf /home/user/.kde4/cache-myhost/  /home/user/.kde4/tmp-myhost/  /home/user/.kde4/soc
ket-myhost/
user@myhost ~ $ rm -rf /home/user/.kde4/share/apps/kmail2      
user@myhost ~ $ rm -rf /home/user/.kde4/share/config/kmail*
user@myhost ~ $ rm -rf /home/user/.local/share/akonadi
user@myhost ~ $ akonadictl restart
Akonadi is not running.
user@myhost ~ $ akonadictl start
Starting Akonadi Server...
   done.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
user@myhost ~ $ search paths:  ("/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3", "/usr/games/bin", "/home/user/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "/usr/bin/mysql_install_db" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h myhost password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log
Error    : You can't use locks with log tables.
status   : OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.servers                                      OK
mysql.slow_log
Error    : You can't use locks with log tables.
status   : OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Failed to use database "akonadi" 
Query error: "Unknown database 'akonadi' QMYSQL: Unable to execute query" 
Database error: "Can't connect to local MySQL server through socket '/home/user/.local/share/akonadi/socket-myhost/mysql.socket' (2) QMYSQL: Unable to connect" 
Trying to create database now... 
Database "akonadi" opened using driver "QMYSQL" 
DbInitializer::run() 
checking table  "SchemaVersionTable" 
"CREATE TABLE SchemaVersionTable (version INTEGER NOT NULL DEFAULT 0)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
"INSERT INTO SchemaVersionTable (version) VALUES (19)" 
checking table  "ResourceTable" 
"CREATE TABLE ResourceTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARBINARY(255) NOT NULL UNIQUE, isVirtual BOOL DEFAULT false)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
"INSERT INTO ResourceTable (name,isVirtual) VALUES ('akonadi_search_resource',true)" 
checking table  "CollectionTable" 
"CREATE TABLE CollectionTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, remoteId VARBINARY(255), remoteRevision VARBINARY(255), name VARBINARY(255) NOT NULL, parentId BIGINT, resourceId BIGINT NOT NULL, subscribed BOOL NOT NULL DEFAULT true, cachePolicyInherit BOOL NOT NULL DEFAULT true, cachePolicyCheckInterval INTEGER NOT NULL DEFAULT -1, cachePolicyCacheTimeout INTEGER NOT NULL DEFAULT -1, cachePolicySyncOnDemand BOOL NOT NULL DEFAULT false, cachePolicyLocalParts VARBINARY(255), queryString VARBINARY(255), queryLanguage VARBINARY(255), FOREIGN KEY (parentId) REFERENCES CollectionTable(id) ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY (resourceId) REFERENCES ResourceTable(id) ON DELETE CASCADE ON UPDATE CASCADE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
adding index "CREATE UNIQUE INDEX CollectionTable_parentAndNameIndex ON CollectionTable (parentId,name)" 
"INSERT INTO CollectionTable (resourceId,name,parentId) VALUES (1,'Search',NULL)" 
checking table  "MimeTypeTable" 
"CREATE TABLE MimeTypeTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARBINARY(255) NOT NULL UNIQUE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
"INSERT INTO MimeTypeTable (name) VALUES ('application/octet-stream')" 
"INSERT INTO MimeTypeTable (name) VALUES ('message/rfc822')" 
"INSERT INTO MimeTypeTable (name) VALUES ('text/calendar')" 
"INSERT INTO MimeTypeTable (name) VALUES ('text/vcard')" 
"INSERT INTO MimeTypeTable (name) VALUES ('inode/directory')" 
checking table  "PimItemTable" 
"CREATE TABLE PimItemTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, rev INTEGER NOT NULL DEFAULT 0, remoteId VARBINARY(255), remoteRevision VARBINARY(255), collectionId BIGINT, mimeTypeId BIGINT, datetime TIMESTAMP DEFAULT CURRENT_TIMESTAMP, atime TIMESTAMP, dirty BOOL, size BIGINT NOT NULL DEFAULT 0, FOREIGN KEY (collectionId) REFERENCES CollectionTable(id) ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY (mimeTypeId) REFERENCES MimeTypeTable(id) ON DELETE CASCADE ON UPDATE CASCADE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
adding index "CREATE  INDEX PimItemTable_collectionIndex ON PimItemTable (collectionId)" 
checking table  "FlagTable" 
"CREATE TABLE FlagTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARBINARY(255) NOT NULL UNIQUE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
"INSERT INTO FlagTable (name) VALUES ('important')" 
"INSERT INTO FlagTable (name) VALUES ('has_attachment')" 
"INSERT INTO FlagTable (name) VALUES ('spam')" 
"INSERT INTO FlagTable (name) VALUES ('\\ANSWERED')" 
"INSERT INTO FlagTable (name) VALUES ('\\FLAGGED')" 
"INSERT INTO FlagTable (name) VALUES ('\\DELETED')" 
"INSERT INTO FlagTable (name) VALUES ('\\SEEN')" 
"INSERT INTO FlagTable (name) VALUES ('\\DRAFT')" 
checking table  "PartTable" 
"CREATE TABLE PartTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, pimItemId BIGINT NOT NULL, name VARBINARY(255) NOT NULL, data LONGBLOB, datasize BIGINT NOT NULL, version INTEGER DEFAULT 0, external BOOL DEFAULT false, FOREIGN KEY (pimItemId) REFERENCES PimItemTable(id) ON DELETE CASCADE ON UPDATE CASCADE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
adding index "CREATE UNIQUE INDEX PartTable_pimItemIdNameIndex ON PartTable (pimItemId,name)" 
adding index "CREATE  INDEX PartTable_pimItemNameIndex ON PartTable (name)" 
checking table  "CollectionAttributeTable" 
"CREATE TABLE CollectionAttributeTable (id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, collectionId BIGINT NOT NULL, type LONGBLOB NOT NULL, value LONGBLOB, FOREIGN KEY (collectionId) REFERENCES CollectionTable(id) ON DELETE CASCADE ON UPDATE CASCADE)  COLLATE=utf8_general_ci DEFAULT CHARSET=utf8" 
adding index "CREATE  INDEX CollectionAttributeTable_collectionIndex ON CollectionAttributeTable (collectionId)" 
checking relation  "PimItemFlagRelation" 
"CREATE TABLE PimItemFlagRelation (PimItem_id INTEGER REFERENCES PimItemTable(id), Flag_id INTEGER REFERENCES FlagTable(id), PRIMARY KEY (PimItem_id, Flag_id))" 
checking relation  "CollectionMimeTypeRelation" 
"CREATE TABLE CollectionMimeTypeRelation (Collection_id INTEGER REFERENCES CollectionTable(id), MimeType_id INTEGER REFERENCES MimeTypeTable(id), PRIMARY KEY (Collection_id, MimeType_id))" 
checking relation  "CollectionPimItemRelation" 
"CREATE TABLE CollectionPimItemRelation (Collection_id INTEGER REFERENCES CollectionTable(id), PimItem_id INTEGER REFERENCES PimItemTable(id), PRIMARY KEY (Collection_id, PimItem_id))" 
DbInitializer::run() done 
skipping update 2 
skipping update 3 
skipping update 4 
skipping update 8 
skipping update 10 
skipping update 12 
skipping update 13 
skipping update 14 
skipping update 15 
skipping update 16 
skipping update 17 
skipping update 18 
skipping update 19 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Akonadi::NepomukSearchEngine(0x24650c0) QObject(0x0)  
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
DataStore::unhideAllPimItems() 
PLUGINS:  "/usr/share/akonadi/agents" 
PLUGINS:  ("akonotesresource.desktop", "birthdaysresource.desktop", "calendarsearchagent.desktop", "contactsresource.desktop", "davgroupwareresource.desktop", "icalresource.desktop", "imapresource.desktop", "invitationsagent.desktop", "kabcresource.desktop", "kcalresource.desktop", "kdeaccountsresource.desktop", "knutresource.desktop", "kolabproxyresource.desktop", "localbookmarksresource.desktop", "maildirresource.desktop", "maildispatcheragent.desktop", "mboxresource.desktop", "microblog.desktop", "mixedmaildirresource.desktop", "mtdummyresource.desktop", "nepomukcalendarfeeder.desktop", "nepomukcontactfeeder.desktop", "nepomukemailfeeder.desktop", "nepomuktagresource.desktop", "nntpresource.desktop", "notesresource.desktop", "openxchangeresource.desktop", "pop3resource.desktop", "vcarddirresource.desktop", "vcardresource.desktop") 
PLUGINS inserting:  "akonadi_akonotes_resource" 2 ("Resource", "Notes") 
search paths:  ("/usr/local/bin", "/usr/bin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3", "/usr/games/bin", "/home/user/bin") 
PLUGINS inserting:  "akonadi_birthdays_resource" 0 ("Resource", "Unique") 
PLUGINS inserting:  "akonadi_calendarsearch_agent" 0 ("Unique", "NoConfig") 
PLUGINS inserting:  "akonadi_contacts_resource" 1 ("Resource") 
PLUGINS inserting:  "akonadi_davgroupware_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_ical_resource" 3 ("Resource") 
PLUGINS inserting:  "akonadi_imap_resource" 2 ("Resource") 
PLUGINS inserting:  "akonadi_invitations_agent" 0 ("NoConfig") 
PLUGINS inserting:  "akonadi_kabc_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_kcal_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_kdeaccounts_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_knut_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_kolabproxy_resource" 0 ("Resource", "Unique") 
PLUGINS inserting:  "akonadi_localbookmarks_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_maildir_resource" 1 ("Resource") 
PLUGINS inserting:  "akonadi_maildispatcher_agent" 0 ("Unique", "Autostart") 
PLUGINS inserting:  "akonadi_mbox_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_microblog_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_mixedmaildir_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_mailtransport_dummy_resource" 0 ("Resource", "MailTransport") 
PLUGINS inserting:  "akonadi_nepomuk_calendar_feeder" 0 ("Unique", "Autostart", "NoConfig") 
PLUGINS inserting:  "akonadi_nepomuk_contact_feeder" 0 ("Unique", "Autostart", "NoConfig") 
PLUGINS inserting:  "akonadi_nepomuk_email_feeder" 0 ("Unique", "Search", "Autostart") 
PLUGINS inserting:  "akonadi_nepomuktag_resource" 0 ("Resource", "Virtual", "Unique", "NoConfig") 
PLUGINS inserting:  "akonadi_nntp_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_notes_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_openxchange_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_pop3_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_vcarddir_resource" 0 ("Resource") 
PLUGINS inserting:  "akonadi_vcard_resource" 0 ("Resource") 
Recovering instance "akonadi_akonotes_resource_0" after database loss 
Recovering instance "akonadi_akonotes_resource_1" after database loss 
Recovering instance "akonadi_contacts_resource_0" after database loss 
Recovering instance "akonadi_ical_resource_0" after database loss 
Recovering instance "akonadi_ical_resource_1" after database loss 
Recovering instance "akonadi_imap_resource_0" after database loss 
Recovering instance "akonadi_maildir_resource_0" after database loss 
Akonadi server is now operational. 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.23512", ":1.23511") 
Agent instance created in separate process. 
Database "akonadi" opened using driver "QMYSQL" 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
search paths:  ("/usr/lib64/kde4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/plugins/", "/usr/lib64/kde4/plugins/", "/usr/lib64/qt4/plugins", "/usr/bin", "/mnt/data/daten/Master/home/.kde4/lib64/kde4/", "/usr/lib64/kde4/") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.23512", ":1.23511", ":1.23515") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.23512", ":1.23511", ":1.23515", ":1.23517") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.23512", ":1.23511", ":1.23515", ":1.23517", ":1.23516") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.23512", ":1.23511", ":1.23515", ":1.23517", ":1.23516", ":1.23514") 
Agent instance created in separate process. 
Database "akonadi" opened using driver "QMYSQL" 
Agent instance created in separate process. 
Database "akonadi" opened using driver "QMYSQL" 
Agent instance created in separate process. 
Agent instance created in separate process. 
Agent instance created in separate process. 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Known subscriber "akonadi_maildispatcher_agent" subscribes again 
Known subscriber "akonadi_maildispatcher_agent" subscribes again 
akonadi_nepomuk_email_feeder(29477)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474) OutboxQueue::Private::localFoldersRequestResult: Failed to get outbox folder. Retrying in:  5000 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
Database "akonadi" opened using driver "QMYSQL" 
akonadi_imap_resource_0(29472)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474) OutboxQueue::Private::localFoldersRequestResult: Failed to get outbox folder. Retrying in:  10000 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474) OutboxQueue::Private::localFoldersRequestResult: Failed to get outbox folder. Retrying in:  15000 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474) OutboxQueue::Private::localFoldersRequestResult: Failed to get outbox folder. Giving up. 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_maildispatcher_agent(29474)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
akonadi_imap_resource_0(29472)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Comment 1 Johannes Buchner 2011-12-27 23:27:08 UTC
This is on an uptodate Gentoo.
Comment 2 Christophe Marin 2012-01-02 13:54:46 UTC
Duplicating a closed report is useless. Paste the output you get instead.

Note: in ~/.config/akonadi/akonadiserverrc, if Driver is QSQLITE, complain to Gentoo.
Comment 3 Johannes Buchner 2012-01-02 14:00:19 UTC
akonadiserverrc uses QMYSQL.

Did you mean the output of kmail?
$ kmail
kmail2(12632)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Unknown error. (Failed to fetch the resource collection.)" 
kmail2(12632) MailCommon::Kernel::emergencyExit: "KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection." 
kmail2(12632)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Unknown error. (Failed to fetch the resource collection.)" 
libpng warning: Interlace handling should be turned on when using png_read_image
Plugin paths:  ("/usr/lib64/qt4/plugins", "/mnt/data/daten/Master/home/.kde4/lib64/", "/usr/lib64/") 
Trying to load Attica plugin:  "/usr/lib64/qt4/plugins/attica_kde.so" 
Trying to load Attica plugin:  "/mnt/data/daten/Master/home/.kde4/lib64//attica_kde.so" 
Trying to load Attica plugin:  "/usr/lib64//attica_kde.so" 
Using Attica with KDE support 
Adding provider "https://api.opendesktop.org/v1/"
Comment 4 Johannes Buchner 2012-01-02 14:03:06 UTC
All the output in this bug is mine (nothing was taken over from the cloned bug); also it clearly says in the first comment that it connects using QMYSQL.
Comment 5 Johannes Buchner 2012-01-02 15:32:23 UTC
What is the reason that this bug was closed as invalid?

It may be a packaging bug of gentoo, so I created a bug there too: https://bugs.gentoo.org/show_bug.cgi?id=397397

However, I don't know how to debug this better, i.e. "Unknown error", where does that stem from, what kind of error could it be (compilation issue, invalid files, configuration/connection problems). I don't have any mail data and just want to initialize akonadi. Your expertise would be appreciated.