empath forgets accounts 11.10

Bug #864764 reported by M. van der Heide
52
This bug affects 8 people
Affects Status Importance Assigned to Milestone
telepathy-mission-control-5 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

After a logout, all account information inside empathy is lost.empathy doesnot remebers the accounts
using 11.10

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in empathy (Ubuntu):
status: New → Confirmed
Revision history for this message
Lapse of Reason (lapseofreason0) wrote :

This is broken since the upgrade to oneiric. The account information in .mission-control/accounts/accounts.cfg is still present, but somehow empathy doesn't read it in nor does it save new accounts to it.

In my case the home folder is a symlink to another folder, could this be caused by that? Or maybe apparmor could be at fault, how could I check that?

Other people seem to be having the same problem:
http://ubuntuforums.org/showthread.php?t=1862190
http://ubuntuforums.org/showthread.php?t=1851441
and possibly bugs #857519 and #857517 seem to be duplicates of this.

Revision history for this message
Lapse of Reason (lapseofreason0) wrote :

This is definitely caused by apparmor. As a workaround one can disable the telepathy apparmor profile by running

aa-disable usr.lib.telepathy

and then kill all processes related to telepathy (telepathy-logger, mission-control-5, ...).

Revision history for this message
Lapse of Reason (lapseofreason0) wrote :

I just confirmed that this bug was caused by the homedir being a symlink which is not handled correctly by apparmor.

Disabling apparmor for telepathy as explained above works, but a better solution is to add the real path of the home directories to the line starting with @{HOME} in /etc/apparmor.d/tunables/home, e.g. if your real home directories reside in /exports/home/ change

@{HOME}=@{HOMEDIRS}/*/ /root/

to

@{HOME}=@{HOMEDIRS}/*/ /root/ /exports/home/*/

Hopefully this helps other people with the same problem.

Revision history for this message
Bilal Shahid (s9iper1) wrote :

Thank you for taking time in filing the bug to make ubuntu better.
1).is this reproduce able?
2).if so than define steps to reproduce it?

Changed in empathy (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
M. van der Heide (vdheide.net) wrote :

Hi Muhammad,

Yes, the bug is reproducable.

Steps to reproduce:
- unmount the home-directory structure (umount /home)
- change the mount point of the home-directory to (for example) /differenthome
- remove the old mount point of the home-directory (rm /home)
- create the new mount point (mkdir /differenthome)
- create a symlink (ln -s /differenthome /home)
- mount the home-directory (mount /differenthome)
- logout and login again
- start empathy, add accounts
- logout and login again
- start empathy, the accounts are gone

This bug can be solved by adding the real home-directory (/differenthome) to the apparmor config file. This is perfectly described in the comment of Lapse of Reason.

Kind Regards,
Marco van der Heide

P.S. I forgot to thank you Lapse of Reason! But hereby a BIG THANKYOU!

Revision history for this message
Bilal Shahid (s9iper1) wrote :

there is no option to unmount the home directory and the file system never unmount form any where finally iam not be able to reproduce this bug and tell me your empathy version.

description: updated
Revision history for this message
M. van der Heide (vdheide.net) wrote :

Hi Muhammad,

You are right that you cannot unmount the home directory when you are logged into the system.

I'll refrase the steps:
 - change the mount point of the home-directory to (for example) /differenthome (as root in the /etc/fstab and/or /etc/mnttab)
 - remove the old mount point of the home-directory (rm /home)
 - create the new mount point (mkdir /differenthome)
 - create a symlink (ln -s /differenthome /home)
 - logout and login again
 - start empathy, add accounts
 - logout and login again
 - start empathy, the accounts are gone

Kind Regards,
Marco van der Heide

Revision history for this message
Stu (stu-axon) wrote :

Just to confirm this happens to me too (I also moved my home directory to a different mount point)

Revision history for this message
Franklin Strube (thedoc8786) wrote :

This happened to me as well, and I believe the reason was due to Likewise-Open AD integration with a custom home directory (%H/%D/%U instead of the default %H/likewise-open/%D/%U).

I ran "sudo dpkg-reconfigure apparmor" and then specified "/home/DOMAINNAME/" as an additional homedir. I no longer see apparmor messages when I run "dmesg".

Revision history for this message
Bilal Shahid (s9iper1) wrote :

is the same bug happen when you shutdown and login again ?

Revision history for this message
Ken VanDine (ken-vandine) wrote :

This is actually from the apparmor profile in telepathy-mission-control-5, it looks like apparmor doesn't follow symlinks. I don't know much about apparmor, anyone have suggestions what we can do to fix this?

affects: empathy (Ubuntu) → telepathy-mission-control-5 (Ubuntu)
Changed in telepathy-mission-control-5 (Ubuntu):
status: Incomplete → New
assignee: nobody → Ken VanDine (ken-vandine)
Bilal Shahid (s9iper1)
Changed in telepathy-mission-control-5 (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in telepathy-mission-control-5 (Ubuntu):
status: New → Confirmed
Changed in telepathy-mission-control-5 (Ubuntu):
assignee: Ken VanDine (ken-vandine) → nobody
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.