Bug 403283 - org.kde.pim.akonadiserver: Could not open required defaults file. Fatal error in defaults handling
Summary: org.kde.pim.akonadiserver: Could not open required defaults file. Fatal error...
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-16 19:22 UTC by zeta
Modified: 2019-01-16 19:22 UTC (History)
0 users

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 zeta 2019-01-16 19:22:25 UTC
SUMMARY
Akonadi does not start in Debian Testing

Note: The version provided by Debian is *not* selectable from the version options available

apt list --installed \*akonadi\*
akonadi-backend-mysql/testing,testing,now 4:18.08.1-1 all [installed]
akonadi-server/testing,now 4:18.08.1-1+b2 amd64 [installed]


STEPS TO REPRODUCE
1. sudo apt install mariadb-server     or    sudo apt install mysql-server-5.7
2. sudo apt install akonadi-backend-mysql
3. akonadictl start


OBSERVED RESULT

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: "/usr/sbin/mysqld"
org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/zeta/.local/share/akonadi/mysql.conf", "--datadir=/home/zeta/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-zeta.HZOggO/mysql.socket", "--pid-file=/tmp/akonadi-zeta.HZOggO/mysql.pid")
org.kde.pim.akonadiserver: stdout: ""
org.kde.pim.akonadiserver: stderr: "Could not open required defaults file: /home/zeta/.local/share/akonadi/mysql.conf\nFatal error in defaults handling. Program aborted\n"
org.kde.pim.akonadiserver: exit code: 1
org.kde.pim.akonadiserver: process error: "Unknown error"
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/akonadi-zeta.HZOggO/mysql.socket' (2 "No such file or directory")'
Check that mysqld is running and that the socket: '/tmp/akonadi-zeta.HZOggO/mysql.socket' exists!
org.kde.pim.akonadiserver: Failed to remove runtime connection config file
org.kde.pim.akonadicontrol: Application 'akonadiserver' exited normally...


EXPECTED RESULT

akonadi starts

Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.14.3
Qt Version: 5.11.3
KDE Frameworks Version: 5.51.0
Kernel Version: 4.19.0-1-amd64
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 31.3 GiB of RAM

ADDITIONAL INFORMATION

I also tryed the following


sudo aa-complain usr.sbin.mysqld-akonadi

sudo rm /usr/sbin/mysqld-akonadi

sudo ln -s /usr/sbin/mysqld /usr/sbin/mysqld-akonadi

ln -s /home/zeta/.local/share/akonadi/mysql.conf $HOME/.config/akonadi/mysql-local.conf