[Pkg-utopia-maintainers] Bug#730102: dbus: unable to mount usb devices and shutdown the system

Simon McVittie smcv at debian.org
Sun Mar 1 16:55:46 UTC 2015


Control: reassign 730102 policykit-1
Control: tags 730102 + moreinfo

This does not look like a bug in D-Bus: D-Bus is only a message-passing
system, and I don't see any indication that it is passing the messages
incorrectly (analogy: if you buy an office chair on eBay, and the
seller sends you a bobcat instead <http://xkcd.com/325/>, this is not
the courier's fault).

I'm reassigning this to policykit for now in the hope that the PK
maintainers will know more about how to debug this than I do, but
you would probably get better results from a user support forum
such as the debian-user mailing list.

The fact that the default "out of the box" configuration does not do
what you expect might be a bug in some component (perhaps udisks2 or
policykit-1), but you will need to provide more information / do more
research before anyone can determine what is wrong.

On Thu, 21 Nov 2013 at 12:57:30 +0100, Manuel J. Martin wrote:
> xrdb:  "Xft.hinting" on line 8 overrides entry on line 5
> xrdb:  "Xft.hintstyle" on line 10 overrides entry on line 6
> xfce4-session-Message: ssh-agent is already running; starting gpg-agent
> without ssh support

These don't look relevant.

> method call sender=:1.4 -> dest=:1.7 serial=69
> path=/org/gtk/Private/RemoteVolumeMonitor;
> interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeMount
>    string "0x1faddb0"
>    string ""
>    uint32 0
>    string "31764:2"
> error sender=:1.7 -> dest=:1.4
> error_name=org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0
> reply_serial=69
>    string "Not authorized to perform operation"

This is not an error generated by libdbus or dbus-daemon. :1.4 (whatever
process that is) is sending a request, and :1.7 (looks like part of gvfs)
replies with the error G_IO_ERROR_FAILED "Not authorized to perform
operation".

>From searching source code, I suspect may be because :1.4 (gvfs?) is
sending a request to udisks2 and receiving the error
POLKIT_ERROR_NOT_AUTHORIZED "Not authorized to perform operation".

On Sun, 01 Mar 2015 at 05:07:27 +0200, Трезвый Дворник wrote:
> I tried some udisk2/policykit rules, but without any success (anyway, it
> must
> be something relevant to out-of-box problem, not user-configuration part)

What groups is your user account in? ("groups" command)

Does the system think your login session is active? (See below)

What type of disk contains the partitions you are trying to manipulate?
Does the system think it is a removable disk? (See below)

---- PolicyKit policy ----

/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy says that
by default you can mount filesystems on removable devices if you either
authenticate as an administrative user or are in an active desktop session,
and you can only mount filesystems on non-removable devices
or described in /etc/fstab if you authenticate as an administrative user.

---- Whether your login session is active ----

In Debian wheezy, an "active desktop session" is one that ConsoleKit
thinks is active. Use the ck-list-sessions command to check that
ConsoleKit thinks your session is active.

In Debian jessie/sid, an "active desktop session" is one that
systemd-logind thinks is active. Use the "loginctl list-sessions"
command to find your session ID, then something like "loginctl show-session 1"
(if your session ID is 1) to check that systemd-logind thinks your
session is active.

---- Whether you are an administrative user ----

An "administrative user" is a user in the sudo group. I don't know whether
root gets an exception from this check: in any case, using the GUI as root
is not recommended. You should create a non-root user account and add it
to the sudo group.

---- Whether your disk is removable ----

Run "cat /sys/class/block/sda/removable" replacing sda with the name of
the disk device (e.g. /dev/sda). You should get 0 for an internal disk
or 1 for a disk with removable media. USB sticks usually show up as
"removable" even though they aren't really.

Run "udisksctl dump" to see everything udisks knows about your disks
and partitions. Removable disks should have HintSystem: false,
HintIgnore: false; internal system disks should have HintSystem: true.

Regards,
    S



More information about the Pkg-utopia-maintainers mailing list