Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When starting kmail from the command line, I can see that akonadi can't connect to mysql.
Code:
ychaouche#Bahloola 18:24:07 ~/.local/share $ kmail&
[2] 7962
ychaouche#Bahloola 18:24:18 ~/.local/share $ ls akonadi-/Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: Failed to use database "akonadi"
org.kde.pim.akonadiserver: Database error: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
org.kde.pim.akonadiserver: Failed to connect to database!
org.kde.pim.akonadiserver: Database error: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
org.kde.pim.akonadiserver: Failed to remove runtime connection config file
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
No text-to-speech plug-ins were found.
org.kde.pim.akonadicore: Job error: "" for collection: QVector()
org.kde.pim.akonadicore: Job error: "" for collection: QVector()
org.kde.pim.messagelist: Failed to load tags ""
org.kde.pim.kmail: ""
org.kde.pim.kmail: ""
ychaouche#Bahloola 18:24:51 ~/.local/share $
The same errors are logged in the akonadi error log Akonadi.error
Code:
ychaouche#Bahloola 18:26:28 ~/.local/share/akonadi $ cat Akonadi.error
2019-11-06T18:24:21 [INFO ] org.kde.pim.akonadiserver: Starting up the Akonadi Server...
2019-11-06T18:24:21 [CRITICAL] org.kde.pim.akonadis2019-11-06T18:24:21 [INFO ] org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
2019-11-06T18:24:21 [CRITICAL] org.kde.pim.akonadiserver: Failed to connect to database!
2019-11-06T18:24:21 [CRITICAL] org.kde.pim.akonadiserver: Database error: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
2019-11-06T18:24:21 [CRITICAL] org.kde.pim.akonadiserver: Failed to remove runtime connection config file
2019-11-06T18:24:21 [INFO ] org.kde.pim.akonadiserver: Shutting down AkonadiServer...
ychaouche#Bahloola 18:26:31 ~/.local/share/akonadi $
I wonder why it couldn't connect to the database. /usr/sbin/mysqld is there, but there's no mysql file in /etc/init.d/
Code:
ychaouche#Bahloola 18:28:32 ~/.local/share/akonadi $ service mysql status
Unit mysql.service could not be found.
ychaouche#Bahloola 18:29:22 ~/.local/share/akonadi $ service mysqld status
Unit mysqld.service could not be found.
ychaouche#Bahloola 18:29:24 ~/.local/share/akonadi $
I try to run mysqld from the command line, with sudo
Code:
ychaouche#Bahloola 18:29:24 ~/.local/share/akonadi $ mysqld status
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
2019-11-06T17:29:56.060464Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-06T17:29:56.060565Z 0 [Warning] Can't create test file /var/lib/mysql/Bahloola.lower-test
2019-11-06T17:29:56.060577Z 0 [Warning] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
2019-11-06T17:29:56.060595Z 0 [Note] mysqld (mysqld 5.7.27-0ubuntu0.18.04.1) starting as process 8502 ...
2019-11-06T17:29:56.071141Z 0 [Warning] Can't create test file /var/lib/mysql/Bahloola.lower-test
2019-11-06T17:29:56.071158Z 0 [Warning] Can't create test file /var/lib/mysql/Bahloola.lower-test
2019-11-06T17:29:56.071189Z 0 [ERROR] failed to set datadir to /var/lib/mysql/
2019-11-06T17:29:56.071196Z 0 [ERROR] Aborting
2019-11-06T17:29:56.071208Z 0 [Note] Binlog end
2019-11-06T17:29:56.071249Z 0 [Note] mysqld: Shutdown complete
ychaouche#Bahloola 18:29:56 ~/.local/share/akonadi $
It seems many things are broken on my system, which is a fresh install of neon user 5.17
Code:
ychaouche#Bahloola 18:31:09 ~/.local/share/akonadi $ lsb_release -a
No LSB modules are available.
Distributor ID: neon
Description: KDE neon User Edition 5.17
Release: 18.04
Codename: bionic
ychaouche#Bahloola 18:31:15 ~/.local/share/akonadi $
It is NOT installed ! only mysql-server-core-5.7 is.
Code:
ychaouche#Bahloola 19:56:58 ~ $ dpkg -s mysql-server-core-5.7
Package: mysql-server-core-5.7
Status: install ok installed
Priority: optional
Section: database
Installed-Size: 45413
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: mysql-5.7
Version: 5.7.27-0ubuntu0.18.04.1
Replaces: mariadb-client-10.0 (<< 10.0.16-2~), mysql-client-5.5 (<< 5.6), mysql-client-5.6 (<< 5.6.22-1~), mysql-server-5.5, mysql-server-5.6 (<< 5.6.25-3~), mysql-server-core-5.5, mysql-server-core-5.6 (<< 5.7), virtual-mysql-server-core
Provides: virtual-mysql-server-core
Depends: libaio1 (>= 0.3.93), libc6 (>= 2.16), libgcc1 (>= 1:4.0), liblz4-1 (>= 0.0~r130), libnuma1 (>= 2.0.11), libstdc++6 (>= 5.2), libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.2.0)
Breaks: mariadb-client-10.0 (<< 10.0.16-2~), mysql-client-5.6 (<< 5.6.22-1~), mysql-server-5.5, mysql-server-5.6 (<< 5.6.25-3~), mysql-server-core-5.6 (<< 5.7)
Conflicts: mysql-client-5.5 (<< 5.6), mysql-server-core-5.5, virtual-mysql-server-core
Description: MySQL database server binaries
MySQL is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MySQL are speed, robustness and
ease of use.
.
This package includes the server binaries but doesn't contain all the
infrastructure needed to setup system databases.
Homepage: http://dev.mysql.com/
Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
ychaouche#Bahloola 19:57:06 ~ $
This is not normal ! akonadi is not a minor piece in KDE and it stores some of its data in a mysql database. I wonder why KDE Neon ships without it !
Now, I can finally :
Code:
ychaouche#Bahloola 20:01:37 ~ $ /etc/init.d/mysql status
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-11-10 20:01:08 CET; 45s ago
Main PID: 25124 (mysqld)
Tasks: 27 (limit: 4402)
CGroup: /system.slice/mysql.service
└─25124 /usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid
Nov 10 20:01:07 Bahloola systemd[1]: Starting MySQL Community Server...
Nov 10 20:01:08 Bahloola systemd[1]: Started MySQL Community Server.
ychaouche#Bahloola 20:01:58 ~ $
Still
Code:
ychaouche#Bahloola 20:03:05 ~ $ kmail
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: Failed to use database "akonadi"
org.kde.pim.akonadiserver: Database error: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
org.kde.pim.akonadiserver: Failed to connect to database!
org.kde.pim.akonadiserver: Database error: "Can't connect to local MySQL server through socket '/tmp/akonadi-ychaouche.NL0sL9/mysql.socket' (2) QMYSQL: Unable to connect"
org.kde.pim.akonadiserver: Failed to remove runtime connection config file
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
No text-to-speech plug-ins were found.
org.kde.pim.akonadicore: Job error: "" for collection: QVector()
org.kde.pim.akonadicore: Job error: "" for collection: QVector()
org.kde.pim.messagelist: Failed to load tags ""
org.kde.pim.kmail: ""
org.kde.pim.kmail: ""
^C
ychaouche#Bahloola 20:03:57 ~ $
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.