Page MenuHomePhorge

akonadi LIST fails to insert mimetype and bails out
Closed, WontfixPublic

Description

It can happen that the LIST command tries to insert a mimetype (after it checked that it isn't already there), but then fails to insert because it was added meanwhile. This aborts the complete LIST job (which it wouldn't have to).
Other places that insert a mimetype for the collection are:
create.cpp, modify.cpp, akappend.cpp, append.cpp

Details

Ticket Type
Task

Event Timeline

Database "akonadi" opened using driver "QMYSQL" 
Error code: 1062
DB error:  "Duplicate entry 'message/rfc822' for key 'name'"
Agent instance created in separate process. 
akonadi_maildispatcher_agent(8999)/libakonadi Akonadi::DefaultResourceJobPrivate::resourceCreateResult: Created maildir resource with id "akonadi_maildir_resource_0"
AkonadiAgentServer(9020)/libakonadi Akonadi::CollectionSync::Private::execute: localListDone:  false  deliveryDone:  true
AkonadiAgentServer(9020)/libakonadi Akonadi::SessionPrivate::dataReceived: Server protocol version is: 44
Error text: "Duplicate entry 'message/rfc822' for key 'name' QMYSQL3: Unable to execute statement"
Query: "INSERT INTO MimeTypeTable (name) VALUES (:0)"
Error during insertion into table "MimeTypeTable" "Duplicate entry 'message/rfc822' for key 'name' QMYSQL3: Unable to execute statement" 
akonadi_mailfilter_agent(9001)/libakonadi Akonadi::EntityTreeModelPrivate::collectionFetchJobDone: Job error:  "Failed to create mimetype record" for collection: ()

This was triggered during an akonadi_initialsync execution.

mollekopf raised the priority of this task from 40 to 60.Apr 5 2016, 3:34 PM
vanmeeuwen lowered the priority of this task from 60 to Normal.Mar 28 2019, 8:12 AM
machniak claimed this task.
machniak subscribed.

Kolab support for KDE PIM is discontinued. Create a ticket on https://bugs.kde.org