akonadi crashes on mysql problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
akonadi (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Migrated from last to current stable Kubuntu version.
Kmail crashes when starting, or freezes.
I did some testing to isolate the problem and found some info which might be useful.
1) Kmail crashes because akonadi crashes during init. Attached the log. It seems to be a mysql problem, dragging akonadi down with it.
2) Mysql works fine for other applications.
3) For akonadi the bin /usr/sbin/
4) I logged in as another Linux user. Kmail was not used in this account yet. Akonadi starts normally in this account. Then I copied the whole dir /home/nico/
/home/nico/
/home/nico/
/home/nico/
Then restarted Akonadi and started kmail without any problem.
So, for this new user account all remains working fine, it seems files or
settings in /home/nico are causing this error.
Deleting the dir /home/nico/
Did a search on all akonadi files in my home dir:
./.local/
./.local/
./.kde/
./.config/akonadi/ <some files here, but they are recreated and therefore fresh>
I cannot find the difference, why in one account kmail / akonadi works fine, while in the other / my account I get crashes.
What can I do to assist in finding the cause of this problem?
I share the author's bug after I upgraded my x86_64 Kubuntu 9.10 setup to 10.04. Just like him, test #4 contains the same set of errors:
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
(repeats)
I've attached self-test file for the full report.
However, to add to what the original author mentioned, I have stopped and started akonadi from the command line, which gives me more info. Where it first seems to die is this line:
[akonadiserver] /usr/bin/ mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
Why would this fail? The only thing I can think of is that I have an existing mysqld to do web development work and I wonder if it this akonadi startup process is accessing its data store? And maybe more importantly, what could I try to fix it so that it can log in as root?
Here's what I'm trying:
michael@core2duo:~$ akonadictl stop
michael@core2duo:~$ QProcess: Destroyed while process is still running.
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Process operation timed out)
michael@core2duo:~$ akonadictl status
Akonadi Control: stopped
Akonadi Server: stopped
Akonadi Server Search Support: available (backend: Unknown)
michael@core2duo:~$ akonadictl start Interface: :serviceOwnerCh anged(QString, QString, QString) Interface: :serviceOwnerCh anged(QString, QString, QString) libexec" , "/usr/libexec", "/opt/mysql/ libexec" , "/opt/local/ lib/mysql5/ bin") mysql_install_ db" mysql_upgrade" /var/run/ mysqld/ mysqld. sock' '--socket= /home/michael/ .local/ share/akonadi/ db_misc/ mysql.socket' mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect @'localhost' (using password: NO)" @'localhost' (using password: NO) QMYSQL: Unable to connect" _Z11akBacktrace v+0x39) [0x40b739] so.6(+0x33af0) [0x7f0fc1e9daf0] so.6(gsignal+ 0x35) [0x7f0fc1e9da75] so.6(abort+ 0x180) [0x7f0fc1ea15c0]
Connecting to deprecated signal QDBusConnection
Starting Akonadi Server...
done.
Connecting to deprecated signal QDBusConnection
[akonadiserver] search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/
[akonadiserver] Found mysql_install_db: "/usr/bin/
[akonadiserver] Found mysql_upgrade: "/usr/bin/
"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=
"
[akonadiserver] /usr/bin/
[akonadiserver] FATAL ERROR: Upgrade failed
[akonadiserver] Database error: Cannot open database.
[akonadiserver] Last driver error: "QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Access denied for user 'michael'
[akonadiserver] Unable to open database "Access denied for user 'michael'
[akonadiserver] "[
[akonadiserver] 0: akonadiserver(
[akonadiserver] 1: akonadiserver() [0x40bc7a]
[akonadiserver] 2: /lib/libc.
[akonadiserver] 3: /lib/libc.
[akonadiserver] 4: /lib/libc.
[ako...