Bug 202583

Summary: Akonadi does not recreate resources after database loss
Product: [Frameworks and Libraries] Akonadi Reporter: Dennis Schridde <heri+kde>
Component: generalAssignee: Volker Krause <vkrause>
Status: RESOLVED WORKSFORME    
Severity: normal CC: tokoe
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dennis Schridde 2009-08-05 08:52:45 UTC
Version:           akonadi-server 1.2.0 (using KDE 4.3.0)
Compiler:          gcc 4.4.1 Gentoo 4.4.1 p1.0
OS:                Linux
Installed from:    Gentoo Packages

(Split off from bug 199808 comment 4.)

Steps to reproduce:
I switched from external to an internal database for Akonadi.
The same happens if I delete ~/.local/share/akonadi.

Expected outcome:
Akonadi should regenerate the database entries.

Error message in akonadiconsole debugger:
0xadbfb0 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0xb38540 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0xadb030 0 LOGIN "akonadiconsole-CollectionModel-719950939" 
0xadb030 0 OK User logged in 
0xb38540 0 LOGIN "akonadiconsole-ItemModel-1223389481" 
0xb38540 0 OK User logged in 
0xadb030 1 X-AKLSUB 0 INF () (STATISTICS true) 
0xadb030 * 1 0 (NAME "Search" MIMETYPE () REMOTEID "" RESOURCE
"akonadi_search_resource" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true
INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ) 
0xadb030 1 OK List completed 
0x7fb5bc001f10 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc001f10 0 LOGIN "kontact-603408820" 
0x7fb5bc001f10 0 OK User logged in 
0x7fb5bc012ba0 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc012f80 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc012f80 0 LOGIN "akonadiconsole-CollectionModel-719950939" 
0x7fb5bc013640 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc012f80 0 OK User logged in 
0x7fb5bc023cb0 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc023cb0 0 LOGIN "akonadi_kolabproxy_resource" 
0x7fb5bc023cb0 0 OK User logged in 
0x7fb5bc023cb0 1 RESSELECT "akonadi_kolabproxy_resource" 2 X-AKLSUB 0 INF () 
0x7fb5bc023cb0 1 NO akonadi_kolabproxy_resource is not a valid resource
identifier 
0x7fb5bc023cb0 2 X-AKLSUB 0 INF () 
0x7fb5bc023cb0 * 1 0 (NAME "Search" MIMETYPE () REMOTEID "" RESOURCE
"akonadi_search_resource" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1
SYNCONDEMAND false LOCALPARTS (ALL)) ) 
0x7fb5bc023cb0 2 OK List completed 
0x7fb5bc023cb0 3 BEGIN 
0x7fb5bc023cb0 3 OK Begin completed 
0x7fb5bc023cb0 4 X-AKLSUB 0 INF (RESOURCE "akonadi_kolabproxy_resource") 
0x7fb5bc023cb0 4 NO Unknown resource 
0x7fb5bc023cb0 5 ROLLBACK 
0x7fb5bc023cb0 5 OK Rollback completed 
0x7fb5bc013640 0 LOGIN "akonadiconsole-ItemModel-1223389481" 
0x15c1ba0 * OK Akonadi Almost IMAP Server [PROTOCOL 15] 
0x7fb5bc013640 0 OK User logged in 
0x7fb5bc012ba0 0 LOGIN "akonadi_birthdays_resource" 
0x15c1ba0 0 LOGIN "akonadi_imap_resource_1" 
0x7fb5bc012ba0 0 OK User logged in 
0x15c1ba0 0 OK User logged in 
0x15c1ba0 1 RESSELECT "akonadi_imap_resource_1" 
0x7fb5bc012ba0 1 RESSELECT "akonadi_birthdays_resource" 
0x7fb5bc012ba0 1 NO akonadi_birthdays_resource is not a valid resource
identifier 
0x15c1ba0 1 NO akonadi_imap_resource_1 is not a valid resource identifier 
0x15c1ba0 2 BEGIN 
0x15c1ba0 2 OK Begin completed 
0x15c1ba0 3 X-AKLSUB 0 INF (RESOURCE "akonadi_imap_resource_1") 
0x15c1ba0 3 NO Unknown resource 
0x15c1ba0 4 ROLLBACK 
0x15c1ba0 4 OK Rollback completed 


AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/birthdaysresource.desktop' from file
'akonadi_birthdays_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/distlistresource.desktop' from file
'akonadi_distlist_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/icalresource.desktop' from file
'akonadi_ical_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/imapresource.desktop' from file
'akonadi_imap_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/kabcresource.desktop' from file
'akonadi_kabc_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/kcalresource.desktop' from file
'akonadi_kcal_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/knutresource.desktop' from file
'akonadi_knut_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/kolabproxyresource.desktop' from file
'akonadi_kolabproxy_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/localbookmarksresource.desktop' from file
'akonadi_localbookmarks_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/maildirresource.desktop' from file
'akonadi_maildir_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/microblog.desktop' from file
'akonadi_microblog_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/nepomukcontactfeeder.desktop' from file
'akonadi_nepomuk_contact_feeder'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/nepomukemailfeeder.desktop' from file
'akonadi_nepomuk_email_feeder'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/nepomuktagresource.desktop' from file
'akonadi_nepomuktag_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/nntpresource.desktop' from file
'akonadi_nntp_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/notesresource.desktop' from file
'akonadi_notes_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/strigifeeder.desktop' from file
'akonadi_strigi_feeder'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/vcarddirresource.desktop' from file
'akonadi_vcarddir_resource'
AgentManager::updatePluginInfos: Duplicated agent identifier
'/usr/share/akonadi/agents/vcardresource.desktop' from file
'akonadi_vcard_resource'
AgentBase(akonadi_kolabproxy_resource): Unknown error. (Unknown resource)
AgentBase(akonadi_imap_resource_1): Unknown error. (Unknown resource)
Comment 1 Dennis Schridde 2009-08-05 09:42:12 UTC
mysql version: 5.0.83

Exact steps to reproduce:
akonadictl stop
rm -r .local/share/akonadi
akonadictl start
Comment 2 Tobias Koenig 2010-06-20 14:17:46 UTC
Hej,

you also have to delete the config files, not only the data files to
get a clean environment for a new start. So a

akonadictl stop
rm -r .local/share/akonadi
rm -t .config/akonadi/
akonadictl start

should help.

Ciao,
Tobias
Comment 3 Dennis Schridde 2010-06-21 16:13:51 UTC
(In reply to comment #2)
> you also have to delete the config files, not only the data files to
> get a clean environment for a new start.
Shouldn't Akonadi notice that the data files for a certain configuration are missing?