Akonadi won't start with TMPDIR

Xen list at xenhideout.nl
Wed Dec 6 13:46:26 GMT 2017


Hi,

I'm on Kubuntu 16.04 here.

I'm trying to change my TMPDIR to /run/tmp for system services so my /tmp 
is less cluttered.

For some reason Akonadi won't start.

It appears as if mysqld won't start, it will give the following error:

mysqld: Can't create/write to file '/run/tmp/ib9NXyDn' (Errcode: 13 - 
Permission denied)

But I was meaning to say:

open("/run/tmp/ibekSSgt", O_RDWR|O_CREAT|O_EXCL, 0600) = -1 EACCES 
(Permission denied)

Which is just really weird, if I run the same command in a small C 
program,

I get 3 if the file doesn't yet exist, and -1 if the file already exists.

/run/tmp is a tmpfs just like /tmp.

However if I run TMPDIR=/tmp akonadictl start, then akonadi starts 
instantly and without issue.

So it seems to be a mysqld issue (the original log file indicates database 
connection getting lost).

Oh, apologies.

I found the answer.

Apparmor profile :p.

What would we do without google searches ;-).

Regards.



More information about the kde-pim mailing list