Re: systemctl "broken"

2017-05-28 Thread Aaron Faanes
I researched this issue a bit. I don't have it on my machine.

The "Access Denied" is an error that comes from sd_bus_call, aka
D-Bus. org.freedesktop.DBus.Error.AccessDenied
I think. Here's the source:
https://github.com/systemd/systemd/blob/master/src/systemctl/systemctl.c

You can trace the D-Bus stuff like so:

# SYSTEMD_LOG_LEVEL=debug systemctl
Sent message type=method_call sender=n/a
destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1
interface=org.freedesktop.systemd1.Manager member=ListUnitsByPatterns
cookie=1 reply_cookie=0 error=n/a
Got message type=method_return sender=n/a destination=n/a object=n/a
interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
UNIT
   LOAD   ACTIVE SUB   DESCRIPTION
proc-sys-fs-binfmt_misc.automount
  loaded active running   Arbitrary Executable File Formats
File System Automount Point
sys-devices-pci:00-:00:02.0-drm-card0-card0\x2deDP\x2d1-intel_backlight.device
   loaded active plugged
/sys/devices/pci:00/:00:02.0/drm/card0/card0-eDP-1/intel_backlight
sys-devices-pci:00-:00:03.0-sound-card0.device
   loaded active plugged   Haswell-ULT HD Audio Controller
...

Why would D-Bus give Access denied to your call? I didn't find an answer.

On Sun, May 28, 2017 at 10:44 AM, stan  wrote:

> On Mon, 25 May 2015 07:36:12 +0100
> Russel Winder  wrote:
>
> > I am guessing all of my Fedora Rawhide machines are in a "broken"
> > state as whenever I try to use systemctl, I get:
> >
> > # systemctl
> > Failed to list units: Access denied
> > #
> >
> > but this is root, access can never be denied. Huh?
>
> I don't have this issue in Rawhide.  I just finished updating to the
> latest updates (at least those that weren't skipped), and systemctl
> works just fine.  Are there any messages in journalctl when you try to
> run the command?  journalctl -r will show the most recent messages
> first, and journalctl -f will follow (tail) the messages, showing them
> as they arrive.
> ___
> test mailing list -- test@lists.fedoraproject.org
> To unsubscribe send an email to test-le...@lists.fedoraproject.org
>
___
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org


Re: systemctl "broken"

2017-05-28 Thread stan
On Mon, 25 May 2015 07:36:12 +0100
Russel Winder  wrote:

> I am guessing all of my Fedora Rawhide machines are in a "broken"
> state as whenever I try to use systemctl, I get:
> 
> # systemctl
> Failed to list units: Access denied
> #
> 
> but this is root, access can never be denied. Huh?

I don't have this issue in Rawhide.  I just finished updating to the
latest updates (at least those that weren't skipped), and systemctl
works just fine.  Are there any messages in journalctl when you try to
run the command?  journalctl -r will show the most recent messages
first, and journalctl -f will follow (tail) the messages, showing them
as they arrive.
___
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org


systemctl "broken"

2017-05-27 Thread Russel Winder
I am guessing all of my Fedora Rawhide machines are in a "broken"
state as whenever I try to use systemctl, I get:

# systemctl
Failed to list units: Access denied
#

but this is root, access can never be denied. Huh?

-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
___
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org