Page MenuHomePhorge

Kontact crashes on first start with "Failed to fetch the resource collection"
Closed, ResolvedPublic

Description

Probably a timeout somewhere.

[248] Akonadi server is now operational.
[1644] akonadi_maildispatcher_agent(1644)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[1644] akonadi_maildispatcher_agent(1644) void
thiscall OutboxQueue::Private::localFoldersRequestResult(class KJob *): Failed to get outbox folder. Retrying in: 5000
[1644] akonadi_maildispatcher_agent(1644)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[1644] akonadi_maildispatcher_agent(1644)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[1644] akonadi_maildispatcher_agent(1644)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void
thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void
thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJob::slotResult(class KJob *): Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
[708] kontact(708) void thiscall MailCommon::Kernel::emergencyExit(const class QString &): "The Email program encountered a fatal error and will terminate now.
[708] The error was:
[708] Failed to fetch the resource collection."
[708] kontact(708)/libakonadi void
thiscall Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult(class KJob *): Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
[1516] list is empty
[1516] list is empty

Details

Ticket Type
Task

Event Timeline

mollekopf raised the priority of this task from to 60.
mollekopf updated the task description. (Show Details)
mollekopf added a project: KDE PIM.
mollekopf changed Ticket Type from Task to Task.
mollekopf subscribed.

See akonadi/specialcollectionshelperjobs.cpp DefaultResourceJobPrivate::tryFetchResource(). There is no guarantee that the resource created its root collection yet, so we end up in a race condition.

Can either be fixed by trying to fetch repeatedly until the collections are available (they should become available eventually), or we can just ignore the issue since it only happens on first start and could be avoided by starting akonadi in advance with the system.

mollekopf added a project: Restricted Project.Dec 2 2015, 3:36 PM
petersen added a project: Restricted Project.Dec 8 2015, 11:41 AM
mollekopf claimed this task.
mollekopf moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

I also got this error. Is this being worked on ? I'd like to help if I can as I'm a C++ ( and newb Qt ) programmer.