nanny-admin-console cannot be launched

Bug #951388 reported by James Dupin
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Nanny
New
Undecided
Unassigned
nanny (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

nanny.tap seems to be ok. I can see it running.

$ nanny-admin-console

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
/usr/lib/python2.7/dist-packages/nanny/client/common/Utils.py:33: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  object.xml.add_from_file (main_ui_filename)
/usr/lib/python2.7/dist-packages/nanny/client/common/Utils.py:54: FutureWarning: This search is broken in 1.3 and earlier, and will be fixed in a future version. If you rely on the current behaviour, change it to './/object'
  for obj in xml.findall ('//object'):
ERROR:dbus.proxies:Introspect error on :1.80:/org/gnome/Nanny: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.84" (uid=1000 pid=4589 comm="python /usr/sbin/nanny-admin-console ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.80" (uid=0 pid=4023 comm="/usr/bin/python /usr/bin/twistd --uid root --gid r")

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nanny 2.31.1-0ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
ApportVersion: 1.94.1-0ubuntu2
Architecture: i386
Date: Sat Mar 10 09:40:16 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120201.2)
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nanny
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Dupin (james.dupin) wrote :
Revision history for this message
James Dupin (james.dupin) wrote :

seems people encountered this problem in the past and have a solution.

https://bugs.launchpad.net/ubuntu/+source/nanny/+bug/877318

Revision history for this message
James Dupin (james.dupin) wrote :

and this ppa seems to solve the problem

https://launchpad.net/~boamaod/+archive/nanny-test

Revision history for this message
James Dupin (james.dupin) wrote :

well the console is launched but I cannot do anything with it...

dirty solution:
install gdm, keep lightdm as window manager.

console is launched and seems to be workable. will update after some tests.

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

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

Changed in nanny (Ubuntu):
status: New → Confirmed
Revision history for this message
Markus T. (oberrocker) wrote :

I don't think this bug is a duplicate; #877318 is GTK/theme related, while this one is Python DBUS related.

I just upgraded 10.04LTS to 12.04 LTS, then installed nanny. It does not show errors in the console when launched (just warnings about gtkSpinButton and the XML related stuff also mentioned above), then quits. At the moment, I do not have time to dig into this very much, but if I re-raise the exception (in /usr/sbin/nanny-admin-console), I get the following dump on the console:

Traceback (most recent call last):
  File "/usr/sbin/nanny-admin-console", line 57, in <module>
    nanny_admin_console = nanny.client.gnome.admin.AdminConsole()
  File "/usr/lib/python2.7/dist-packages/nanny/client/common/Singleton.py", line 35, in __call__
    cls.instance = super(Singleton, cls).__call__(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 96, in __init__
    self.__load_users_treeview ()
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 186, in __load_users_treeview
    for uid, name, user_name in self.dbus_client.list_users ():
  File "/usr/lib/python2.7/dist-packages/nanny/client/common/DBusClient.py", line 134, in list_users
    return self.nanny_admin.ListUsers ()
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 751, in _message_cb
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 254, in _method_reply_return
    reply.append(signature=signature, *retval)
UnicodeError: String parameters to be sent over D-Bus must be valid UTF-8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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