Bug 287673

Summary: Every time I start konversation it show dialog "KResource Migration Tool" and wait for approximately 30 seconds
Product: [Frameworks and Libraries] Akonadi Reporter: Ivan Sorokin <vanyacpp>
Component: MigrationAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: hein, kde, orion
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ivan Sorokin 2011-11-27 12:46:03 UTC
Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

Every time I start konversation it show dialog "KResource Migration Tool" and wait for approximately 30 seconds.

I don't use akonadi. I just want for use IRC client. Can I somehow disable this migration?

Here is console output:

unnamed app(2115) main: Migrator instance already running for type  "contact" 
kres-migrator(2113)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/ivan/.kde/share/apps/kabc" 
kres-migrator(2113)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name" 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/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:  "" 
Found mysqlcheck:  "" 
Failed to use database "akonadi" 
Database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect" 
Trying to create database now... 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver() [0x4168d4]
1: akonadiserver() [0x416c6c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7f9282749420]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f92827493a5]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f928274cb0b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7f928441743b]
6: akonadiserver() [0x4182e2]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7f92844a51ff]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x112943) [0x7f92844ad943]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f92844b67c9]
10: akonadiserver() [0x41a3b1]
11: akonadiserver() [0x41b567]
12: akonadiserver() [0x411ae2]
13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f928273430d]
14: akonadiserver() [0x412371]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/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:  "" 
Found mysqlcheck:  ""                                                                                                                                                               
Failed to use database "akonadi"                                                                                                                                                    
Database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect"               
Trying to create database now...                                                                                                                                                    
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.                                                                   
Database error: Cannot open database.                                                                                                                                               
Last driver error: "QMYSQL: Unable to connect"                                                                                                                                      
Last database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2)"                                    
Unable to open database "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect"       
"[                                                                                                                                                                                  
0: akonadiserver() [0x4168d4]                                                                                                                                                       
1: akonadiserver() [0x416c6c]                                                                                                                                                       
2: /lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7f41bf5e9420]                                                                                                                       
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f41bf5e93a5]                                                                                                                   
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f41bf5ecb0b]                                                                                                                    
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7f41c12b743b]                                                                              
6: akonadiserver() [0x4182e2]                                                                                                                                                       
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7f41c13451ff]                                                                                         
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x112943) [0x7f41c134d943]                                                                                                             
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f41c13567c9]                                                                                             
10: akonadiserver() [0x41a3b1]                                                                                                                                                      
11: akonadiserver() [0x41b567]                                                                                                                                                      
12: akonadiserver() [0x411ae2]                                                                                                                                                      
13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f41bf5d430d]                                                                                                        
14: akonadiserver() [0x412371]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/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:  "" 
Found mysqlcheck:  "" 
Failed to use database "akonadi" 
Database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect" 
Trying to create database now... 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver() [0x4168d4]
1: akonadiserver() [0x416c6c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7fb1fc839420]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fb1fc8393a5]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fb1fc83cb0b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7fb1fe50743b]
6: akonadiserver() [0x4182e2]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7fb1fe5951ff]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x112943) [0x7fb1fe59d943]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7fb1fe5a67c9]
10: akonadiserver() [0x41a3b1]
11: akonadiserver() [0x41b567]
12: akonadiserver() [0x411ae2]
13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fb1fc82430d]
14: akonadiserver() [0x412371]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/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:  "" 
Found mysqlcheck:  "" 
Failed to use database "akonadi" 
Database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect" 
Trying to create database now... 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/home/ivan/.local/share/akonadi/socket-ivan-desktop/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver() [0x4168d4]
1: akonadiserver() [0x416c6c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7f0c8a314420]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f0c8a3143a5]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f0c8a317b0b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7f0c8bfe243b]
6: akonadiserver() [0x4182e2]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7f0c8c0701ff]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x112943) [0x7f0c8c078943]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f0c8c0817c9]
10: akonadiserver() [0x41a3b1]
11: akonadiserver() [0x41b567]
12: akonadiserver() [0x411ae2]
13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f0c8a2ff30d]
14: akonadiserver() [0x412371]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
"akonadiserver" crashed too often and will not be restarted!


Reproducible: Always

Steps to Reproduce:
To reproduce I think you should disable akonadi.


Expected Results:  
I expect that this dialog doesn't appear every time I start conversation.
Comment 1 Eike Hein 2011-11-28 19:36:50 UTC
Akonadi is invoked indirectly by the KDE PIM libraries, which Konversation uses for integration with the KDE address book. This integration currently cannot be disabled (although we're currently planning to change that).

That said, migration being done repeatedly does sound like a bug. Reassigning to Akonadi.
Comment 2 Orion Poplawski 2014-01-01 21:33:38 UTC
Looks like you have a corrupt akonadi database/config.  In my case I simply deleted ~/.local/share/akonadi since I don't have anything of importance there.  There may be better ways to repair the database.
Comment 3 Denis Kurz 2016-09-24 20:37:54 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 22:03:11 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.