Bug 299231

Summary: akonadiserver crashes with umlaut in mysql socket
Product: [Frameworks and Libraries] Akonadi Reporter: Jaakko Perttilä <jormangeud>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jaakko Perttilä 2012-05-02 10:34:05 UTC
akonadiserver forces the socket filename from the hostname. If the hostname contains probably any non-ASCII characters, the socket cannot be found.

The Options="UNIX_SOCKET=" in ~/.config/akonadi/akonadiserverrc gets overwritten by the server start command parameters, so I couldn't manually change the socket name.

After failing, the config gets changed to this:
Options="UNIX_SOCKET=/home/jaakko/.local/share/akonadi/socket-j\xe4\xe4karhu/mysql.socket"


Reproducible: Always

Steps to Reproduce:
1. # hostname jääkarhu
2. # /etc/init.d/dbus restart
3. startx
4. akonadictl start
Actual Results:  
...
mysql.user                                         OK
Unable to listen on Unix socket "/home/jaakko/.local/share/akonadi/socket-jääkarhu/akonadiserver.socket"
...
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
"akonadiserver" crashed too often and will not be restarted! 


As a result, there are four mysqld processed running with following parameters:
/usr/sbin/mysqld --defaults-file=/home/jaakko/.local/share/akonadi/mysql.conf --datadir=/home/jaakko/.local/share/akonadi/db_data/ --socket=/home/jaakko/.local/share/akonadi/socket-jääkarhu/mysql.socket


Expected Results:  
akonadiserver starting ok.

Works fine after I change the hostname to something with only ASCII characters, and restart the dbus.
Comment 1 Denis Kurz 2016-09-24 20:42:37 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 22:00:25 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.