[Kde-pim] Relocating the akonadi socket

Volker Krause vkrause at kde.org
Sat Aug 17 15:48:15 BST 2013


On Saturday 17 August 2013 15:45:56 Christian Mollekopf wrote:
> On Saturday 17 August 2013 14.45:26 Kevin Krammer wrote:
> > On Saturday, 2013-08-17, Christian Mollekopf wrote:
> > > Hey,
> > > 
> > > I'd like to relocate the akonadi socket to /tmp.
> > 
> > Isn't that done already?
> > See server/src/utils.cpp function akonadiSocketDirectory()
> 
> I think that returns AkStandardDirs::saveDir( "data" )/socket-$hostname/
> 
> So typically something like:
> ~/.local/share/akonadi/socket-$domain/
> 
> and for the testrunner the prefixed path inside /tmp/
> 
> > > I'm currently constantly running into problems when running tests due to
> > > the socket path being too long (the maximum is 108 chars I think).
> > 
> > The socket dir can also be configured in akonadiserverrc
> 
> That is a possible workaround, but I think it should be working by default
> and we're generally really close to the maximum pathlength. depending on
> the hostname and i.e. the pid of the testrunner prefix we're quickly beyond
> what works.
> 
> Note that there are also open bugs regarding this issue:
> https://bugs.kde.org/show_bug.cgi?id=277839
> 
> > > We should probably do the same with the mysql socket.
> > 
> > I think it is already in the same dir as the server socket.
> 
> Indeed.
> 
> So I'd just suggest to adjust the default akonadiSocketDirectory().
> Is there anything speaking against a default path inside $tmp?
> And why do we required the domain in the path?
> 
> I'd suggest something like /var/ak-$instance-$UUID/ or even just
> /var/ak-$UUID

The default is already $TMP/akonadi-<something unique>, for the production 
instance. I think what you are seeing is a recent change in the testrunner, 
which moves $TMP from /tmp to the testrunner sandbox.

This was done since we were "leaking" the socket directories in /tmp for every 
test. The production instance reuses that folder, but the tests never can.

So, I don't think we need changes in the Akonadi server, this can probably be 
fixed by shortening paths of the testrunner sandbox.

regards,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130817/0dbc4903/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list