akonadi does not start if home dir is linked somewhere

Bug #730323 reported by Gunni
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
akonadi (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apparmor

My home dir is linked to a different disk. If apparmor is started akonadi fails to start with the attached errors.
After some help in IRC we found the reason, that my home dir is a link to my ssd.

Adding following line to /etc/apparmor.d/usr.sbin.mysqld-akonadi :
     /ssdhome/gunni/.local/share/akonadi/** rwk,

Does fix the error for me.

Some more infos:
gunni@server:/home$ ls -l
lrwxrwxrwx 1 root root 15 2011-01-28 00:47 gunni -> /ssdhome/gunni/
gunni@server:/home$ ls -l /ssdhome/
drwxrwxrwx 83 gunni gunni 4096 2011-03-06 23:15 gunni
gunni@server:/home$ echo $HOME
/home/gunni

Tags: natty
Revision history for this message
Gunni (fgunni) wrote :
Philip Muškovac (yofel)
tags: added: natty
Revision history for this message
Gunni (fgunni) wrote :

Forgot the versions. I am running Natty since two days:

gunni@server:/home$ apt-cache policy akonadi-server
akonadi-server:
  Installiert: 1.5.0-0ubuntu2
  Kandidat: 1.5.0-0ubuntu2

gunni@server:/home$ apt-cache policy apparmor
apparmor:
  Installiert: 2.6.0-0ubuntu2
  Kandidat: 2.6.0-0ubuntu2

Felix Geyer (debfx)
affects: apparmor (Ubuntu) → akonadi (Ubuntu)
Revision history for this message
Gunni (fgunni) wrote :

Additional comment: If apparmor is stopped with "sudo /etc/init.d/apparmor teardown" akonadi also starts working.

Revision history for this message
Felix Geyer (debfx) wrote :

You need to add /ssdhome to apparmor's home dir locations.
You can do that by executing: sudo dpkg-reconfigure apparmor

Though I recommend that you directly mount the ssd partition to /home.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Gunni: please do not recommend using teardown, as it disables apparmor protections for all applications that are currently confined. Use aa-complain(1) or aa-disable(1) (natty and later) to disable apparmor restrictions on a specific application (e.g. sudo aa-complain /usr/sbin/mysqld-akonadi).

As Felix Geyer said, use "sudo dpkg-reconfigure apparmor" to configure apparmor to know about additional home directory locations. Closing as not a bug.

Changed in akonadi (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.