telepathy-sunshine (gg protocol): message window doesn't appear

Bug #878048 reported by Adrian
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
telepathy-mission-control-5 (Ubuntu)
Fix Released
Medium
Jamie Strandboge
Precise
Won't Fix
Medium
Unassigned

Bug Description

After an ordinary update (apt-get update), I have started experience a problem with the gadu-gadu (gg) protocol. My gg contacts are visible in Empathy's window properly - I see available users, their statuses, avatars, ect. However, when I want to start a conversation clicking two times on the particular account, the message window doesn't appear. Moreover, if a remote person begins a char, the window doesn't appear as well (in fact there is no information, that somebody tries to contact with me). It is worth to point out, that Empathy for the GTalk works correctly.

The debug window doesn't show any error information - it looks fine to me. Maybe it is a clue, that the dmesg, shows the entries, which I hadn't spotted before. They look like:
[ 1639.831939] type=1400 audit(1319016446.438:114): apparmor="DENIED" operation="mknod" parent=11745 profile="/usr/lib/telepathy/telepathy-*" name="/usr/lib/python2.6/dist-packages/sunshine/lqsoft/pygadu/network.pyc" pid=11747 comm="telepathy-sunsh" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000

Below there is a list of packages which I have updated last time:
Commandline: apt-get upgrade
Upgrade: bluez-alsa:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), python-cupshelpers:amd64 (1.3.6+20110831-0ubuntu9, 1.3.6+20110831-0ubuntu9.1), libgnome-bluetooth8:amd64 (3.2.0-0ubuntu1, 3.2.0-0ubuntu2), gir1.2-gnomebluetooth-1.0:amd64 (3.2.0-0ubuntu1, 3.2.0-0ubuntu2), libgnome-desktop-3-2:amd64 (3.2.0-0ubuntu4, 3.2.0-0ubuntu4.1), python-ubuntuone-client:amd64 (2.0.0-0ubuntu1, 2.0.0-0ubuntu2), system-config-printer-gnome:amd64 (1.3.6+20110831-0ubuntu9, 1.3.6+20110831-0ubuntu9.1), bluetooth:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), ubuntuone-client:amd64 (2.0.0-0ubuntu1, 2.0.0-0ubuntu2), bluez-gstreamer:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), totem-plugins:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), libimobiledevice2:amd64 (1.1.1-1, 1.1.1-1ubuntu1), bluez-cups:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), libtotem0:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), bluez:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), gnome-desktop3-data:amd64 (3.2.0-0ubuntu4, 3.2.0-0ubuntu4.1), gir1.2-totem-1.0:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), bluez-utils:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4), libsyncdaemon-1.0-1:amd64 (2.0.0-0ubuntu1, 2.0.0-0ubuntu2), gnome-bluetooth:amd64 (3.2.0-0ubuntu1, 3.2.0-0ubuntu2), alsa-utils:amd64 (1.0.24.2-0ubuntu8, 1.0.24.2-0ubuntu8.1), system-config-printer-udev:amd64 (1.3.6+20110831-0ubuntu9, 1.3.6+20110831-0ubuntu9.1), python-cups:amd64 (1.9.58-0ubuntu1, 1.9.59-0ubuntu0.1), ubuntuone-client-gnome:amd64 (2.0.1-0ubuntu1, 2.0.1-0ubuntu2), system-config-printer-common:amd64 (1.3.6+20110831-0ubuntu9, 1.3.6+20110831-0ubuntu9.1), totem:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), totem-mozilla:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), totem-common:amd64 (3.0.1-0ubuntu5, 3.0.1-0ubuntu7), libbluetooth3:amd64 (4.96-0ubuntu3, 4.96-0ubuntu4)
End-Date: 2011-10-17 11:02:26

Start-Date: 2011-10-18 00:24:06
Commandline: apt-get autoremove
Remove: libopencryptoki0:amd64 (2.3.1+dfsg-3), libevolution:amd64 (3.2.0-0ubuntu2), libkholidays4:amd64 (4.7.2+git111007-0ubuntu1), libgtkhtml-4.0-common:amd64 (4.1.92-0ubuntu1), libnspr4-dev:amd64 (4.8.7-0ubuntu3), trousers:amd64 (0.3.5-4), libgtkhtml-4.0-0:amd64 (4.1.92-0ubuntu1), evolution-webcal:amd64 (2.32.0-1build1), libnss3-dev:amd64 (3.12.9+ckbi-1.82-0ubuntu6), libtspi1:amd64 (0.3.5-4), libgtkhtml-editor-4.0-0:amd64 (4.1.92-0ubuntu1), libgladeui-1-11:amd64 (3.8.0-0ubuntu3), opencryptoki:amd64 (2.3.1+dfsg-3), oxygen-cursor-theme:amd64 (0.0.2010-05-10-kde4.4.3-1ubuntu1)
End-Date: 2011-10-18 00:24:44

Start-Date: 2011-10-18 00:47:52
Commandline: apt-get upgrade
Upgrade: virtualbox-4.1:amd64 (4.1.4-74291~Ubuntu~natty, 4.1.4-74291~Ubuntu~oneiric)
End-Date: 2011-10-18 00:57:34

Start-Date: 2011-10-18 00:59:45
Commandline: apt-get upgrade
Upgrade: cdemu-daemon:amd64 (1.4.0-0ubuntu2, 1.4.0-0ubuntu3)
End-Date: 2011-10-18 00:59:52

Start-Date: 2011-10-18 01:03:26
Commandline: apt-get dist-upgrade
Install: fonts-horai-umefont:amd64 (429-1, automatic), wine1.3-gecko:amd64 (1.3.0+1, automatic)
Upgrade: libmirage3:amd64 (1.4.0-0ubuntu2, 1.4.0-0ubuntu3)
End-Date: 2011-10-18 01:03:38

Start-Date: 2011-10-18 01:10:50
Commandline: apt-get autoremove
Remove: wine1.3-gecko:amd64 (1.3.0+1), libmirage3-data:amd64 (1.4.0-0ubuntu2)
End-Date: 2011-10-18 01:10:53

Start-Date: 2011-10-18 01:13:09
Install: libdevel-symdump-perl:amd64 (2.08-4), libauthen-sasl-perl:amd64 (2.1500-1), qdbus:amd64 (4.7.4-0ubuntu8), git-man:amd64 (1.7.5.4-1), libgtkhtml-editor-common:amd64 (3.32.2-0ubuntu1), unity-place-files:amd64 (0.6.12-0ubuntu1), python-paramiko:amd64 (1.7.7.1-1ubuntu1), libgnome-vfs2.0-cil:amd64 (2.24.2-1), libtest-pod-perl:amd64 (1.44-1), libart2.0-cil:amd64 (2.24.2-1), python-configobj:amd64 (4.7.2+ds-3), libpod-coverage-perl:amd64 (0.21-1), python-wsgi-intercept:amd64 (0.4-0ubuntu2)
Remove: libstdc++6:i386 (4.6.1-9ubuntu3), libacl1:i386 (2.2.51-3), libcomerr2:i386 (1.41.14-1ubuntu3), libselinux1:i386 (2.0.98-1.1), qdbus:i386 (4.7.4-0ubuntu8), libdrm-radeon1:i386 (2.4.26-1ubuntu1), libdbus-1-3:i386 (1.4.14-1ubuntu1), libqt4-dbus:i386 (4.7.4-0ubuntu8), libpcre3:i386 (8.12-3ubuntu2), libglib2.0-0:i386 (2.30.0-0ubuntu4), libffi6:i386 (3.0.11~rc1-2), libgcc1:i386 (4.6.1-9ubuntu3), libdrm2:i386 (2.4.26-1ubuntu1), libqtcore4:i386 (4.7.4-0ubuntu8), libdrm-nouveau1a:i386 (2.4.26-1ubuntu1), libdrm-intel1:i386 (2.4.26-1ubuntu1), libqt4-xml:i386 (4.7.4-0ubuntu8), zlib1g:i386 (1.2.3.4.dfsg-3ubuntu3), libpng12-0:i386 (1.2.46-3ubuntu1), libpciaccess0:i386 (0.12.1-2), libuuid1:i386 (2.19.1-2ubuntu3), libdb5.1:i386 (5.1.25-11), libc6:i386 (2.13-20ubuntu5), libattr1:i386 (2.4.46-3), libssl1.0.0:i386 (1.0.0e-2ubuntu4)
End-Date: 2011-10-18 01:13:59

Start-Date: 2011-10-18 01:22:38
Commandline: aptdaemon role='role-commit-packages' sender=':1.200'
Install: wine1.3-gecko:amd64 (1.3.0+1), wine1.3:amd64 (1.3.28-0ubuntu1, automatic)
Upgrade: wine:amd64 (1.2.2-0ubuntu6, 1.2.3-0ubuntu1)
Remove: wine1.2:amd64 (1.2.3-0ubuntu1)
End-Date: 2011-10-18 01:23:07

Start-Date: 2011-10-18 11:00:23
Commandline: apt-get upgrade
Upgrade: update-notifier-common:amd64 (0.117ubuntu3, 0.117ubuntu3.1), libunity6:amd64 (4.0.6-0ubuntu2, 4.0.6-0ubuntu3), compiz-plugins-default:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5), update-notifier:amd64 (0.117ubuntu3, 0.117ubuntu3.1), libnm-util2:amd64 (0.9.1.90-0ubuntu3, 0.9.1.90-0ubuntu4), software-center:amd64 (5.0.1.4, 5.0.1.5), compiz-plugins-main:amd64 (0.9.6-0ubuntu2, 0.9.6-0ubuntu4), network-manager:amd64 (0.9.1.90-0ubuntu3, 0.9.1.90-0ubuntu4), gir1.2-unity-4.0:amd64 (4.0.6-0ubuntu2, 4.0.6-0ubuntu3), libnm-glib-vpn1:amd64 (0.9.1.90-0ubuntu3, 0.9.1.90-0ubuntu4), libnm-glib4:amd64 (0.9.1.90-0ubuntu3, 0.9.1.90-0ubuntu4), compiz-gnome:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5), compiz-plugins:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5), libdecoration0:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5), cdemu-client:amd64 (1.4.0-0ubuntu2, 1.4.0-0ubuntu4), compiz:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5), compiz-plugins-main-default:amd64 (0.9.6-0ubuntu2, 0.9.6-0ubuntu4), vhba-dkms:amd64 (20110915-0ubuntu5, 20110915-0ubuntu6), unity-lens-applications:amd64 (0.4.12-0ubuntu1, 0.4.12-0ubuntu2), compiz-core:amd64 (0.9.6+bzr20110929-0ubuntu3, 0.9.6+bzr20110929-0ubuntu5)
End-Date: 2011-10-18 11:02:25

Start-Date: 2011-10-18 23:35:03
Commandline: apt-get install --reinstall telepathy-sunshine
Reinstall: telepathy-sunshine:amd64 (0.1.8-2)
End-Date: 2011-10-18 23:35:20

Start-Date: 2011-10-19 00:00:22
Commandline: apt-get install git
Install: git:amd64 (1.7.5.4-1)
End-Date: 2011-10-19 00:00:26

Start-Date: 2011-10-19 00:52:44
Commandline: apt-get remove telepathy-haze
Remove: telepathy-haze:amd64 (0.5.0-1)
End-Date: 2011-10-19 00:52:48

Start-Date: 2011-10-19 00:54:07
Commandline: apt-get install --reinstall telepathy-sunshine
Reinstall: telepathy-sunshine:amd64 (0.1.8-2)
End-Date: 2011-10-19 00:54:11

Start-Date: 2011-10-19 01:00:18
Commandline: apt-get install telepathy-haze
Install: telepathy-haze:amd64 (0.5.0-1)
End-Date: 2011-10-19 01:00:22

Start-Date: 2011-10-19 01:03:48
Commandline: apt-get install --reinstall telepathy-sunshine
Reinstall: telepathy-sunshine:amd64 (0.1.8-2)
End-Date: 2011-10-19 01:03:51

Start-Date: 2011-10-19 01:05:44
Commandline: apt-get install --reinstall telepathy-sunshine
Reinstall: telepathy-sunshine:amd64 (0.1.8-2)
End-Date: 2011-10-19 01:05:47

Start-Date: 2011-10-19 01:49:39
Commandline: aptdaemon role='role-commit-packages' sender=':1.288'
Upgrade: libkrb5-3:amd64 (1.9.1+dfsg-1ubuntu1, 1.9.1+dfsg-1ubuntu1.1), libk5crypto3:amd64 (1.9.1+dfsg-1ubuntu1, 1.9.1+dfsg-1ubuntu1.1), xserver-xorg-core:amd64 (1.10.4-1ubuntu4, 1.10.4-1ubuntu4.1), xserver-common:amd64 (1.10.4-1ubuntu4, 1.10.4-1ubuntu4.1), libkrb53:amd64 (1.9.1+dfsg-1ubuntu1, 1.9.1+dfsg-1ubuntu1.1), libkrb5support0:amd64 (1.9.1+dfsg-1ubuntu1, 1.9.1+dfsg-1ubuntu1.1), libgssapi-krb5-2:amd64 (1.9.1+dfsg-1ubuntu1, 1.9.1+dfsg-1ubuntu1.1)
End-Date: 2011-10-19 01:49:52

Start-Date: 2011-10-19 11:24:54
Commandline: apt-get upgrade
Upgrade: apturl-common:amd64 (0.5ubuntu1, 0.5.1ubuntu1), indicator-sound:amd64 (0.7.8-0ubuntu1, 0.7.9-0ubuntu1), libgrip0:amd64 (0.3.2-0ubuntu3, 0.3.2-0ubuntu3.1), apturl:amd64 (0.5ubuntu1, 0.5.1ubuntu1)
End-Date: 2011-10-19 11:25:25

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: empathy 3.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 19 11:34:36 2011
ExecutablePath: /usr/bin/empathy
ProcEnviron:
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: empathy
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (3 days ago)
XsessionErrors:
 (nautilus:11621): Gtk-CRITICAL **: gtk_action_set_visible: assertion `GTK_IS_ACTION (action)' failed
 (nautilus:11621): Gtk-CRITICAL **: gtk_action_set_visible: assertion `GTK_IS_ACTION (action)' failed
 (empathy:11625): telepathy-WARNING **: Failed to create contact for self handle '1': org.freedesktop.DBus.Python.IOError: Traceback (most recent call last):

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

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

Changed in telepathy-sunshine (Ubuntu):
status: New → Confirmed
Revision history for this message
Michał Sawicz (saviq) wrote :

Can you take a look at /var/log/syslog? I had a lot of AppArmor "DENIED" messages, 'cause telepathy-sunshine wants to write to ~/.telepathy-sunshine and that's what prevented stuff to work in my experience.

Try putting the line:

owner @{HOME}/.telepathy-sunshine/** rw,

in /etc/apparmor.d/local/usr.lib.telepathy, log out and back in and see if it helped.

Revision history for this message
Andrzej Dzik (andrzej-dzik) wrote : Re: [Bug 878048] Re: telepathy-sunshine (gg protocol): message window doesn't appear

W dniu 18 stycznia 2012 12:45 użytkownik Michał Sawicz <
<email address hidden>> napisał:

> Can you take a look at /var/log/syslog? I had a lot of AppArmor "DENIED"
> messages, 'cause telepathy-sunshine wants to write to ~/.telepathy-
> sunshine and that's what prevented stuff to work in my experience.
>
> I have too

> Try putting the line:
>
> owner @{HOME}/.telepathy-sunshine/** rw,
>
> in /etc/apparmor.d/local/usr.lib.telepathy, log out and back in and see
> if it helped.
>
> No, it did't help

Andrzej

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Can you add this:
owner @{HOME}/.telepathy-sunshine/** rw,

to /etc/apparmor.d/local/usr.lib.telepathy, then do:
$ sudo apparmor_parser -r /etc/apparmor.d/usr.lib.telepathy

then log out and back in and see if it works? If not, can you attach the output of:
$ grep apparmor /var/log/kern.log

Changed in telepathy-sunshine (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Dawid Wróbel (dawidw) wrote :

Jamie, I tried your solution to fix the #969893 bug I reported and it worked.

affects: telepathy-sunshine (Ubuntu) → telepathy-mission-control-5 (Ubuntu)
Changed in telepathy-mission-control-5 (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → Medium
status: Incomplete → In Progress
tags: added: apparmor
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package telepathy-mission-control-5 - 1:5.12.0-0ubuntu4

---------------
telepathy-mission-control-5 (1:5.12.0-0ubuntu4) quantal; urgency=low

  * debian/apparmor-profile: allow rw to @{HOME}/.telepathy-sunshine/**
    and silence some noisy log messages (LP: #878048)
 -- Jamie Strandboge <email address hidden> Thu, 03 May 2012 12:10:35 -0500

Changed in telepathy-mission-control-5 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Dawid Wróbel (dawidw) wrote :

Should the status actually be "Fix Committed" (Fixed, but not available until next release.)?
Or, better, can this be fixed in precise, too?

Revision history for this message
Dawid Wróbel (dawidw) wrote :

OK, I am sad to say this, but it turns out this bug is still here James and your fix no longer works. I thought that apparmor settings got discarded after some updates but after applying it again, the same apparmor errors are shown.
So I disabled apparmor completely to discover that this wasn't really apparmor related at all. I got mislead previously by your fix probably because the real bug does not show itself at all times - the telepathy-sunshine sometimes appears to be somehow working, i.e. it either does not connect at all or connects but does not allow to open the chat windows, just like the original reporter said in the description. I am absolutely sure though that when I was testing your fix everything worked as expected, so I have no idea what could have changed in the meantime. I was thinking about the protocol changes but this should not render UI bugs.

So I removed the empathy/telepathy/mission-control config files, configured the GaduGadu account and went to empathy-debug once again to see if there are some erros and whenever GaduGadu connection fails, I could notice the following:
- "request_connection_cb: RequestConnection failed: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/telepathy/server/connmgr.py", line 96, in RequestConnection
    conn = self._protos[proto](self, parameters)
  File "/usr/lib/python2.7/dist-packages/sunshine/connection.py", line 200, in __init__
    telepathy.server.Connection.__init__(self, 'gadugadu', account, 'sunshine')
  File "/usr/lib/python2.7/dist-packages/telepathy/server/conn.py", line 85, in __init__
    _Connection.__init__(self, bus_name, object_path)
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 485, in __init__
    self.add_to_connection(conn, object_path)
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 576, in add_to_connection
    self._fallback)
KeyError: "Can't register the object-path handler for '/org/freedesktop/Telepathy/Connection/sunshine/gadugadu/_3XXXXXX': there is already a handler""
- it seems that telepathy actually manages to connect with remote server for a short while because I can see contact text statuses shown in the logs and contact list retrieval debug info.
- Some other warnings that could be relevant:
"e_book_client_new: Cannot get book from factory: Invalid source
Error preparing persona store 'eds:1289332278.3672.18@YYYY': Couldn't open address book ‘1289332278.3672.18@YYYY’: Invalid source
postal-address-details.vala:283: Empty postal address passed to PostalAddressFieldDetails."

Revision history for this message
Dawid Wróbel (dawidw) wrote :

I am sorry, I meant Jamie of course, not James.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

David, please file a new bug-- there was definitely something wrong with the apparmor profile which my fix addressed, but more is going on as well.

Changed in telepathy-mission-control-5 (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in telepathy-mission-control-5 (Ubuntu Precise):
status: Triaged → Won't Fix
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.