Bug 270184 - migrating to x86_64 system is not handled by akonadi server
Summary: migrating to x86_64 system is not handled by akonadi server
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 4.4
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 23:20 UTC by José JORGE
Modified: 2011-07-21 15:19 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 José JORGE 2011-04-05 23:20:51 UTC
Version:           4.4 (using KDE 4.4.3) 
OS:                Linux

I was using 32 bit Mandriva. Then I migrated my HOME dir to a new x86_64 machine.
Kmail could not send mails anymore. Kadressbook stopped working.

Digging the file, I have found that the file .local/share/akonadi/mysql.conf hardcoded a path :

plugin_dir=/usr/lib/mysql/plugin

Changing the path to the 64bit Mandriva allowed akonadi server to start again:

plugin_dir=/usr/lib64/mysql/plugin

Maybe this should be checked at startup time, allowing the same user to use different installations?

Reproducible: Always

Steps to Reproduce:
1 Change the path where mysql plugins are installed.
2 Akonadi does not start anymmore

Actual Results:  
crash at startup :
110405 23:07:32 [ERROR] Can't open shared library '/usr/lib/mysql/plugin/ha_innodb.so' (errno: 22 cannot open shared object file: No such file or directory)
110405 23:07:32 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb_file_per_table=1'
110405 23:07:32 [ERROR] Aborting

110405 23:07:32 [Note] /usr/sbin/mysqld: Shutdown complete


Expected Results:  
start ;-)

Even if some distributions use /usr/lib for x86_64, akonadi should not write a system wide path in a user conf file.
Comment 1 Christophe Marin 2011-07-21 15:17:49 UTC
This is a Mandriva issue and should be reported to their bug tracker. They hardcoded this plugin path in their package http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/updates/2010.1/akonadi/current/SOURCES/akonadi-1.3.1-fix-mysql-plugin-load.patch?revision=549872&view=markup