Error:dbus.proxies:Introspect error

Bug #715707 reported by cybero2912 on 2011-02-09
94
This bug affects 18 people
Affects Status Importance Assigned to Milestone
computer-janitor (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: computer-janitor

system: Ubuntu 10.10 Maverick installed from minimal CD

all dependencies OK

error:
cybero@oscamsrv:~$ computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.5:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.11" (uid=1000 pid=7234 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.5" (uid=0 pid=869 comm="/usr/bin/python))
removable deb:webmin

Barry Warsaw (barry) on 2011-02-15
Changed in computer-janitor (Ubuntu):
status: New → Confirmed
Barry Warsaw (barry) wrote :

You've mentioned that this occurs for you on Maverick, but I cannot reproduce it on Maverick. I *can* reproduce it on Natty though.

I wonder if this is caused by a change in dbus or python-dbus. The very same computer-janitor code does not produce this error on Maverick, so the only difference b/w them is dbus and dbus-python AFAICT. I don't know what might have changed in dbus or dbus-python to cause this.

Please verify, are you seeing this on Maverick or Natty?

Barry Warsaw (barry) wrote :

Oh, and AFAICT, this error does not affect the operation of C-J.

Changed in computer-janitor (Ubuntu):
importance: Undecided → Low
cybero2912 (cybero2912) wrote :

my system: Ubuntu 10.10
2.6.35-25

I am really not an expert! but:

could it be that there is a problem with global dbus conf file(s) and/or dbus conf file for computer-janitor ?
/etc/dbus-1/session.conf
/etc/dbus-1/system.conf
/etc/dbus-1/system.d/com.ubuntu.ComputerJanitor.conf

Barry Warsaw (barry) wrote :

It definitely could be! I'm not a dbus expert so I don't yet know what changed or what we'd need to add to get rid of this message. I'll ask around though.

Jure Sah (dustwolfy) wrote :

Ubuntu 10.10 amd64, all updates installed.

Cannot really use computer-janitor.

Reports warning but returns results:
# computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.54:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.56" (uid=0 pid=2430 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.54" (uid=0 pid=2427 comm="/usr/bin/python))

Reports error and does nothing else:
# computer-janitor clean --all
ERROR:dbus.proxies:Introspect error on :1.54:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.57" (uid=0 pid=2439 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.54" (uid=0 pid=2427 comm="/usr/bin/python))
ERROR:dbus.connection:Unable to set arguments (set([dbus.String(u'deb:libao2'), dbus.String(u'deb:liboobs-1-4'), dbus.String(u'deb:libimobiledevice0'), dbus.String(u'deb:libdns64'), dbus.String(u'deb:install-package'), dbus.String(u'deb:liblouis0'), dbus.String(u'deb:libntfs-3g75'), dbus.String(u'deb:libappindicator0'), dbus.String(u'deb:libibus1'), dbus.String(u'deb:libglitz-glx1'), dbus.String(u'deb:libgdata6'), dbus.String(u'file:/etc/update-manager/release-upgrades.dpkg-old'), dbus.String(u'deb:libbeagle1'), dbus.String(u'deb:libgnome-bluetooth7'), dbus.String(u'deb:liblzma1'), dbus.String(u'deb:libgupnp-igd-1.0-2'), dbus.String(u'deb:libevview2'), dbus.String(u'deb:libavahi-core6'), dbus.String(u'deb:libpoppler-glib4'), dbus.String(u'deb:libxxf86misc1'), dbus.String(u'deb:libdirectfb-1.2-0'), dbus.String(u'deb:libmodplug0c2'), dbus.String(u'deb:libprotoc5'), dbus.String(u'deb:libmpcdec3'), dbus.String(u'deb:libedata-cal1.2-6'), dbus.String(u'deb:libmagickwand2'), dbus.String(u'deb:libexchange-storage1.2-3')]),) according to signature None: <type 'exceptions.TypeError'>: Don't know how which D-Bus type to use to encode type "set"
Traceback (most recent call last):
  File "/usr/sbin/computer-janitor", line 35, in <module>
    main()
  File "/usr/share/computerjanitor/computerjanitorapp/cli/main.py", line 312, in main
    options.arguments.func(options.arguments)
  File "/usr/share/computerjanitor/computerjanitorapp/cli/main.py", line 293, in clean
    timeout=3600)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 132, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 556, in call_async
    message.append(signature=signature, *args)
TypeError: Don't know how which D-Bus type to use to encode type "set"

tags: added: maverick natty
David M (theohcat) wrote :

I too am having the same issue I think.

dave@TQCi7:~$ computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.68:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.87" (uid=1000 pid=5628 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.68" (uid=0 pid=2686 comm="/usr/bin/python))

If I try using the gtk version I get:

/usr/share/computerjanitor/computerjanitorapp/gtk/ui.py:94: GtkWarning: Could not load image 'computerjanitor-24x24.png': Failed to open file '/usr/share/computer-janitor/computerjanitor-24x24.png': No such file or directory
  builder.add_from_file(glade_file)
ERROR:dbus.proxies:Introspect error on :1.68:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=5905 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.68" (uid=0 pid=2686 comm="/usr/bin/python))

The only difference I notice is that in running the gtk version it will still load the UI but the all I can do is quit.

Natty 10.10

David M (theohcat) wrote :

I meant Maverick 10.10

Jure Sah (dustwolfy) wrote :

How is not being able to use the program at all a low priority bug?

Importance is assigned with respect to Ubuntu as a whole, not relative to the individual package affected. And it's the importance of the bug overall (including the users experiencing it), rather than just to the users experiencing it. If this affected all users of the Computer Janitor, it might be rated higher. As it is, most users are probably able to use the Computer Janitor without problems.

Still, it seems to me that the argument could be made that since the Computer Janitor is one of the administration tools that all Ubuntu users should be able to rely on, the bug should be Medium rather than Low.

Paris F. (trelaras-madboy) wrote :

Im using Ubuntu 11.04 Natty and i get this error

computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.43:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.78" (uid=1000 pid=6291 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.43" (uid=0 pid=1739 comm="/usr/bin/python /usr/share/computerjanitor/janitor"))

Also the program does not do anything at all.

It seems to be working in Koala, although I still get an error message.

Tkbour (tkbour) wrote :

Ubuntu 11.04 natty, computer-janitor has worked once and then came with a similar error:

ERROR:dbus.proxies:Introspect error on :1.45:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.52" (uid=0 pid=1975 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.45" (uid=0 pid=1689 comm="/usr/bin/python /usr/share/computerjanitor/janitor"))
removable deb:tk8.4

I totally agree with the change in priority.

Chunlei Wu (anewgene) wrote :

Ubuntu server 11.10 Oneiric Ocelot (amd64), confirmed dbus.proxies error:

sudo computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.4:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.19" (uid=0 pid=26961 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=23712 comm="/usr/bin/python /usr/share/computerjanitor/janitor")
removable deb:linux-image-2.6.38-11-server

"find" actually still works in terms of finding the removable packages, but "clean" command failed without removing any package:

sudo computer-janitor clean --all
ERROR:dbus.proxies:Introspect error on :1.4:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.20" (uid=0 pid=27075 comm="/usr/bin/python /usr/sbin/computer-janitor clean -") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=23712 comm="/usr/bin/python /usr/share/computerjanitor/janitor")
processingdbus service error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files

Vote for raising the priority.

I have this problem for ages ! Is it planned to solve this issue ?

Ubuntu server 11.10 Oneiric Ocelot (amd64), confirmed dbus.proxies error:

root@XXX:/root# computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.7:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.14" (uid=0 pid=21939 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.7" (uid=0 pid=1950 comm="/usr/bin/python /usr/share/computerjanitor/janitor")

Vote for raising the priority.

John Loran (loran123) wrote :

Affects 12.04 alpha as well... annoying.

Xavier L. (xav0989) wrote :

affects me as well, running 11.10 server.

Xavier L. (xav0989) on 2012-03-19
tags: added: dbus oneiric
Pander (pander) wrote :

On precise 12.04:

# computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.94:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.104" (uid=0 pid=6716 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.94" (uid=0 pid=6507 comm="/usr/bin/python /usr/share/computerjanitor/janitor")

Nils Rückmann (nueckman) wrote :

On precise 12.04 too:

$ computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.74:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.75" (uid=1000 pid=3234 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.74" (uid=0 pid=3045 comm="/usr/bin/python /usr/share/computerjanitor/janitor")

tags: added: precise
tags: removed: maverick natty
Mauro Franzoni (mauf) wrote :

Still there, precise 12.04 LTS up-to-date, computer-janitor 2.1.0-0ubuntu8, python 2.7.3-0ubuntu2.2

# computer-janitor find
ERROR:dbus.proxies:Introspect error on :1.79:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.98" (uid=0 pid=23780 comm="/usr/bin/python /usr/sbin/computer-janitor find ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.79" (uid=0 pid=15520 comm="/usr/bin/python /usr/share/computerjanitor/janitor")

Ovidiu Geaboc (ovidiurg) wrote :

I am getting this on Ubuntu 12.04 LTS. Installed computer-janitor only on a headless server no GTK no X.
Had to manually install python-gobject package.

# computer-janitor clean --all
ERROR:dbus.proxies:Introspect error on :1.23:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.33" (uid=0 pid=24054 comm="/usr/bin/python /usr/sbin/computer-janitor clean -") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.23" (uid=0 pid=24029 comm="/usr/bin/python /usr/share/computerjanitor/janitor")
processingdbus service error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files

Ovidiu Geaboc (ovidiurg) wrote :

Hello from 2015! Since this bug is still open I thought it might help if I post how I resolved the error on my Ubuntu 12.04 LTS headless server:

apt-get install python-gobject policykit-1

Edit XML configuration file /etc/dbus-1/system.d/com.ubuntu.ComputerJanitor.conf
and add following line as a child of the <policy context="default"> element: <allow send_destination="com.ubuntu.ComputerJanitor"/>

It should look like this
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
        <policy user="root">
                <allow own="com.ubuntu.ComputerJanitor"/>
        </policy>

        <policy context="default">
                <allow send_interface="com.ubuntu.ComputerJanitor"/>
                <allow receive_interface="com.ubuntu.ComputerJanitor"
                       receive_sender="com.ubuntu.ComputerJanitor"/>
                <allow send_destination="com.ubuntu.ComputerJanitor"/>
        </policy>

</busconfig>

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

Duplicates of this bug

Other bug subscribers

Related questions