Bug 241939 - Akonadi fails on launch of Kaddressbook
Summary: Akonadi fails on launch of Kaddressbook
Status: RESOLVED INTENTIONAL
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 02:02 UTC by Joe Sylvester
Modified: 2010-06-17 18:15 UTC (History)
1 user (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 Joe Sylvester 2010-06-17 02:02:44 UTC
Version:           unspecified (using KDE 4.4.2) 
OS:                Linux

Upon launch of Kaddressbook, I get a failure: "Akonadi not operational." I have include the report provided:
File content of '/home/joe/.local/share/akonadi/akonadi_control.error.old':
Unable to register service as org.freedesktop.Akonadi.Control Maybe it's already running? 
"[
0: /usr/bin/akonadi_control(_Z11akBacktracev+0x39) [0x416779]
1: /usr/bin/akonadi_control() [0x416cba]
2: /lib/libc.so.6(+0x33af0) [0x7f3f86b3aaf0]
3: /lib/libc.so.6(gsignal+0x35) [0x7f3f86b3aa75]
4: /lib/libc.so.6(abort+0x180) [0x7f3f86b3e5c0]
5: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f3f87d20844]
6: /usr/bin/akonadi_control(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x417dc8]
7: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7f3f87daf417]
8: /usr/lib/libQtCore.so.4(+0x112529) [0x7f3f87dc1529]
9: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f3f87dc2729]
10: /usr/bin/akonadi_control(main+0x466) [0x42bab6]
11: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f3f86b25c4d]
12: /usr/bin/akonadi_control() [0x4120b9]
]
" 
zi have verified that Akonadi is running:akonadictl start->Akonadi is already running. I stop Akonadi by issuing "akonadictl stop"->QProcess: Destroyed while process is still running.
ProcessControl: Application 'akonadiserver' stopped unexpected (Process crashed)
Application 'akonadiserver' crashed. No restart!
. Next, I start it again:Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
[akonadiserver] 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")
[akonadiserver] Found mysql_install_db:  "/usr/bin/mysql_install_db"
[akonadiserver] Found mysql_upgrade:  "/usr/bin/mysql_upgrade"
"akonadiserver" [out] "Looking for 'mysql' as: /usr/bin/mysql
" 
"akonadiserver" [out] "Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
" 
"akonadiserver" [out] "Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' '--socket=/home/joe/.local/share/akonadi/db_misc/mysql.socket' 
" 
[akonadiserver] /usr/bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
[akonadiserver] FATAL ERROR: Upgrade failed

I am at aloss. This just started happening. I have not launched Kaddressbook in several months, but it was working last time I did launch it.


Reproducible: Always

Steps to Reproduce:
Launch Kaddressbook.

Actual Results:  
Upon launch of Kaddressbook, I get a failure: "Akonadi not operational." 

Expected Results:  
I expect Kaddressbook to launch normally and open my addressbook.

OS: Linux (x86_64) release 2.6.32-22-generic
Compiler: cc
Comment 1 Joe Sylvester 2010-06-17 02:06:19 UTC
I neglected to mention that I have un-installed and re-installed Kaddressbook and Akonadi-server, but the problem still persists.
Comment 2 Tobias Koenig 2010-06-17 15:34:59 UTC
Hej,

as clearly stated in the mysql log:

'Access denied for user root@localhost!'

You are not allowed to start MySQL server as user root (this is a limitation of MySQL, nothing
we can fix...). Actually you shouldn't start a KDE environment as user root, that has
many security and stability implications.

Ciao,
Tobias
Comment 3 Joe Sylvester 2010-06-17 16:14:00 UTC
Tobias:
I am not invoking Kaddressbook from "root". I am logged in as "joe" which has administrative priviledges. I verified that my menu item "KAdderssbook" is not using su-to-root. I do not know where this "root" is coming from.
Joe
Comment 4 Tobias Koenig 2010-06-17 18:15:05 UTC
Hej,

googling for the error messages shows that it seems to be a problem
of mysql_upgrade calling mysqlcheck... so it's really something we can't fix.

Ciao,
Tobias