Debian Bug report logs - #833318
/etc/X11/Xsession.d/95dbus_update-activation-env: dbus-update-activation-environment --systemd always fails without dbus-user-session package installed

version graph

Package: dbus-x11; Maintainer for dbus-x11 is Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>; Source for dbus-x11 is src:dbus (PTS, buildd, popcon).

Reported by: Mirosław Zalewski <miniopl@poczta.onet.pl>

Date: Tue, 2 Aug 2016 22:39:02 UTC

Severity: normal

Found in version dbus/1.10.8-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#833318; Package dbus-x11. (Tue, 02 Aug 2016 22:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Mirosław Zalewski <miniopl@poczta.onet.pl>:
New Bug report received and forwarded. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Tue, 02 Aug 2016 22:39:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mirosław Zalewski <miniopl@poczta.onet.pl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /etc/X11/Xsession.d/95dbus_update-activation-env: dbus-update-activation-environment --systemd always fails without dbus-user-session package installed
Date: Tue, 02 Aug 2016 23:29:55 +0200
Package: dbus-x11
Version: 1.10.8-1
Severity: normal
File: /etc/X11/Xsession.d/95dbus_update-activation-env

Dear Maintainer,

`dbus-update-activation-environment --systemd` fails on systems without
dbus-user-session package installed. This limits usefulness of
`/etc/X11/Xsession.d/95dbus_update-activation-env` file and renders
comment there misleading.

   * What led up to the situation?

I was trying to understand why `systemctl --user show-environment`
prints only very limited number of variables and why this happens:

#v+
dbus-update-activation-environment --all --systemd        
dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
#v-


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Comment in `/etc/X11/Xsession.d/95dbus_update-activation-env` says that
Xsession environment variables will be put in "systemd --user, if
running". Therefore, I expected all variables defined there to be
available in systemd user services. Since they were not, I thought that
maybe systemd --user starts only after dbus-launch, but that seems to
not be a case:

#v+
ps -o pid,user,args -C dbus-launch -C systemd
  PID USER     COMMAND
    1 root     /sbin/init
 4079 sddm     /lib/systemd/systemd --user
 4090 sddm     dbus-launch --autolaunch 60bcc674655243c8a520cc5813fe7172 --binary-syntax --close-stderr
 4138 minio    /lib/systemd/systemd --user
 4200 minio    /usr/bin/dbus-launch --exit-with-session --sh-syntax
#v-

After some search, I finally looked up `dbus-update-activation-environment` 
source code. This error message comes from line 399, which handles
return value of dbus call to `org.freedesktop.systemd1` service on
connection defined as `dbus_bus_get (DBUS_BUS_SESSION, &error);`. I can
only assume that tool is trying to talk to systemd on session bus.
However, `org.freedesktop.systemd1` service is available only on system
bus (and seems to refer to system's systemd, not user instance) - not on
session bus. I can verify that by using `qdbusviewer` tool.

After installing `dbus-user-session` package, I can find
`org.freedesktop.systemd1` on session bus, `systemctl --user show-environment` 
prints many variables and `dbus-update-activation-environment --all --systemd`
call does not print any error message.

   * What outcome did you expect instead?

systemd --user instance to be populated with Xsession variables by
default, OR `/etc/X11/Xsession.d/95dbus_update-activation-env` file not
misleading me into thinking that systemd should have these variables
defined. Rephrasing comment to say that only dbus environment is
changed, and `dbus-user-session` must be installed for systemd --user
instance, would be very much appreciated.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (400, 'unstable'), (102, 'experimental'), (10, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dbus-x11 depends on:
ii  dbus         1.10.8-1
ii  libc6        2.23-2
ii  libdbus-1-3  1.10.8-1
ii  libx11-6     2:1.6.3-1

dbus-x11 recommends no packages.

dbus-x11 suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#833318; Package dbus-x11. (Tue, 27 Nov 2018 08:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Martitz <thomas.martitz@mailbox.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Tue, 27 Nov 2018 08:45:04 GMT) (full text, mbox, link).


Message #10 received at 833318@bugs.debian.org (full text, mbox, reply):

From: Thomas Martitz <thomas.martitz@mailbox.org>
To: 833318@bugs.debian.org
Subject: Re: /etc/X11/Xsession.d/95dbus_update-activation-env: dbus-update-activation-environment --systemd always fails without dbus-user-session package installed
Date: Tue, 27 Nov 2018 09:41:00 +0100
I can confirm this bug. Very annoying.


Without this packages, the KDE session and all user units had their own 
dbus server/bus. Only after installing the dbus-user-session package all 
share the same bus under /run/user/1000/bus.

However, from examining /etc/X11/Xsession.d/*, in particular the call to 
dbus-update-activation-environment --systemd, that suggests that this 
should be the default configration.


Thanks Mirosław for your research!




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#833318; Package dbus-x11. (Tue, 27 Nov 2018 09:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Simon McVittie <smcv@debian.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Tue, 27 Nov 2018 09:03:03 GMT) (full text, mbox, link).


Message #15 received at 833318@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: Thomas Martitz <thomas.martitz@mailbox.org>, 833318@bugs.debian.org
Subject: Re: Bug#833318: /etc/X11/Xsession.d/95dbus_update-activation-env: dbus-update-activation-environment --systemd always fails without dbus-user-session package installed
Date: Tue, 27 Nov 2018 09:00:48 +0000
On Tue, 27 Nov 2018 at 09:41:00 +0100, Thomas Martitz wrote:
> Without this packages, the KDE session and all user units had their own dbus
> server/bus. Only after installing the dbus-user-session package all share
> the same bus under /run/user/1000/bus.

What do you consider to be a bug here? Please phrase it in terms of:

* what I did
* what I expected should happen
* what actually happened

> However, from examining /etc/X11/Xsession.d/*, in particular the call to
> dbus-update-activation-environment --systemd, that suggests that this should
> be the default configration.

What, specifically, do you think should be the default configuration?

The purpose of the dbus-user-session package is that it gives sysadmins
the choice between two models for what "the session bus" means:

* without dbus-user-session: each X11 session has its own separate
  session bus, and there is no per-uid session bus that can be used to
  communicate with `systemd --user` (this is the traditional behaviour)

* with dbus-user-session: there is one session bus per uid, spanning
  one or more possibly overlapping login sessions (this is now the
  recommended behaviour)

Thanks,
    smcv



Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#833318; Package dbus-x11. (Wed, 25 Aug 2021 09:45:06 GMT) (full text, mbox, link).


Acknowledgement sent to mrs.angela@smithangela.co.uk:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Wed, 25 Aug 2021 09:45:06 GMT) (full text, mbox, link).


Message #20 received at 833318@bugs.debian.org (full text, mbox, reply):

From: Angela Smith <wendyjohnson4trust2@gmail.com>
To: undisclosed-recipients:;
Subject: Witam
Date: Wed, 25 Aug 2021 10:41:14 +0100
[Message part 1 (text/plain, inline)]
Witam,

Nawiązałem kontakt, gdy szukałem odpowiedniej dla rzetelnej osoby, może
założyć fundację dla stworzonego kraju.
Nazywam się pani Angela Smith, mój mąż zmarł na koronawirusa. Mój mąż i ja
mamy depozyt w wysokości 25 200 000,00 USD w jego banku.

Poprzedni mój mąż, aby cudne, polecić, aby znaleźć miejsce, gdzie
pieniądze, a także inne kliniki weterynaryjne, poprzednie wzorowanie się na
bardzo interesuje. Jestem męża rozgrywane ostatnie moje wiersze.

  Z powodu mojego mojego autorstwa. Przekaż przekazałbym te 25 200 000,00
USD, aby mogli mogli zostać tym humanitarnym projektem. Chciałbym, abyś
założył w swoim kraju Fundację Opieki nad Zwierzętami. Klinika, która
bezpłatnie leczy zwierzęta w kraju. Fundusze mogą być również odpowiednie
na pomoc na młodszym i małym dzieciom.

Alternatywnie możesz zainwestować ostatnią 25 200 000 USD w lukratywną lub
strefę pracy, którą 24, a następnie co roczny zysk z działalności na pomoc
domu dziecka, starszym i klinik opieki nad zwierzętami.

Jeśli jesteś zainteresowany, zaczniesz rozumieć mój w mojej pracy, zanim
zaczniesz bankle na Twoje konto.

Aby Twoje zamówienie na Twoje nazwisko, będę potrzebować Twojego.
1. Pełne imiona i nazwiska
2. Adres
3. Numer telefonu, pod który mogę zapewnić


Czekam na wniosek.

Dziękuję Ci bardzo,
Pani Angela Smith
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jul 16 04:10:47 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.